cli: `supabase start` fails with error 'Container ... is restarting, wait until the container is running'
Bug report
Describe the bug
supabase start fails and produces error ‘Error: Error response from daemon: Container 39ecdf… is restarting, wait until the container is running’
To Reproduce
- Run
supabase init - Run
supabase start
Expected behavior
Supabase starts.
System information
- OS: macOS
- Docker: 20.10.16
- Supabase Cli: 0.26.2
- supabase/deno-relay: v1.2.0
- supabase/gotrue: v2.6.18
- supabase/phadmin-schema-diff: cli-0.0.4
- supabase/postgres: 14.1.0.21
- supabase/postgres-meta: v0.33.2
- supabase/realtime v0.22.4
- supabase/storage-api: v0.15.0
- supabase/studio: latest
Additional context
There is a container created from image ‘supabase/postgres’ but as quick as it appears it is deleted and I can’t access the logs.
Also i noticed that supabase init only creates a single file ‘supabase/config.toml’. The docs https://supabase.com/docs/guides/local-development mention that a ‘supabase/seed.sql’ is created by supabase init. Should supabase init be creating more files?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (7 by maintainers)
Commits related to this issue
- Try starting supabase Because `supabase start` recently stopped working. See https://github.com/supabase/cli/issues/286#issuecomment-1262150912 — committed to aslakhellesoy/setup-cli by aslakhellesoy 2 years ago
We have released CLI v1.5.1 which uses postgres 14.1.0.71 and I have verified
supabase startis working on GHA.We will update 14.1.0.66 image later to fix older CLI versions.
We found the root cause: the supabase/postgres image that the CLI depends on was updated 10h ago with an arm64 build. Unfortunately the multi-arch manifest was not updated correctly, resulting in arm64 images being pulled on x86 machines. This broke GHA and anyone trying to
supabase starton a fresh x86 computer without any locally cached docker images.We are still looking into fixing the issue and will post an update once that’s resolved.
This appears to be a new ephemeral error rather than a regression.
supabase startcommands we ran from CI on 1 Oct, 41 failed with a missing image error.I believe our fix is working well for the rate limit error when pulling from ECR. If you encounter further issues, please don’t hesitate to contact us.
Thanks for the feedback. We have since added a few automated tests to prevent regression.
supabase starton each PR and merge to mainsupabase starttwice a day on version 1.5.4 and 1.0.0We have also refactored the image pulling code to make it less prone human error. We now define an array of docker images and call the same function to pull each image.
It’s still broken. My GitHub Action:
The error:
Might I suggest that rather than relying on users to test that
supabase startworks on GitHub Actions, you have your own CI somewhere that verifies this and alerts you when it breaks? And maybe automate the parts of your release process that is prone to human error?I’ve managed to make it start with a new workaround (my previous workaround spuriously fails with
toomanyrequests: Rate exceeded- as mentioned in https://github.com/supabase/cli/issues/419#issuecomment-1232025865)I’m seeing the same thing as of this morning
I was able to fix this by deleting all containers and volumes then restarting supabase.