error: Permission denied (os error 13) at file:///opt/strfry-policy.ts:10:8

Following the exact instructions from "Getting Started" ends up with "error: Permission denied (os error 13) at file:///opt/strfry-policy.ts".

My strfry-poliy.ts:Screenshot_2023-12-13_at_10.08.38_PM

My strfry.conf: Screenshot_2023-12-13_at_10.06.56_PM

Permission for /opt/ directory and strfry-policy.ts:Screenshot_2023-12-13_at_10.15.12_PM

I also tried changing the user to strfry user and group. Still no luck.

Error when the relay gets an event:Screenshot_2023-12-13_at_10.10.24_PM

Confirmation that the server is able to access https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts:

Screenshot_2023-12-13_at_1.37.46_PM

Deno Version: deno 1.38.5 (release, x86_64-unknown-linux-gnu) v8 12.0.267.1 typescript 5.2.2

OS: Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-88-generic x86_64)

Strfry installation instructions followed: https://github.com/hoytech/strfry/blob/master/docs/DEPLOYMENT.md

PS: Strfry works fine without this plugin and with the sample whitelist plugin from https://github.com/hoytech/strfry/blob/master/docs/plugins.md. Running deno run /opt/strfry-policy.ts works as well. It just doesn't work when it goes through strfry.

Edited by IMPROXIMUS