umami: [Docker] Upgrade from 2.4.1 to 2.5.0 fail
Describe the Bug
I updated the docker image to the latest version and got a prisma migrate deploy command error after container boot.
Database
MySQL
Relevant log output
umami-umami-1 | yarn run v1.22.19
umami-umami-1 | $ npm-run-all check-db update-tracker start-server
umami-umami-1 | $ node scripts/check-db.js
umami-umami-1 | ✓ DATABASE_URL is defined.
umami-umami-1 | ✓ Database connection successful.
umami-umami-1 | ✓ Database version check successful.
umami-umami-1 | Error: P3009
umami-umami-1 |
umami-umami-1 |
umami-umami-1 | 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
umami-umami-1 | The `03_metric_performance_index` migration started at 2023-08-18 06:55:19.444 UTC failed
umami-umami-1 |
umami-umami-1 |
umami-umami-1 |
umami-umami-1 |
umami-umami-1 |
umami-umami-1 |
umami-umami-1 | error Command failed with exit code 1.
umami-umami-1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
umami-umami-1 | ERROR: "check-db" exited with 1.
umami-umami-1 | error Command failed with exit code 1.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Docker
Temp fix:
UPDATE _prisma_migrations SET `finished_at` = CURRENT_TIMESTAMP WHERE `migration_name` = '03_metric_performance_index';
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 25 (2 by maintainers)
Same here with Postgres