Supabase v2.58.5 local fails to start due to storage container error `Error: Migration iceberg-catalog-ids not found`
Describe the bug
Supabase start fails with error supabase_storage_automatic-animatics container is not ready: unhealthy
Container logs show Error: Migration iceberg-catalog-ids not found
To Reproduce Steps to reproduce the behavior:
- Run
supabase linkto link project to supabase project - Run
supabase start - Error storage container is unhealthy
Expected behavior Supabase should start with all containers healthy.
System information
Rerun the failing command with --create-ticket flag.
- Ticket ID: 9192955b520a45c0b94ab2e6a8be3fad
- Version of OS: macOS 15.6.1
- Version of CLI: 2.58.5
- Version of Docker: 28.4.0
- Versions of services:
SERVICE IMAGE LOCAL LINKED supabase/postgres 17.4.1.064 - supabase/gotrue v2.182.1 v2.182.1 postgrest/postgrest v13.0.5 v13.0.5 supabase/realtime v2.63.0 - supabase/storage-api v1.29.0 - supabase/edge-runtime v1.68.4 - supabase/studio 2025.11.10-sha-5291fe3 - supabase/postgres-meta v0.93.1 - supabase/logflare 1.25.3 - supabase/supavisor 2.7.4 -
Additional context
Error in Docker logs from the storage container:
{"level":50,"time":"2025-11-18T00:31:11.164Z","pid":1,"hostname":"8bdb042747e3","region":"not-specified","type":"startupError","error":{"raw":"{\"metadata\":{},\"code\":\"InternalError\",\"httpStatusCode\":500,\"userStatusCode\":500}","name":"Error","message":"Migration iceberg-catalog-ids not found","stack":"Error: Migration iceberg-catalog-ids not found\n at Object.InternalError (/app/dist/internal/errors/codes.js:242:34)\n at /app/dist/internal/database/migrations/migrate.js:425:36\n at async /app/dist/internal/database/migrations/migrate.js:553:14\n at async connectAndMigrate (/app/dist/internal/database/migrations/migrate.js:383:5)\n at async runMigrationsOnTenant (/app/dist/internal/database/migrations/migrate.js:273:3)\n at async main (/app/dist/start/server.js:68:5)","statusCode":500},"msg":"Server not started with error"}
Looks like the same issue as https://github.com/supabase/cli/issues/4191 once again.
Deleting .temp/storage-migration fixes the problem until linking the project again, which then breaks things again.
@sweatybridge any chance you can do whatever you did on #4191 to quickly release a fix
Could you try the beta release to see if it's reproducible?
npx supabase@beta link
I ran into the same error message and running both npx supabase@beta link and npx supabase@beta start fixed it for me.
Hi, I confirm that installing the beta with Scoop fixed it for me too.
Can confirm this issue with CLI v2.58.5.
Running npx supabase@beta link and npx supabase@beta start fixed it for me.
@sweatybridge Running npx supabase@beta link runs into a different issue:
Initialising login role...
Connecting to remote database...
failed to connect to postgres: failed to connect to `host=db.REDACTED.supabase.co user=cli_login_postgres database=postgres`: dial error (dial tcp [REDACTED]:5432: connect: no route to host)
I can share the specific host and IPv6 address with you directly if you need it for debugging.
But good news is running npx supabase@latest link, and then running npx supabase@beta start works.
Alternatively, for anyone encountering this: deleting .temp/storage-migration from your supabase folder will also solve the problem temporarily until you link again.
EDIT: In case anyone runs into the connection issue, please direct your comments to https://github.com/supabase/cli/issues/4503. Trying to keep this issue focused on the storage migration problem.
Alternatively, for anyone encountering this: deleting
.temp/storage-migrationfrom your supabase folder will also solve the problem temporarily until you link again.
this fix is working on my env
Still seeing this issue StorageBackendError: Migration iceberg-catalog-ids not found when I run $ supabase db pull --linked --debug
Still seeing this issue
StorageBackendError: Migration iceberg-catalog-ids not foundwhen I run$ supabase db pull --linked --debug
hey @yiyeum try running npx supabase@beta db pull --linked – this worked on my end
Any reason why the latest storage was rolled out to our projects but we're required to use a beta version of the CLI?
Anyone who uses supabase link in their development workflow before using npx supabase will be broken currently. All of the teams that I'm managing are running into this issue now.
Edit: thank you @pkabra for the work around. This is what I'm doing now in the mean-time.
Here with an unrelated App Store rejection trying to fix before the holidays and I'm hopelessly reliant on my BAAS do the local dev magic I've become addicted to :) Nothing here worked until I ran.
supabase stop --no-backup (2.58.5) --no-backup was the trick
npx supabase@beta start
I'm seeing the same connect: no route to host" error @pkabra was seeing when I run npx supabase@beta db pull --linkedafter linking. (same without--link`).
↪ npx supabase@beta db pull
Initialising login role...
Connecting to remote database...
failed to connect to postgres: failed to connect to `host=db.[project_id].supabase.co user=cli_login_postgres database=postgres`: dial error (dial tcp [...]:5432: connect: no route to host)
Try rerunning the command with --debug to troubleshoot the error.
Any Working Fix ?
I eventually got things working using the beta release. My connection errors were solved by unbanning my IP (from https://www.reddit.com/r/Supabase/comments/1ov7lzq/comment/nommkgt/ / https://supabase.com/docs/reference/cli/supabase-network-bans), and a subsequent one was because my ISP doesn't support ipv6 I think, so a dedicated ipv4 connection pooler resolved it.
This error is breaking my CI :(((
I did this to fix it in my project: added a script to wipe the cached storage migrations and wrapped start/reset with it. In supabase/package.json:
"scripts": {
"clean:storage-temp": "rm -rf supabase/.temp/storage-migration",
"start": "yarn clean:storage-temp && supabase start",
"reset": "yarn clean:storage-temp && supabase db reset"
}
Now I run yarn supa start/yarn supa reset and the “iceberg-catalog-ids not found” storage migration crash is gone. Make sure to clean before starting after supabase link as well.
So I'm getting the same "failed to connect to postgres error" as above.. I have no banned IP's.. How do I get around this? I'm currently running 2.60.3.. I'm unable to link or run commands against remote db's.. If I run 2.58.5 I don't have the failed to connect, but do have the "Migration iceberg-catalog-ids" error.. I tried 2.58.6, 2.58.7 these have the same iceberg-catalog-ids error but no failed to connect err.. However 2.58.8 and beyond have the "failed to connect to postgres error", so I don't know if they have the iceberg-catalog-ids error. I'm running the supabase client from the linux amd64.deb packages.. So using the beta does not help.. How can we get functional again?
@JulianSwales I managed to fix all of the issues following @HansDaigle's suggestion with version 2.55.5.
This is what my CI looks like:
name: Supabase
on:
push:
branches:
- "feat/**"
- "feature/**"
- "fix/**"
- "chore/**"
- "docs/**"
- "refactor/**"
- "perf/**"
- "test/**"
- "style/**"
paths:
- "supabase/**"
workflow_dispatch:
jobs:
test:
name: Test, lint, and generate backup of database
runs-on: ubuntu-latest
environment:
name: Preview – bytebuzz
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.STAGING_PROJECT_ID }}
steps:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
with:
version: 2.55.5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Start Supabase local development setup
# Temporary fix to avoid migration error https://github.com/supabase/cli/issues/4466
run: rm -rf supabase/.temp/storage-migration && bun run db:start && rm -rf supabase/.temp/storage-migration && supabase db reset
# TODO: Remove temporary fix once the issue is fixed
# run: bun run db:start
- name: Link to staging project
# Temporary fix to avoid migration error https://github.com/supabase/cli/issues/4466
run: rm -rf supabase/.temp/storage-migration && bun run db:link --project-ref $SUPABASE_PROJECT_ID
# TODO: Remove temporary fix once the issue is fixed
# run: bun run db:link --project-ref $SUPABASE_PROJECT_ID
- name: See schemas differences between local and remote
# Temporary fix to avoid migration error https://github.com/supabase/cli/issues/4466
run: rm -rf supabase/.temp/storage-migration && supabase db reset && bun run db:diff
# TODO: Remove temporary fix once the issue is fixed
# run: bun run db:diff --debug
- name: Run lint
# Temporary fix to avoid migration error https://github.com/supabase/cli/issues/4466
run: rm -rf supabase/.temp/storage-migration && bun run db:lint --fail-on error
# TODO: Remove temporary fix once the issue is fixed
# run: bun run db:lint --fail-on error
- name: Run tests
# Temporary fix to avoid migration error https://github.com/supabase/cli/issues/4466
run: rm -rf supabase/.temp/storage-migration && bun run db:test
# TODO: Remove temporary fix once the issue is fixed
# run: bun run db:test
- name: Verify generated types are checked in
# Temporary fix to avoid migration error https://github.com/supabase/cli/issues/4466
run: |
rm -rf supabase/.temp/storage-migration && supabase gen types typescript --local > types.gen.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet types.gen.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
# run: |
# supabase gen types typescript --local > types.gen.ts
# if ! git diff --ignore-space-at-eol --exit-code --quiet types.gen.ts; then
# echo "Detected uncommitted changes after build. See status below:"
# git diff
# exit 1
# fi
- name: Generate backup
# Temporary fix to avoid migration error https://github.com/supabase/cli/issues/4466
run: rm -rf supabase/.temp/storage-migration && bun run db:dump-remote
# run: bun run db:dump-remote
# TODO: Remove temporary fix once the issue is fixed
# run: bun run db:dump-remote
- name: Upload backup to Vercel Blob
uses: dartilesm/vercel-blob-action@v2
with:
source: "supabase/dump"
destination: "db-backup-pr/${{ github.ref_name }}"
read-write-token: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
@dartilesm Thanks for that.. It pointed me to getting it working.. I hadn't realized that the project was still linked and working after removing the supabase/.temp/storage-migration file.. So I've been able to get this to work now with 2.58.5 by doing the link then removing that file, and so far I've been able to get everything working.. My diff's work, my pushs works...
@dartilesm thanks for that, I ran into the same problem on my Github workflows. I ended up locking to 2.58.5 ironically. It works for my use case and avoids the connection error.
The connection issues are a bit outside of the scope of this issue, so made https://github.com/supabase/cli/issues/4503 if anyone continues to run into connection problems with 2.61 or higher.
I'd recommend we try to keep this issue focused on the storage migration problem for local development that's cropped up periodically across multiple versions.