© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3w ago•
17 replies
dch

[self host] Docker storage fail to start after upgrade docker image

self-hostedstorage
I upgraded each image in docker-compose.yml to the latest version and start by
docker-compose down -v; 
docker compose up --force-recreate -d
docker-compose down -v; 
docker compose up --force-recreate -d
, Everything works accept storage get error. How to solve this
{"level":50,"time":"2026-01-21T00:48:12.347Z","pid":1,"hostname":"768c3e889669","region":"stub","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"}
{"level":50,"time":"2026-01-21T00:48:12.347Z","pid":1,"hostname":"768c3e889669","region":"stub","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"}
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Self-host storage doubt
SupabaseSSupabase / help-and-questions
3mo ago
Storage on Self Hosting (Docker)
SupabaseSSupabase / help-and-questions
4y ago
To self host or not to self host
SupabaseSSupabase / help-and-questions
5mo ago
Self-Host
SupabaseSSupabase / help-and-questions
9mo ago