mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 05:39:49 -05:00
[GH-ISSUE #2327] Migration 1.15.0 fails to run, stuck with "no such column: requireDeviceApproval" #6935
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 @Mevas on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2327
Describe the Bug
Title: SQLite Migration 1.15.0 fails to run, stuck with "no such column: requireDeviceApproval"
Description:
When upgrading from 1.14.0 to 1.15.0, the migration fails silently and leaves the database in an inconsistent state. The app then continuously errors with:
Root Cause:
On startup, the migration runner outputs:
This indicates the upgrade check logic is broken. The
versionMigrationstable was empty, but the migration runner incorrectly determined that 1.15.0 was already the current version and skipped running the 1.15.0 migration. This leaves the database schema incomplete.Note: Even manually setting
APP_VERSION="0.14.1"when running the migration script doesn't work:The migration runner still reports "Starting migrations from version 1.15.0" despite the explicit environment variable, suggesting the version detection logic ignores
APP_VERSIONor has another source of truth.Possible Issue:
It seems like fresh 1.14.1 deployments may not properly populate the
versionMigrationstable, causing subsequent upgrades to fail.Workaround:
Manually insert the missing 1.14.0 entry into the migrations table:
Run migrations manually:
Verify 1.15.0 migration completed:
Environment
To Reproduce
versionMigrationstable — it's empty (or missing 1.14.0)requireDeviceApprovalcolumn missing errorExpected Behavior
versionMigrationswith the current version@oschwartz10612 commented on GitHub (Jan 26, 2026):
Hello. I think maybe somehow you got your DB into a weird state. I just tested this and was unable to replicate. After installing a fresh 1.14.1 and then bumping the image and restarting the container I got a successful migration:
On first run, if the
versionMigrationstable doesn’t exist, the setup code runs the initial migrations and then inserts the currentAPP_VERSIONintoversionMigrations. See:Could you confirm if you are able to replicate the issue somehow reliably?
@Mevas commented on GitHub (Jan 26, 2026):
Oh, it was indeed installed through the proxmox helper scripts, as linked in the mention. This issue can safely be closed, as the issue seems to have been on their end - I hadn't even thought of that.