mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 09:32:36 -05:00
[GH-ISSUE #1407] The docker image pangolin:postgresql does not check if migrations have already been done #1895
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 @kevin-gillet on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1407
Originally assigned to: @oschwartz10612, @marcschaeferger on GitHub.
The application starts successfully on the first deployment, but subsequent container restarts fail during the migration phase.
The migration system attempts to recreate existing database tables and re-insert migration version records, resulting in constraint violations.
Configuration of the docker-compose stack :
This behavior is the same with the following images fosrl/pangolin:postgresql-1.9.[0-3] i tested.
Below are the error logs from a failed container restart:
Side note, this is weird to have
> DB_TYPE=sqliteon a postgres DB backend image, could it be part of the cause ? I mean the requests seems to be well formed and played, but this is confusing.@github-actions[bot] commented on GitHub (Sep 18, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@marcschaeferger commented on GitHub (Sep 18, 2025):
I'll take a look
@miloschwartz commented on GitHub (Sep 28, 2025):
@kevin-gillet I was unable to reproduce this on latest. I tried on a fresh db, restarted it multiple times, upgraded versions incrementally, and restarted again a few times. Are you still experiencing this problem?
@kevin-gillet commented on GitHub (Sep 30, 2025):
I am not experiencing this on the latest versions (1.10.x), i can restart my instance without any migrations issues now.