supabase / supabase

The open source Firebase alternative. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
https://supabase.com
Apache License 2.0
71.84k stars 6.87k forks source link

Issue finding docker image when starting local DB #19392

Closed brandonbrown4792 closed 8 months ago

brandonbrown4792 commented 9 months ago

Bug report

I'm having an issue when trying to start local development via supabase start. It appears that the remote docker image cannot be found:

Error response from daemon: manifest for public.ecr.aws/supabase/postgres:14.1.0.76 not found: manifest unknown: Requested image not found

What I've done: Ran supabase init command to intialize the supabase folder in the root of my project Ran supabase login - went through succesfully Linked supabase project via supabase link - Linked successfully Ran supabase start - Got manifest not found error

I was about to get around this by changing my postgres version in supabase/.temp/postgres-version from 14.1.0.76 to 15.1.0.117.

Describe the bug

Unable to start local supabase development server due to docker image not being found

To Reproduce

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

  1. Go through the Supabase local development guide here
  2. Get to the supabase start step
  3. See that an error is returned for the postgres container saying that the image could not be found

Expected behavior

I should see the postgres container installed as expected and the supabase development server start

Screenshots

Sorry, don't have a screenshot anymore, but this is the message that was thrown:

Error response from daemon: manifest for public.ecr.aws/supabase/postgres:14.1.0.76 not found: manifest unknown: Requested image not found

System information

Sergii-Shpak-072422 commented 9 months ago

I have the same issue.

Sergii-Shpak-072422 commented 9 months ago

The workaround mentioned in the bug description works for me as well. Thank you.

tobowers commented 9 months ago

I installed this today and it's not finding public.ecr.aws/supabase/postgres:15.1.0.137 either

0Howwise commented 9 months ago

I also had the same issue and change from 14.1.0.76 to 15.1.0.117 worked

dhurbhat commented 8 months ago

I have the same issue as of this AM and the workaround DOES NOT work for me.

Additional info:

  1. Doing a db pull caused errors on an existing project
  2. I created a new local dir and initialized with supabase init
  3. Checked the supabase/.temp/postgres-version and it was at: 15.1.0.19
  4. Changed the version to 15.1.0.117 and now I get the following error:
    invalid reference format
    Retrying after 4s: public.ecr.aws/supabase/postgres:15.1.0.117

    I looked for the version number in aws ecr and found that the latest appears to be no 15.1.0.19, but the one's mentioned here or even 15.1.0.22 (which is in the ECR) give the same error.

I'm stuck :( as I wanted to migration 'cause I had many schema changes to make.

dhurbhat commented 8 months ago

Oh - figured it out. My use of vim was adding a newline which was causing the CLI to report invalid reference format.

If you are using VI (or VIM) then make sure you edit .temp/postgres-version in binary mode and set noeol in VI so that the newline doesn't get recorded with your save.

Also AWS ECR link for supabase is here: https://gallery.ecr.aws/supabase/postgres and you can use this to verify which versions are available.

ebouther commented 8 months ago

I fixed the issue by doing the following:

checking which postgres version is used: docker ps -> public.ecr.aws/supabase/postgres:15.1.0.147

and then running:

echo -n "15.1.0.147" > .temp/postgres-version

encima commented 8 months ago

Thanks for opening, this has been resolved with the CLI now and 15 is the default postgres version.

This can be resolved by:

talamaska commented 6 months ago

I just installed on a fresh PC. The supabase cli installed with brew in wsl is 1.148.6, which seems to be the same in npm. And I got the error with the postgres image version failed to pull docker image: Error response from daemon: manifest for public.ecr.aws/supabase/postgres:15.1.0.19 not found: manifest unknown: Requested image not found

The actual latest version of posgres is 15.1.1.26 in https://gallery.ecr.aws/supabase/postgres. Just fyi.

JNuno007 commented 5 months ago

Had the same issue.

Solution for me:

Only after that log in again and link with your remote project