🐛 Bug Report: Possible 2.2 Bug #602

Closed
opened 2026-02-04 20:38:00 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @alb-dev on GitHub (Jan 11, 2026).

Reproduction steps

Deploy version 2.2 Container

Expected behavior

Startup

Actual Behavior

Instance keeps crashing

Pocket ID Version

2.2.0

Database

sqllite

OS and Environment

Kubernetes 1.35.0 Talos 1.12.1

Log Output

{"time":"2026-01-11T17:14:28.930697363+01:00","level":"WARN","msg":"Database version is newer than the application supports, possible downgrade detected","app":"pocket-id","version":"2.1.0","db_version":20260109090200, "app_version":20260104190900}                                                                                                                                                                                            {"time":"2026-01-11T17:14:28.930736717+01:00","level":"ERROR","msg":"Failed to run pocket-id","app":"pocket-id","version":"2.1.0","error":"failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20260104190900), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)"}
Originally created by @alb-dev on GitHub (Jan 11, 2026). ### Reproduction steps Deploy version 2.2 Container ### Expected behavior Startup ### Actual Behavior Instance keeps crashing ### Pocket ID Version 2.2.0 ### Database sqllite ### OS and Environment Kubernetes 1.35.0 Talos 1.12.1 ### Log Output ``` {"time":"2026-01-11T17:14:28.930697363+01:00","level":"WARN","msg":"Database version is newer than the application supports, possible downgrade detected","app":"pocket-id","version":"2.1.0","db_version":20260109090200, "app_version":20260104190900} {"time":"2026-01-11T17:14:28.930736717+01:00","level":"ERROR","msg":"Failed to run pocket-id","app":"pocket-id","version":"2.1.0","error":"failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20260104190900), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)"} ```
Author
Owner

@alb-dev commented on GitHub (Jan 11, 2026):

Another redeploy seems to fix the release. Seems like kubernetes Probes the Problem. The Startup probe kicked in befor the migration where finished

@alb-dev commented on GitHub (Jan 11, 2026): Another redeploy seems to fix the release. Seems like kubernetes Probes the Problem. The Startup probe kicked in befor the migration where finished
Author
Owner

@joaovitoriasilva commented on GitHub (Jan 12, 2026):

EDIT: Curious, if I use tag v2 it does not work. If I use latest it works

Hi, I am unable to upgrade to v2.2.0. Coming from latest v1. Error bellow:

Creating group 1000...
Creating user 1000...
Jan 11 21:22:14 INF Pocket ID is starting app=pocket-id version=""
Jan 11 21:22:14 INF Connected to database app=pocket-id version="" provider=sqlite
Jan 11 21:22:14 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000
Jan 11 21:22:14 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)"
Jan 11 21:22:15 INF Pocket ID is starting app=pocket-id version=""
Jan 11 21:22:15 INF Connected to database app=pocket-id version="" provider=sqlite
Jan 11 21:22:15 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000
Jan 11 21:22:15 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)"
Jan 11 21:22:15 INF Pocket ID is starting app=pocket-id version=""
Jan 11 21:22:15 INF Connected to database app=pocket-id version="" provider=sqlite
Jan 11 21:22:15 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000
Jan 11 21:22:15 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)"
Jan 11 21:22:16 INF Pocket ID is starting app=pocket-id version=""
Jan 11 21:22:16 INF Connected to database app=pocket-id version="" provider=sqlite
Jan 11 21:22:16 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000
Jan 11 21:22:16 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)"
@joaovitoriasilva commented on GitHub (Jan 12, 2026): EDIT: Curious, if I use tag `v2` it does not work. If I use `latest` it works Hi, I am unable to upgrade to v2.2.0. Coming from latest v1. Error bellow: ``` Creating group 1000... Creating user 1000... Jan 11 21:22:14 INF Pocket ID is starting app=pocket-id version="" Jan 11 21:22:14 INF Connected to database app=pocket-id version="" provider=sqlite Jan 11 21:22:14 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000 Jan 11 21:22:14 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)" Jan 11 21:22:15 INF Pocket ID is starting app=pocket-id version="" Jan 11 21:22:15 INF Connected to database app=pocket-id version="" provider=sqlite Jan 11 21:22:15 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000 Jan 11 21:22:15 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)" Jan 11 21:22:15 INF Pocket ID is starting app=pocket-id version="" Jan 11 21:22:15 INF Connected to database app=pocket-id version="" provider=sqlite Jan 11 21:22:15 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000 Jan 11 21:22:15 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)" Jan 11 21:22:16 INF Pocket ID is starting app=pocket-id version="" Jan 11 21:22:16 INF Connected to database app=pocket-id version="" provider=sqlite Jan 11 21:22:16 WRN Database version is newer than the application supports, possible downgrade detected app=pocket-id version="" db_version=20260109090200 app_version=20251024000000 Jan 11 21:22:16 ERR Failed to run pocket-id app=pocket-id version="" error="failed to initialize database: failed to run migrations: database version (20260109090200) is newer than application version (20251024000000), downgrades are not allowed (set ALLOW_DOWNGRADE=true to enable)" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#602