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.09k stars 212 forks source link

`supabase link` not updating outdated `storage-api` service #2473

Open boozedog opened 5 months ago

boozedog commented 5 months ago

Describe the bug I'm getting this warning

You are running outdated service versions locally: 
supabase/storage-api:v1.0.6 => v1.6.4
Run supabase link to update them.

But running supabase link does not update the outdated storage-api service

Screenshots after supabase link:

❯ supabase services

        SERVICE IMAGE      │      LOCAL       │  LINKED
  ─────────────────────────┼──────────────────┼────────────
    supabase/postgres      │ 15.1.1.25        │ 15.1.1.25
    supabase/gotrue        │ v2.152.1         │ v2.152.1
    postgrest/postgrest    │ v12.0.2          │ v12.0.2
    supabase/realtime      │ v2.28.32         │ -
    supabase/storage-api   │ v1.0.6           │ v1.6.4
    supabase/edge-runtime  │ v1.54.6          │ -
    supabase/studio        │ 20240422-5cf8f30 │ -
    supabase/postgres-meta │ v0.80.0          │ -
    supabase/logflare      │ 1.4.0            │ -
    supabase/supavisor     │ 1.1.56           │ -
    darthsim/imgproxy      │ v3.8.0           │ -

Run supabase link to sync your local image versions with the linked project.

System information

❯ cat /etc/lsb-release 
DISTRIB_CODENAME=vicuna
DISTRIB_DESCRIPTION="NixOS 24.11 (Vicuna)"
DISTRIB_ID=nixos
DISTRIB_RELEASE="24.11"
LSB_VERSION="24.11 (Vicuna)"

❯ node --version
v20.11.1

❯ supabase --version
1.178.2

❯ docker --version
Docker version 24.0.9, build v24.0.9
sweatybridge commented 4 months ago

I can't reproduce this locally. But as an alternative, you can manually update the storage version to match hosted.

echo "v1.6.4" > supabase/.temp/storage-version
boozedog commented 4 months ago

I can't reproduce this locally. But as an alternative, you can manually update the storage version to match hosted.

echo "v1.6.4" > supabase/.temp/storage-version

Thanks @sweatybridge I gave that a try (using v1.6.8) and I can see the correct value in supabase/.temp/storage-version but it didn't seem to have any effect:

❯ supabase start
You are running outdated service versions locally:
supabase/storage-api:v1.0.6 => v1.6.8
Run supabase link to update them.
haydn commented 1 month ago

@sweatybridge FYI, I don't think supabase link has ever successfully updated the image versions for me. I just tried again now:

> supabase --version
1.204.3

> supabase services

        SERVICE IMAGE      │      LOCAL       │   LINKED
  ─────────────────────────┼──────────────────┼─────────────
    supabase/postgres      │ 14.1.0.89        │ 15.6.1.132
    supabase/gotrue        │ v2.158.1         │ v2.163.0
    postgrest/postgrest    │ v12.2.0          │ v12.2.3
    supabase/realtime      │ v2.30.34         │ -
    supabase/storage-api   │ v1.11.13         │ v1.11.14
    supabase/edge-runtime  │ v1.58.12         │ -
    supabase/studio        │ 20240930-16f2b8e │ -
    supabase/postgres-meta │ v0.83.2          │ -
    supabase/logflare      │ 1.4.0            │ -
    supabase/supavisor     │ 1.1.56           │ -

Run supabase link to sync your local image versions with the linked project.

> supabase link --project-ref «PROJECT REF»
Enter your database password (or leave blank to skip):
Finished supabase link.

> supabase services

        SERVICE IMAGE      │      LOCAL       │   LINKED
  ─────────────────────────┼──────────────────┼─────────────
    supabase/postgres      │ 14.1.0.89        │ 15.6.1.132
    supabase/gotrue        │ v2.158.1         │ v2.163.0
    postgrest/postgrest    │ v12.2.0          │ v12.2.3
    supabase/realtime      │ v2.30.34         │ -
    supabase/storage-api   │ v1.11.13         │ v1.11.14
    supabase/edge-runtime  │ v1.58.12         │ -
    supabase/studio        │ 20240930-16f2b8e │ -
    supabase/postgres-meta │ v0.83.2          │ -
    supabase/logflare      │ 1.4.0            │ -
    supabase/supavisor     │ 1.1.56           │ -

Run supabase link to sync your local image versions with the linked project.