Skip to content

Restart of Docker container fails with DB error (postgresql-v2.19.0) #3673

@vpeil

Description

@vpeil

Describe the Bug

I am using this image ghcr.io/umami-software/umami:postgresql-v2.19.0. The Postgresql-Db itself lives on another host (version 15 of postgres).

Out of nowhere, after restarting the container I am getting an DB error.

I my humble opinion nothing has changed, so no migration needed.
I have a DB of 110 DB and really would like to keep the data.

Thanks in advance for any help!

Database

PostgreSQL

Relevant log output

> [email protected] start-docker /app
> npm-run-all check-db update-tracker set-routes-manifest start-server


> [email protected] check-db /app
> node scripts/check-db.js

[[email protected]] injecting env (0) from .env -- tip: 🔐 encrypt with Dotenvx: https://dotenvx.com
✓ DATABASE_URL is defined.
✓ Database connection successful.
✓ Database version check successful.
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
The `01_init` migration started at 2025-10-27 17:06:00.831525 UTC failed


✗ Command failed: prisma migrate deploy
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
The `01_init` migration started at 2025-10-27 17:06:00.831525 UTC failed



 ELIFECYCLE  Command failed with exit code 1.
ERROR: "check-db" exited with 1.
 ELIFECYCLE  Command failed with exit code 1.

Which Umami version are you using? (if relevant)

2.19.0

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions