Repository navigation
Closed
Labels
bugSomething isn't working
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
I have correctly installed the latest version of the Supabase CLI and set up a new project with supabase init. I then have created a new supabase edge function with the supabase functions new . Then, I launched the local setup with supabase start.
All the image are correctly downloaded and the containers launched (all that one) but at the very end when the command is performing the healthcheck, everything kind of crash and appears the error
...
2024/10/09 19:42:24 Recv First Byte
2024/10/09 19:42:25 Sent Header: Host [api.moby.localhost]
2024/10/09 19:42:25 Sent Header: User-Agent [Docker-Client/unknown-version (linux)]
2024/10/09 19:42:25 Send Done
2024/10/09 19:42:25 Recv First Byte
2024/10/09 19:42:26 Sent Header: Host [api.moby.localhost]
2024/10/09 19:42:26 Sent Header: User-Agent [Docker-Client/unknown-version (linux)]
2024/10/09 19:42:26 Send Done
2024/10/09 19:42:26 Recv First Byte
2024/10/09 19:42:27 Sent Header: Host [api.moby.localhost]
2024/10/09 19:42:27 Sent Header: User-Agent [Docker-Client/unknown-version (linux)]
2024/10/09 19:42:27 Send Done
2024/10/09 19:42:27 Recv First Byte
2024/10/09 19:42:28 Sent Header: Host [api.moby.localhost]
2024/10/09 19:42:28 Sent Header: User-Agent [Docker-Client/unknown-version (linux)]
2024/10/09 19:42:28 Send Done
2024/10/09 19:42:28 Recv First Byte
2024/10/09 19:42:28 Connect Start: tcp 127.0.0.1:54321
2024/10/09 19:42:28 Connect Done: tcp 127.0.0.1:54321
2024/10/09 19:42:28 Sent Header: Host [127.0.0.1:54321]
2024/10/09 19:42:28 Sent Header: User-Agent [SupabaseCLI/1.203.0]
2024/10/09 19:42:28 Sent Header: Authorization [Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3M<more chars>0YpN81IU]
2024/10/09 19:42:28 Sent Header: Accept-Encoding [gzip]
2024/10/09 19:42:28 Send Done
2024/10/09 19:42:28 Recv First Byte
Stopping containers...
Pruned containers: [48140ad3aedf28e4b805ef53726391f7845852074e9071e33704bc72ba7e8113 576776629a4791004812be070bc57a2925d0aea11910fb172f21f99e5c0d7e82 71f4256bd86a189f080870b96a1ba2fd55de98eeeb18ea7dd88b43790c7c589f 04df85256addf17050109168d06a47efacfc517af6df83bf4393f26326151242 4d54c7b8e723db4f801f288f2abc9da87fd222a346a001d502d7b5578523d549 59dd3fbe7a3b486513a540fd5f31fc1b65795ae5f99c44760efd3f20f633ba45 7b2dad8e1ca8fed05716eca84d26e5d6e7e2510bfdef660192e1edbecbff42bf 8f375c7b58d23a29d634212c30c7cc26b278786a79a453b5d8f1cbb029ecd769 046e6ed0bf3f85e3c409b638b657412fd866ddbef9b6f22cea68518faa9a83c6 d22e0ff147bfd3bb316733ecc239b4b2ca922ac134c041ee5c0108ac9663e4eb c9aed2ed6e087d2d9ca0af0ee273fc3c1ebd331acb82468e6d8858b50ed794a9 af80dae956ac6eeb03223934081877369c9945176f3cc70369a64bb3b95eeecd 151a240345f8e5ff93e4ce8859250d9ff39cdf1c85a37cfdfc35ea010f98af5f]
Pruned volumes: [supabase_db_content-bridge-backend supabase_config_content-bridge-backend supabase_inbucket_content-bridge-backend supabase_storage_content-bridge-backend supabase_edge_runtime_content-bridge-backend]
Pruned network: [supabase_network_content-bridge-backend]
Error status 502: An invalid response was received from the upstream server
To Reproduce
Create a clean installation with
supabase init
supabase functions new my-function
supabase start
Expected behavior
The local deployment starts running
Screenshots
System information
Ubuntu 24.04.1 LTS 6.8.0-45-generic on a VirtualBox VM machine.
I have tried both with network card bridged or NAT on the guest but same issue
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
NicoCaldo commentedon Oct 9, 2024
Spinned up another VM with the same setup on a different hosting machine (always on Virtualbox) and having the same issue
Running again the
supabase startI havered2678 commentedon Oct 10, 2024
+1 here. Rolling back to CLI v1.192.5 fixes both issues. I would also note that when I went to 1.204.3, I could not start Supabase either. Sorry, I did not save the error.
sweatybridge commentedon Oct 10, 2024
@nyannyacha could this be related to edge runtime update? #2733
nyannyacha commentedon Oct 10, 2024
I believe there are no changes in edge runtime v1.58.12 other than the ability to use an mjs extension as an entry point for functions.
I tried to reproduce the problem using the develop branch of the supabase/cli by typing the commands in the description, but the edge runtime container returned a normal response.
Note that my attempt was on OrbStack, where no special network config exists for the guest vm.
sweatybridge commentedon Oct 14, 2024
@NicoCaldo could you try
supabase start --ignore-health-checkas a workaround?If that works, please show me the output from
docker psto help debug the root cause.NicoCaldo commentedon Oct 14, 2024
It worked but it says that the supabase_storage_bakend container is unhelthy
docker psoutputNicoCaldo commentedon Oct 29, 2024
It seems that now that
--ignore-health-checkdoesn't work. Actually, it doesn't ignore the health checks that are performed no matter what (CLI 1.207.9)Excluding
storage-apiI was able to start it upsupabase start --ignore-health-check --exclude storage-apicairomassimo commentedon Mar 3, 2025
I had a similar issue, where
supabase startwould fail withTurned out it was due to DHCP on my local network setting a "Local Domain Name". Supabase internal proxy would try to resolve the IP of
supabase_storage_<id>.<the_local_domain_name>rather than justsupabase_storage_<id>, and that would fail.The workaround is simply to change local network (in my case, it worked using a tethering network over cellular data). Hope this helps!
fix: pin Supabase CLI to v1.192.5 to resolve 502 error
Hallidayo commentedon Mar 6, 2026
Hi all, We’re going to close this one due to inactivity. Please feel free to reopen if you’re still having issues here or open a new issue.