[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 gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.