© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3w ago•
5 replies
regbloke

Local Supabase instance broken after CLI upgrade

CLISolved
Hi guys,
I have upgraded the supabase cli version on my dev macbook to 2.72.7 and after restart, it pulled new versions of containers, but the very first start ended up with error:

Starting database from backup...
Starting containers...
Stopping containers...
Failed to start Docker container: Error response from daemon: error while creating mount source path '/Users/.../supabase/snippets': chown /Users/.../supabase/snippets: operation not permitted

Then on the second and subsequent runs, I'm getting an error in the storage container:

Waiting for health checks...
supabase_storage_horses container logs:
{"level":50,"time":"2026-01-20T04:55:21.329Z","pid":1,"hostname":"afb0900e224b","region":"not-specified","type":"startupError","error":{"raw":"{"cause":"error: duplicate key value violates unique constraint \"migrations_name_key\""}","name":"Error","message":"Migration failed. Reason: duplicate key value violates unique constraint "migrations_name_key"","stack":"Error: Migration failed. Reason: duplicate key value violates unique constraint "migrations_name_key"\n at /app/dist/internal/database/migrations/migrate.js:504:21\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async /app/dist/internal/database/migrations/migrate.js:578:14\n at async connectAndMigrate (/app/dist/internal/database/migrations/migrate.js:389:5)\n at async runMigrationsOnTenant (/app/dist/internal/database/migrations/migrate.js:276:3)\n at async main (/app/dist/start/server.js:94:5)","statusCode":0},"msg":"Server not started with error"}

And the whole instance doesn't start. From what I can see, the error is related to the unique constraint on the "storage.migrations" table (looks like it tries to reapply the same migration again).

Would be very grateful for directions!
Thanks
Tom
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Supabase CLI Local
SupabaseSSupabase / help-and-questions
6mo ago
Reset local Supabase instance?
SupabaseSSupabase / help-and-questions
4y ago
How to use the supabase cli to connect to a local supabase docker instance ?
SupabaseSSupabase / help-and-questions
5mo ago
Supabase CLI - Generating types from local hosted supabase possible?
SupabaseSSupabase / help-and-questions
4y ago