Skip to content

'supabase start' frequently fails with 'service not healthy' #778

@floitsch

Description

@floitsch

Bug report

Describe the bug

Running supabase start on Github builders frequently fails with 'service not healthy'.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a Github action workflow with supabase/setup-cli@v1 and version: latest.
  2. In the workflow start the supabase setup with supabase start.
  3. Optionally, for good measure, do this with 2 other supabase configurations (using different ports).

Expected behavior

The builder starts cleanly without errors.

Github action log

Run supabase start
  supabase start
  supabase status
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Pulling images... (1/13)
Pulling images... (1/13)
Pulling images... (2/13)
Pulling images... (3/13)
Pulling images... (4/13)
Pulling images... (5/13)
Pulling images... (6/13)
Pulling images... (7/13)
Pulling images... (8/13)
Pulling images... (9/13)
Pulling images... (10/13)
Pulling images... (11/13)
Pulling images... (12/13)
Starting database...
Restoring branches...
Setting up initial schema...
Applying migration 20230105212858_initial.sql...
Seeding data supabase/seed.sql...
Starting containers...
Error: service not healthy: [supabase_storage_supabase_test supabase_pg_meta_supabase_test supabase_studio_supabase_test]
Try rerunning the command with --debug to troubleshoot the error.
Error: Process completed with exit code 1.

Unfortunately, I wasn't able to get a better log with --debug. With the debug flag, the action didn't exhibit the problem.

System information

Github builder, ubuntu-latest (22.04).
See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources

Additional context

Older versions don't show the error.

This was most likely introduced by the "fix" to #146
#770

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions