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
965 stars 181 forks source link

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

Open boozedog opened 3 weeks ago

boozedog commented 3 weeks 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 2 weeks 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 1 week 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.