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

Supabase start hangs without sudo on Ubuntu #2471

Closed
taylorkangbeck opened this issue Jun 28, 2024 · 3 comments
Closed

Supabase start hangs without sudo on Ubuntu #2471

taylorkangbeck opened this issue Jun 28, 2024 · 3 comments

Comments

@taylorkangbeck
Copy link

Describe the bug
For some reason, supabase start just hangs on my Ubuntu machine. Even with the --debug flag there's no useful info. However, things work as expected with a sudo supabase start.

I've tried reinstalling the CLI in 3 ways with the same problem: brew, npm, and deb

To Reproduce
Steps to reproduce the behavior:

  1. supabase start

Expected behavior
supabase start works without sudo, or exits with an error message requesting sudo usage.

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: (can't create ticket because command doesn't exit)
  • Version of OS: Ubuntu 22.04
  • Version of CLI: 1.178.2
  • Version of Docker: 25.0.2
  • Versions of services: (supabase services seems to suffer similar issues)

Additional context

  • Version of Node.js: 20.6.1
@sweatybridge
Copy link
Contributor

sweatybridge commented Jul 6, 2024

What does docker ps -a say after cli is stuck?

If there are any unhealthy containers, could you also show me ther logs? ie. docker logs <container_name>

You can also try starting docker in rootless mode.

@taylorkangbeck
Copy link
Author

taylorkangbeck commented Jul 6, 2024 via email

@sweatybridge
Copy link
Contributor

Yea if it works with sudo, then it's probably a permission issue. Have you enabled docker rootless mode as suggested above? If it still happens, perhaps it's trying to connect to the wrong docker socket.

You can try setting it explicitly with DOCKER_SOCKET=/var/run/docker.sock supabase db start or wherever your rootless docker socket path is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants