Closed lucasmrl closed 2 days ago
Couldn't reproduce on my end with a fresh install and the exact same settings (docker, cli, os).
Did you try supabase --stop --all
and start again ?
Would you mind sharing what are your supabase folders permissions ? According to the error message something might be on with that you should have something like:
ls -lR ./supabase
total 24
-rw-r--r--@ 1 avallete staff 9106 Nov 30 17:02 config.toml
drwxr-xr-x@ 3 avallete staff 96 Nov 30 17:02 functions
./supabase/functions:
total 0
drwxr-xr-x@ 3 avallete staff 96 Nov 30 17:02 hello-world
./supabase/functions/hello-world:
total 8
-rw-r--r--@ 1 avallete staff 1095 Nov 30 17:02 index.ts
Thanks for the quick reply @avallete . I stopped and started, but it didn't work. I also tried using Rancher Desktop but had no luck. Reinstalling Docker didn't work either.
lucas@MacBookAir test-app % ls -lR ./supabase total 24 -rw-r--r-- 1 lucas staff 9107 Nov 30 02:42 config.toml drwxr-xr-x 3 lucas staff 96 Nov 30 02:43 functions ./supabase/functions: total 0 drwxr-xr-x 3 lucas staff 96 Nov 30 02:43 hello-world ./supabase/functions/hello-world: total 8 -rw-r--r-- 1 lucas staff 1095 Nov 30 02:43 index.ts
I was finally able to deploy. It seems that the issue was related to the terminal I was using in vs code. Still not 100% clear how it happened though. I will try to replicate it later and come back. For now, it's good. :)
Describe the bug I am trying to deploy a simple edge function, but I am unable to do this due to:
Error: Permission denied (os error 13).
The function works fine locally. I'm on a mac. I tried temporarily setting the project folder to full permissions (777). (chmod -R 777 path), but didn't work.
To Reproduce I am using the 'hello world' example available:
supabase init
Generate VS Code settings for Deno. [y/N] y: yes
supabase functions new hello-world
supabase start
supabase functions deploy hello-world --project-ref <my-project-id>
Error:
Expected behavior Deploy my function into my supabase project.
Screenshots Logs with debug enabled:
System information
Additional context If applicable, add any other context about the problem here. N/A