mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-28 11:20:46 +03:00
🐛 Bug Report: v1.6.2 -> v1.6.3: failed to apply migrations #385
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @plsnotracking on GitHub (Jul 21, 2025).
Reproduction steps
I rolled out my deployment from 1.6.2 -> 1.6.3?
Expected behavior
Update should be rolled out smooth.
Actual Behavior
N/A
Version and Environment
kubernetes - v.1.6.3
Log Output
2025/07/21 04:14:55 failed to run migrations: failed to apply migrations: Dirty database version 202507050
00000. Fix and force version.
@aclerici38 commented on GitHub (Jul 21, 2025):
I also got this. k8s, postgres v17.5, running distroless image
@rjvdw commented on GitHub (Jul 21, 2025):
I encountered the same issue while upgrading. The migration failed with the following error:
Running a postgresql 17 database
@ItalyPaleAle commented on GitHub (Jul 21, 2025):
Should be fixed by #762, apologies for this
@ItalyPaleAle commented on GitHub (Jul 21, 2025):
This is fixed in 1.6.4 which is building now, and should be out in a few mins.
If you've already upgraded to 1.6.3
You may need to run a SQL query to make sure the "dirty" state is cleaned. Please run this query if you're having issues with Pocket ID starting:
(The migration is idempotent so it's fine to re-run it)
@Dmunch04 commented on GitHub (Jul 22, 2025):
I had the same issues, and ran the query as you described, however now I'm gettings this error on startup
@ItalyPaleAle commented on GitHub (Jul 22, 2025):
@Dmunch04 what version of Postgres are you using? And how are you running it (if a container, what image)?
@Dmunch04 commented on GitHub (Jul 22, 2025):
@ItalyPaleAle I'm running Postgres 12.5-alpine in a Docker container.
@ItalyPaleAle commented on GitHub (Jul 22, 2025):
It appears that the normalize function was added in 13, so you will need to upgrade your database to at least version 13.
Also note that PG 12 is EOL and unsupported at this stage. M