Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start command won't recover from interrupted initialization #17

Closed
cbzehner opened this issue Apr 2, 2021 · 2 comments · Fixed by #21
Closed

start command won't recover from interrupted initialization #17

cbzehner opened this issue Apr 2, 2021 · 2 comments · Fixed by #21
Labels
bug Something isn't working

Comments

@cbzehner
Copy link

cbzehner commented Apr 2, 2021

Bug report

Describe the bug

When supabase init is interrupted or otherwise unavailable, the supabase start command isn't able to recover and provides a misleading error message.

To Reproduce

I'm on a 2019 MBP running Big Sur...

  1. Turn off Docker globally (you may also need to clear any local Docker images used in Supabase's compose file)
  2. Run supabase init taking the defaults and you'll end up with "Error running docker-compose."
❯ supabase init
✔ Port for Supabase URL: · 8000
✔ Port for PostgreSQL database: · 5432
✖ Error running docker-compose.
  1. Start the Docker daemon again...
  2. Try running supabase init (again). No-op.
❯ supabase init
Project already initialized. Remove .supabase to reinitialize.
  1. Run supabase start and see the same error from the init command.
❯ supabase start
✖ Error running docker-compose.

This was solved by rm -rf .supabase and re-running supabase init but it isn't clear the underlying cause.

Expected behavior

Ideally supabase start would detect initialization had failed and prompt me to re-initialize or supabase init should detect a badly configured .supabase/ directory.

System information

  • OS: macOS
  • Version of supabase-cli: 0.3.6
  • Version of Node.js: v15.11.0
@cbzehner cbzehner added the bug Something isn't working label Apr 2, 2021
@soedirgo
Copy link
Member

soedirgo commented Apr 3, 2021

Thanks for the report! I'll add proper cleanup for aborted init soon.

@github-actions
Copy link

github-actions bot commented Apr 9, 2021

🎉 This issue has been resolved in version 0.3.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants