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

Unable to run `supabase start` due to "failed to pull docker image" #2038

Closed savil closed 6 months ago

savil commented 6 months ago

Describe the bug I'm trying to run npx supabase start but see this error:

❯ npx supabase start
failed to pull docker image: Error response from daemon: pull access denied for public.ecr.aws/supabase/postgres, repository does not exist or may require 'docker login': denied: Your authorization token has expired. Reauthenticate and try again.
Retrying after 4s: public.ecr.aws/supabase/postgres:15.1.0.147
failed to pull docker image: Error response from daemon: pull access denied for public.ecr.aws/supabase/postgres, repository does not exist or may require 'docker login': denied: Your authorization token has expired. Reauthenticate and try again.
Retrying after 8s: public.ecr.aws/supabase/postgres:15.1.0.147
failed to pull docker image: Error response from daemon: pull access denied for public.ecr.aws/supabase/postgres, repository does not exist or may require 'docker login': denied: Your authorization token has expired. Reauthenticate and try again.
Try rerunning the command with --debug to troubleshoot the error.

The npx supabase version is:

I am indeed logged in via docker. I can also do docker pull supabase/postgres:15.1.0.147.

Tried:

To Reproduce Steps to reproduce the behavior: see above

Expected behavior should work?

Screenshots ❯ npx supabase --version 1.148.6

System information Rerun the failing command with --create-ticket flag.

❯ npx supabase start --create-ticket
failed to pull docker image: Error response from daemon: pull access denied for public.ecr.aws/supabase/postgres, repository does not exist or may require 'docker login': denied: Your authorization token has expired. Reauthenticate and try again.
Retrying after 4s: public.ecr.aws/supabase/postgres:15.1.0.147
failed to pull docker image: Error response from daemon: pull access denied for public.ecr.aws/supabase/postgres, repository does not exist or may require 'docker login': denied: Your authorization token has expired. Reauthenticate and try again.
Retrying after 8s: public.ecr.aws/supabase/postgres:15.1.0.147
failed to pull docker image: Error response from daemon: pull access denied for public.ecr.aws/supabase/postgres, repository does not exist or may require 'docker login': denied: Your authorization token has expired. Reauthenticate and try again.
Try rerunning the command with --debug to troubleshoot the error.
Sent crash report: dda68af91eda49199fe11ad2a7f233d4
Quote the crash ID above when filing a bug report: https://github.com/supabase/cli/issues/new/choose

Additional context If applicable, add any other context about the problem here.

savil commented 6 months ago

As Murphy's Law would have it, figured out the problem as soon as I filed this. Needed to login to ecr.