You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
supabase start fails randomly due to a port already being in use. It seems to be a timing issue as it only happens every other time when running the Github Action below.
This is the error generated:
Digest: sha256:48d2fabef1b0b1e8f9b208518008686a1cd336503af4fd6f62e169268ed9066e
Status: Downloaded newer image for ghcr.io/supabase/postgres:15.1.0.137
failed to start docker container: Error response from daemon: driver failed programming external connectivity on endpoint supabase_db_jobmate (8a76852f7f3f62ebe3fbd7ebf9cff92182749ee130513dc2b2c51d2b672a422c): Error starting userland proxy: listen tcp4 0.0.0.0:54322: bind: address already in use
Try rerunning the command with --debug to troubleshoot the error.
I've made some tweaks on the assumption that this is GHA keeping a "hot" function around to run the workflows, and so docker's already running and messing with things. None of this is robustly tested across test failures or concurrent workflows from other branches.
Try to start up more carefully
- name: start or reset supabase db serverrun: | set +e supabase status if [ $? -eq 0 ]; then echo "Supabase is already running, resetting database..." supabase db reset else echo "Supabase is not running, starting database..." supabase db start fi set -e
Try to clean up by stopping supabase afterwads even in cases of test failures
- name: cleanup supabase db serviceif: always()run: npx supabase stop
Bug report
Describe the bug
supabase start
fails randomly due to a port already being in use. It seems to be a timing issue as it only happens every other time when running the Github Action below.This is the error generated:
To Reproduce
Expected behavior
I expect this action to run successfully every time.
Full logs
5_Start Supabase.txt
The text was updated successfully, but these errors were encountered: