generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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 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.
To Reproduce
- Create a Github Action
name: "Push migrations"
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
# Required to checkout the code
contents: read
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
- name: Link Supabase project
run: supabase link --project-ref ${{ vars.SUPABASE_PROJECT_ID }} --password ${{ secrets.SUPABASE_DB_PASSWORD }}
- name: Start Supabase
run: supabase start
- name: Push migrations
run: supabase db push --password ${{ secrets.SUPABASE_DB_PASSWORD }}
- Run the action
Expected behavior
I expect this action to run successfully every time.
Full logs
BrettCleary, probablykasper, zelief, Mr-Pepe, eeshankeni and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working