supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.02k stars 201 forks source link

Supabase CLI 1.163.2: Docker Image Pull Failure Due to Timeout on 'supabase start' Command #2210

Closed flocosnier closed 3 months ago

flocosnier commented 5 months ago

Describe the bug I've upgraded supabase-cli to 1.163.2 and I can no longer use supabase start.

Running supabase start --debug now ends with :

failed to pull docker image: Error response from daemon: Get "https://public.ecr.aws/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) or failed to pull docker image: Error response from daemon: Get "https://public.ecr.aws/v2/": context deadline exceeded

To Reproduce Steps to reproduce the behavior:

  1. Update to Supabase CLI 1.163.2
  2. Run "supabase start"
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

System information

sweatybridge commented 5 months ago

Could you try SUPABASE_INTERNAL_IMAGE_REGISTRY=docker.io supabase start?

It might be a temporary issue with aws.

rusakovic commented 4 months ago
DEBUG FileFetcher::fetch_cached - specifier: https://deno.land/x/jose@v4.13.1/runtime/subtle_rsaes.ts
DEBUG Snapshot already up to date. Skipping pending resolution.
DEBUG Opening cache /root/.cache/deno/node_analysis_cache_v1...
DEBUG edge-runtime is listening on 0.0.0.0:8081
Functions config: {}
Serving functions on http://127.0.0.1:54321/functions/v1/<function-name>
Using supabase-edge-runtime-1.45.2 (compatible with Deno v1.40.3)
Pruned containers: [45...6]
Pruned network: [supabase_network_project-supabase]
service not healthy: [supabase_rest_project-supabase supabase_edge_runtime_project-supabase]

but works without any issues - all containers are healthy - with supabase --debug start --ignore-health-check

The logs I still see

Using supabase-edge-runtime-1.45.2 (compatible with Deno v1.40.3)
service not healthy: [supabase_rest_project-supabase supabase_edge_runtime_project-supabase]

but in Docker Desktop all containers are running.

sweatybridge commented 4 months ago

@rusakovic sorry are you asking why the rest and edge_runtime containers are reported as unhealthy locally? If so, could you open a separate issue because that's unrelated to this ticket.