mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:42:59 +03:00
🐛 Bug Report: v1.6.2 -> v1.6.3: failed to apply migrations #118
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.
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.
@ItalyPaleAle commented on GitHub:
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:
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:
Should be fixed by #762, apologies for this
@rjvdw commented on GitHub:
I encountered the same issue while upgrading. The migration failed with the following error:
Running a postgresql 17 database
@aclerici38 commented on GitHub:
I also got this. k8s, postgres v17.5, running distroless image
@ItalyPaleAle commented on GitHub:
@Dmunch04 what version of Postgres are you using? And how are you running it (if a container, what image)?
@Dmunch04 commented on GitHub:
@ItalyPaleAle I'm running Postgres 12.5-alpine in a Docker container.
@ItalyPaleAle commented on GitHub:
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