#Allow deno -A flag for functions runtime.

13 messages · Page 1 of 1 (latest)

visual summit
#

Hi all, I am deploying my Deno function to appwrite with the deno run -A src/main.ts build command. However when actually executing the function i get the following error

NotCapable: Requires sys access to "osRelease", run again with the --allow-sys flag. Is it possible to run deno with the -A command?

visual summit
#

Allow deno -A flag for functions runtime.

visual summit
#

Anyone?

hollow panther
#

Hi there! It looks like you're encountering an issue with Deno permissions.
The error you're seeing, NotCapable: Requires sys access to osRelease, indicates that your Deno function requires access to the osRelease system call, which isn't granted by the --allow-sys flag alone.

#

To resolve this, you need to grant the osRelease permission when running your Deno function.
You can do this by adding the --allow-sys=osRelease flag to your command.

#
deno run --allow-sys=osRelease src/main.ts
#

This should grant the necessary permission and allow your function to execute without errors

visual summit
#

I run the -A flag as said above because -allowSys then asks for other permissions

#

-A should allow all if I'm not mistaken

#

nor does --allow-all work