cli: `supabase start` Error: service not healthy
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
supabase start fails after updating to the latest version.
To Reproduce
supabase start
Logs
supabase start --debug logs:
[...]
supabase_pg_meta_limey container logs:
> @supabase/postgres-meta@0.0.0-automated start
> node dist/server/app.js
(node:36) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
2023/05/09 23:57:31 Sent Header: Host [docker]
2023/05/09 23:57:31 Sent Header: User-Agent [Go-http-client/1.1]
2023/05/09 23:57:31 Send Done
2023/05/09 23:57:31 Recv First Byte
supabase_studio_limey container logs:
info - Loaded env from /app/studio/.env
Listening on port 3000
Error: service not healthy: [realtime-dev.supabase_realtime_limey supabase_pg_meta_limey supabase_studio_limey]
System information
- OS: macOS 13.3.1
- RAM allocated to Docker: 12 GB
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 5
- Comments: 28 (5 by maintainers)
Found the upstream issue for this segfault https://github.com/docker/for-mac/issues/6824. If you are on Intel Mac with docker desktop versions >= 4.19.0, the workaround is to disable MacOS Virtualization Framework.
Closing this issue as unrelated to CLI.
UPDATE: I managed to reproduce this error after upgrading docker desktop to
4.21.1(docker engine 24.0.1). I was previously on 4.12.0 (engine 20.10.17).I will dig through their changelog to see if there’s any fixes.
UPDATE 2: The last known working version is 4.18.0
As a workaround downgrading to
1.69.0worked for me. There’s probably a more up-to-date version which also works. With the latest version I’m experiencing exactly the same issue as @munkacsimark on my mac.I did a binary search between 1.69.0 and 1.88.0 and found that 1.72.0 works, and 1.73.0 no longer does. So 1.72.0 is the most recent version that does not exhibit this problem. Something broke between 1.72.0 and 1.73.0.
Actually I still have this error, even on the latest version
1.88.0I have similar issue, every container is starting correctly except
supabase_studio_xxxxx. The container keeps restarting then I’m getting theservice not healthyerror.--ignore-health-checkflag works but this way I cannot start the studio locally. This log entry is repeating in the container:Any suggestion for this issue?
Thanks! This is really helpful. There studio version changed in 1.73.0 from 20230605 to 20230622 so there should be some commits between these dates that caused the crash loop on studio.
I destroy all my docker container & images, and now it works.
I have the issue :
Debug bring no useful information and the flag --ignore-health-check allows me to finish
supabase start, but then I can’t query my db from my nextjs app without getting the error :An invalid response was received from the upstream server.I am sure that I have enough ram (32gb). I tried to restart every container or delete and reinstall them but nothing work. Impossible to use the supabase cli… Anyone to help me ?