#1544·linkwarden

How to fix broken migration?

Author: kylepykeCreated Dec 24, 2025Updated Oct 1, 2026
Labelsquestion

Is your question related to a problem or code? Please describe. Updated to most recent version. Migration started, but failed due to no space left on device. After clearing space, Postgres starts, but receiving this error in Linkwarden server logs:

The `20251216090848_add_app_migration_table` migration started at 2025-12-24 18:54:29.289566 UTC failed

Prisma schema loaded from schema.prisma

Datasource "db": PostgreSQL database "postgres", schema "public" at "postgres:5432"

91 migrations found in prisma/migrations


Error: P3009

migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve

Linkwarden is now stuck in a restart loop. I'm unable to try the suggestions at https://pris.ly/d/migrate-resolve, because the container keeps restarting.

Describe what you've tried to solve this question Attempted resolutions at https://pris.ly/d/migrate-resolve, but the container keeps restarting.

Include any code or screenshots (if applicable) Add any code snippets, error messages, or screenshots that might help others understand your question better.

Additional context Include any additional context or details that might help get a clearer understanding of your question.