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

failed to display json stream: missing signature key #2581

Closed grantspilsbury closed 1 month ago

grantspilsbury commented 1 month ago

MacOs v10.15.7 Repo: https://github.com/vercel/nextjs-subscription-payments Docker: Version 17.03.1-ce-mac12

Old version of docker and macos. When I start supabase I get the following

$ pnpm supabase:start

> @ supabase:start /foo
> npx supabase start

15.1.1.41: Pulling from supabase/postgres
failed to display json stream: missing signature key
                                                    Retrying after 4s: public.ecr.aws/supabase/postgres:15.1.1.41
15.1.1.41: Pulling from supabase/postgres
failed to display json stream: missing signature key
                                                    Retrying after 8s: public.ecr.aws/supabase/postgres:15.1.1.41
15.1.1.41: Pulling from supabase/postgres
failed to display json stream: missing signature key
Try rerunning the command with --debug to troubleshoot the error.
 ELIFECYCLE  Command failed with exit code 1.
sweatybridge commented 1 month ago

Can you try npx supabase@latest start? Just to make sure you are not using an outdated cli version.

feng-derivio commented 1 month ago

I'm seeing a similar error and I just installed supabase-cli with brew.

npx supabase@latest start
Need to install the following packages:
supabase@1.187.10
Ok to proceed? (y)
v2.151.0: Pulling from supabase/gotrue
3c854c8cbf46: Retrying in 1 second
15f19a51d95c: Retrying in 1 second
e751a3eb0cf6: Retrying in 1 second
699cb1957d04: Waiting
0f810513f15e: Waiting
a304cb8b837b: Waiting
failed to display json stream: error pulling image configuration: download failed after attempts=6: EOF
Retrying after 4s: public.ecr.aws/supabase/gotrue:v2.151.0
v2.151.0: Pulling from supabase/gotrue
3c854c8cbf46: Pulling fs layer
15f19a51d95c: Retrying in 1 second
e751a3eb0cf6: Retrying in 1 second
699cb1957d04: Waiting
0f810513f15e: Waiting
a304cb8b837b: Waiting
failed to display json stream: error pulling image configuration: download failed after attempts=6: EOF
Retrying after 8s: public.ecr.aws/supabase/gotrue:v2.151.0
v2.151.0: Pulling from supabase/gotrue
3c854c8cbf46: Retrying in 10 seconds
15f19a51d95c: Retrying in 10 seconds
e751a3eb0cf6: Retrying in 10 seconds
699cb1957d04: Waiting
0f810513f15e: Waiting
a304cb8b837b: Waiting
Stopping containers...
failed to display json stream: error pulling image configuration: download failed after attempts=6: net/http: TLS handshake timeout

Version:

MacOS: 13.6.7 (22G720) Intel chip

$ docker -v Docker version 27.0.3, build 7d4bcd8

$ supabase -v 1.187.10

grantspilsbury commented 1 month ago

Can you try npx supabase@latest start? Just to make sure you are not using an outdated cli version.

Thanks. I got off the company network and upgraded my mac and it is working as expected. Old cli probably. Thanks

sweatybridge commented 1 month ago

@feng-derivio that looks like a problem connecting to ECR registry. You can try an alternative registry

SUPABASE_INTERNAL_IMAGE_REGISTRY=docker.io supabase start
feng-derivio commented 1 month ago

@sweatybridge Thanks, it turned out to be related to the recent GFW change. It blocks docker.io somehow. I had to turn on global mode in my VPN to install anything from docker..