🐛 Bug Report: Unable to update #24

Closed
opened 2025-10-06 23:58:38 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @mike94100 on GitHub.

Reproduction steps

Attempting to update the container. From 1.6.4 per WebUI to 1.10.

Expected behavior

Update to latest version.

Actual Behavior

Nothing, container eventually starts back up with previous version.

Pocket ID Version

v1.6.4

Database

Default SQLite

OS and Environment

Docker, Debian as VM in Proxmox

Log Output

pocket-id | time=2025-09-15T07:23:31.543Z level=INFO msg="Pocket ID is starting" app=pocket-id version=1.10.0
pocket-id | time=2025-09-15T07:23:31.546Z level=INFO msg="Connected to database" app=pocket-id version=1.10.0 provider=sqlite
pocket-id | time=2025-09-15T07:23:31.546Z level=ERROR msg="Failed to run pocket-id" app=pocket-id version=1.10.0 error="failed to initialize database: failed to run migrations: failed to apply embedded migrations: no migration found for version 20250710011023: read down for version 20250710011023 migrations/sqlite: file does not exist"

Originally created by @mike94100 on GitHub. ### Reproduction steps Attempting to update the container. From 1.6.4 per WebUI to 1.10. ### Expected behavior Update to latest version. ### Actual Behavior Nothing, container eventually starts back up with previous version. ### Pocket ID Version v1.6.4 ### Database Default SQLite ### OS and Environment Docker, Debian as VM in Proxmox ### Log Output pocket-id | time=2025-09-15T07:23:31.543Z level=INFO msg="Pocket ID is starting" app=pocket-id version=1.10.0 pocket-id | time=2025-09-15T07:23:31.546Z level=INFO msg="Connected to database" app=pocket-id version=1.10.0 provider=sqlite pocket-id | time=2025-09-15T07:23:31.546Z level=ERROR msg="Failed to run pocket-id" app=pocket-id version=1.10.0 error="failed to initialize database: failed to run migrations: failed to apply embedded migrations: no migration found for version 20250710011023: read down for version 20250710011023 migrations/sqlite: file does not exist"
Author
Owner

@mike94100 commented on GitHub:

Definitely not manually shut down, timing shown is accurate where it shut down a few seconds after I started the container. The only error in the logs was from right above the shutting down entry at the end, copied here:

pocket-id-test | Sep 20 06:57:03 ERR Job failed with error app=pocket-id version=1.11.1 name=SendHeartbeat id=bda95e6b-735e-4674-aae5-0fd48c41eefb error="heartbeat request failed: request failed with status code: 429"

I also posted in the Discord, here. Copied below:

Can anyone help with this error when trying to start a new Pocket-ID container?
pocket-id-test | Sep 20 07:26:00 ERR Job failed with error app=pocket-id version=1.11.1 name=SendHeartbeat id=56df85f3-a694-4cc8-803b-7adab109bffb error="heartbeat request failed: request failed with status code: 429"

If I try to run it again I get this:
pocket-id-test | time=2025-09-20T07:27:01.672Z level=ERROR msg="Failed to run pocket-id" app=pocket-id version="" error="failed to initialize database: failed to run migrations: failed to apply migrations: no migration found for version 20250917170000: read down for version 20250917170000 migrations/sqlite: file does not exist"

Version 1.6.4 listed in the Web GUI, which is still working for me. Just does not update past that. I have tried a fresh install in a new directory & deleting database. Had a GitHub issue https://github.com/pocket-id/pocket-id/issues/953. I just tried removing all existing pocket-id images and restarting that way. It pulls the new image, fails, then pulls an image tagged PR-747 from 7 weeks ago.

Will edit this after I can run it on a separate machine.

@mike94100 commented on GitHub: Definitely not manually shut down, timing shown is accurate where it shut down a few seconds after I started the container. The only error in the logs was from right above the shutting down entry at the end, copied here: > pocket-id-test | Sep 20 06:57:03 ERR Job failed with error app=pocket-id version=1.11.1 name=SendHeartbeat id=bda95e6b-735e-4674-aae5-0fd48c41eefb error="heartbeat request failed: request failed with status code: 429" I also posted in the Discord, [here](https://discord.com/channels/1347317240575561809/1347317241493852171/1418861218533474314). Copied below: > Can anyone help with this error when trying to start a new Pocket-ID container? > pocket-id-test | Sep 20 07:26:00 ERR Job failed with error app=pocket-id version=1.11.1 name=SendHeartbeat id=56df85f3-a694-4cc8-803b-7adab109bffb error="heartbeat request failed: request failed with status code: 429" > If I try to run it again I get this: > pocket-id-test | time=2025-09-20T07:27:01.672Z level=ERROR msg="Failed to run pocket-id" app=pocket-id version="" error="failed to initialize database: failed to run migrations: failed to apply migrations: no migration found for version 20250917170000: read down for version 20250917170000 migrations/sqlite: file does not exist" > Version 1.6.4 listed in the Web GUI, which is still working for me. Just does not update past that. I have tried a fresh install in a new directory & deleting database. Had a GitHub issue https://github.com/pocket-id/pocket-id/issues/953. I just tried removing all existing pocket-id images and restarting that way. It pulls the new image, fails, then pulls an image tagged PR-747 from 7 weeks ago. Will edit this after I can run it on a separate machine.
Author
Owner

@stonith404 commented on GitHub:

Were you using any non latest image like a development image for testing #544?

If so, please try to run the following commands on the database:

ALTER TABLE oidc_clients DROP COLUMN requires_reauthentication;
DROP INDEX IF EXISTS idx_reauthentication_tokens_token;
DROP TABLE IF EXISTS reauthentication_tokens;

UPDATE schema_migrations SET version = 20250705000000, dirty = false;

Make sure to create a backup of the database first.

@stonith404 commented on GitHub: Were you using any non `latest` image like a development image for testing #544? If so, please try to run the following commands on the database: ```sql ALTER TABLE oidc_clients DROP COLUMN requires_reauthentication; DROP INDEX IF EXISTS idx_reauthentication_tokens_token; DROP TABLE IF EXISTS reauthentication_tokens; UPDATE schema_migrations SET version = 20250705000000, dirty = false; ``` Make sure to create a backup of the database first.
Author
Owner

@mike94100 commented on GitHub:

I tried to run a completely fresh container & directory with LOG_LEVEL=debug, got the following error:

pocket-id-test  | Creating group 1000...
pocket-id-test  | Creating user 1000...
pocket-id-test  | Sep 20 06:57:01 INF Pocket ID is starting app=pocket-id version=1.11.1
pocket-id-test  | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=background.webp
pocket-id-test  | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=favicon.ico
pocket-id-test  | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=logo.svg
pocket-id-test  | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=logoDark.svg
pocket-id-test  | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=logoLight.svg
pocket-id-test  | Sep 20 06:57:01 INF Connected to database app=pocket-id version=1.11.1 provider=sqlite
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [186.503µs] app=pocket-id version=1.11.1 query="SELECT * FROM `app_config_variables`" duration=186.503µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/service/app_config_service.go:387
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [20.933µs] app=pocket-id version=1.11.1 query="SELECT * FROM `app_config_variables`" duration=20.933µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/service/app_config_service.go:387
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [50.722µs] app=pocket-id version=1.11.1 query="INSERT INTO `app_config_variables` (`key`,`value`) VALUES (\"instanceId\",\"5ad0ede7-e1f5-9d64-7743-987a7274b55a\") ON CONFLICT (`key`) DO UPDATE SET `value`=`excluded`.`value`" duration=50.722µs rows=1 file=github.com/pocket-id/pocket-id/backend/internal/service/app_config_service.go:153
pocket-id-test  | Sep 20 06:57:01 WRN MAXMIND_LICENSE_KEY environment variable is empty: the GeoLite2 City database won't be updated app=pocket-id version=1.11.1
pocket-id-test  | Sep 20 06:57:01 INF Starting job scheduler app=pocket-id version=1.11.1
pocket-id-test  | Sep 20 06:57:01 INF Server listening app=pocket-id version=1.11.1 addr=0.0.0.0:1411
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearOidcRefreshTokens id=f5d6ed06-878f-4b12-abfc-74cef34dba8d
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=SyncLdap id=2c7e49bb-532d-40dd-871c-a97792dcc42f
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=SyncLdap id=2c7e49bb-532d-40dd-871c-a97792dcc42f
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearOneTimeAccessTokens id=95db9b6b-4a45-4267-9337-91853472099e
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearWebauthnSessions id=dcb5e366-caab-47b9-b2f0-db2434eb05c1
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearOidcAuthorizationCodes id=4bf7cc05-aa99-4aae-ab35-7afa908abcd5
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=SendHeartbeat id=bda95e6b-735e-4674-aae5-0fd48c41eefb
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearAuditLogs id=9be581dc-b132-4ba6-bf17-15f02db67062
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearReauthenticationTokens id=e99e3d06-f0d3-42a1-8da4-a44632188d64
pocket-id-test  | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearSignupTokens id=1c51865d-ab10-4914-876f-495b6f0e6c3b
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [809.404µs] app=pocket-id version=1.11.1 query="DELETE FROM `webauthn_sessions` WHERE expires_at < 1758351421" duration=809.404µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:41
pocket-id-test  | Sep 20 06:57:01 INF Cleaned expired WebAuthn sessions app=pocket-id version=1.11.1 count=0
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearWebauthnSessions id=dcb5e366-caab-47b9-b2f0-db2434eb05c1
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [822.048µs] app=pocket-id version=1.11.1 query="DELETE FROM `reauthentication_tokens` WHERE expires_at < 1758351421" duration=822.048µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:112
pocket-id-test  | Sep 20 06:57:01 INF Cleaned expired reauthentication tokens app=pocket-id version=1.11.1 count=0
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearReauthenticationTokens id=e99e3d06-f0d3-42a1-8da4-a44632188d64
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [1.207438ms] app=pocket-id version=1.11.1 query="DELETE FROM `audit_logs` WHERE created_at < 1750575421" duration=1.207438ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:126
pocket-id-test  | Sep 20 06:57:01 INF Deleted old audit logs app=pocket-id version=1.11.1 count=0
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearAuditLogs id=9be581dc-b132-4ba6-bf17-15f02db67062
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [1.582632ms] app=pocket-id version=1.11.1 query="DELETE FROM `oidc_refresh_tokens` WHERE expires_at < 1758351421" duration=1.582632ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:98
pocket-id-test  | Sep 20 06:57:01 INF Cleaned expired OIDC refresh tokens app=pocket-id version=1.11.1 count=0
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearOidcRefreshTokens id=f5d6ed06-878f-4b12-abfc-74cef34dba8d
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [1.902259ms] app=pocket-id version=1.11.1 query="DELETE FROM `one_time_access_tokens` WHERE expires_at < 1758351421" duration=1.902259ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:55
pocket-id-test  | Sep 20 06:57:01 INF Cleaned expired one-time access tokens app=pocket-id version=1.11.1 count=0
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearOneTimeAccessTokens id=95db9b6b-4a45-4267-9337-91853472099e
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [2.140967ms] app=pocket-id version=1.11.1 query="DELETE FROM `signup_tokens` WHERE expires_at < 1758351421" duration=2.140967ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:70
pocket-id-test  | Sep 20 06:57:01 INF Cleaned expired tokens app=pocket-id version=1.11.1 count=0
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearSignupTokens id=1c51865d-ab10-4914-876f-495b6f0e6c3b
pocket-id-test  | Sep 20 06:57:01 DBG SQL query executed [3.061317ms] app=pocket-id version=1.11.1 query="DELETE FROM `oidc_authorization_codes` WHERE expires_at < 1758351421" duration=3.061317ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:84
pocket-id-test  | Sep 20 06:57:01 INF Cleaned expired OIDC authorization codes app=pocket-id version=1.11.1 count=0
pocket-id-test  | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearOidcAuthorizationCodes id=4bf7cc05-aa99-4aae-ab35-7afa908abcd5
pocket-id-test  | Sep 20 06:57:03 ERR Job failed with error app=pocket-id version=1.11.1 name=SendHeartbeat id=bda95e6b-735e-4674-aae5-0fd48c41eefb error="heartbeat request failed: request failed with status code: 429"
pocket-id-test  | Sep 20 06:57:11 INF Received interrupt signal. Shutting down… app=pocket-id version=1.11.1
pocket-id-test  | Sep 20 06:57:11 INF Job scheduler shut down app=pocket-id version=1.11.1
pocket-id-test exited with code 0
@mike94100 commented on GitHub: I tried to run a completely fresh container & directory with LOG_LEVEL=debug, got the following error: ``` pocket-id-test | Creating group 1000... pocket-id-test | Creating user 1000... pocket-id-test | Sep 20 06:57:01 INF Pocket ID is starting app=pocket-id version=1.11.1 pocket-id-test | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=background.webp pocket-id-test | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=favicon.ico pocket-id-test | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=logo.svg pocket-id-test | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=logoDark.svg pocket-id-test | Sep 20 06:57:01 INF Writing new application image app=pocket-id version=1.11.1 name=logoLight.svg pocket-id-test | Sep 20 06:57:01 INF Connected to database app=pocket-id version=1.11.1 provider=sqlite pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [186.503µs] app=pocket-id version=1.11.1 query="SELECT * FROM `app_config_variables`" duration=186.503µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/service/app_config_service.go:387 pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [20.933µs] app=pocket-id version=1.11.1 query="SELECT * FROM `app_config_variables`" duration=20.933µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/service/app_config_service.go:387 pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [50.722µs] app=pocket-id version=1.11.1 query="INSERT INTO `app_config_variables` (`key`,`value`) VALUES (\"instanceId\",\"5ad0ede7-e1f5-9d64-7743-987a7274b55a\") ON CONFLICT (`key`) DO UPDATE SET `value`=`excluded`.`value`" duration=50.722µs rows=1 file=github.com/pocket-id/pocket-id/backend/internal/service/app_config_service.go:153 pocket-id-test | Sep 20 06:57:01 WRN MAXMIND_LICENSE_KEY environment variable is empty: the GeoLite2 City database won't be updated app=pocket-id version=1.11.1 pocket-id-test | Sep 20 06:57:01 INF Starting job scheduler app=pocket-id version=1.11.1 pocket-id-test | Sep 20 06:57:01 INF Server listening app=pocket-id version=1.11.1 addr=0.0.0.0:1411 pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearOidcRefreshTokens id=f5d6ed06-878f-4b12-abfc-74cef34dba8d pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=SyncLdap id=2c7e49bb-532d-40dd-871c-a97792dcc42f pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=SyncLdap id=2c7e49bb-532d-40dd-871c-a97792dcc42f pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearOneTimeAccessTokens id=95db9b6b-4a45-4267-9337-91853472099e pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearWebauthnSessions id=dcb5e366-caab-47b9-b2f0-db2434eb05c1 pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearOidcAuthorizationCodes id=4bf7cc05-aa99-4aae-ab35-7afa908abcd5 pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=SendHeartbeat id=bda95e6b-735e-4674-aae5-0fd48c41eefb pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearAuditLogs id=9be581dc-b132-4ba6-bf17-15f02db67062 pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearReauthenticationTokens id=e99e3d06-f0d3-42a1-8da4-a44632188d64 pocket-id-test | Sep 20 06:57:01 INF Starting job app=pocket-id version=1.11.1 name=ClearSignupTokens id=1c51865d-ab10-4914-876f-495b6f0e6c3b pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [809.404µs] app=pocket-id version=1.11.1 query="DELETE FROM `webauthn_sessions` WHERE expires_at < 1758351421" duration=809.404µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:41 pocket-id-test | Sep 20 06:57:01 INF Cleaned expired WebAuthn sessions app=pocket-id version=1.11.1 count=0 pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearWebauthnSessions id=dcb5e366-caab-47b9-b2f0-db2434eb05c1 pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [822.048µs] app=pocket-id version=1.11.1 query="DELETE FROM `reauthentication_tokens` WHERE expires_at < 1758351421" duration=822.048µs rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:112 pocket-id-test | Sep 20 06:57:01 INF Cleaned expired reauthentication tokens app=pocket-id version=1.11.1 count=0 pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearReauthenticationTokens id=e99e3d06-f0d3-42a1-8da4-a44632188d64 pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [1.207438ms] app=pocket-id version=1.11.1 query="DELETE FROM `audit_logs` WHERE created_at < 1750575421" duration=1.207438ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:126 pocket-id-test | Sep 20 06:57:01 INF Deleted old audit logs app=pocket-id version=1.11.1 count=0 pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearAuditLogs id=9be581dc-b132-4ba6-bf17-15f02db67062 pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [1.582632ms] app=pocket-id version=1.11.1 query="DELETE FROM `oidc_refresh_tokens` WHERE expires_at < 1758351421" duration=1.582632ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:98 pocket-id-test | Sep 20 06:57:01 INF Cleaned expired OIDC refresh tokens app=pocket-id version=1.11.1 count=0 pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearOidcRefreshTokens id=f5d6ed06-878f-4b12-abfc-74cef34dba8d pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [1.902259ms] app=pocket-id version=1.11.1 query="DELETE FROM `one_time_access_tokens` WHERE expires_at < 1758351421" duration=1.902259ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:55 pocket-id-test | Sep 20 06:57:01 INF Cleaned expired one-time access tokens app=pocket-id version=1.11.1 count=0 pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearOneTimeAccessTokens id=95db9b6b-4a45-4267-9337-91853472099e pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [2.140967ms] app=pocket-id version=1.11.1 query="DELETE FROM `signup_tokens` WHERE expires_at < 1758351421" duration=2.140967ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:70 pocket-id-test | Sep 20 06:57:01 INF Cleaned expired tokens app=pocket-id version=1.11.1 count=0 pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearSignupTokens id=1c51865d-ab10-4914-876f-495b6f0e6c3b pocket-id-test | Sep 20 06:57:01 DBG SQL query executed [3.061317ms] app=pocket-id version=1.11.1 query="DELETE FROM `oidc_authorization_codes` WHERE expires_at < 1758351421" duration=3.061317ms rows=0 file=github.com/pocket-id/pocket-id/backend/internal/job/db_cleanup_job.go:84 pocket-id-test | Sep 20 06:57:01 INF Cleaned expired OIDC authorization codes app=pocket-id version=1.11.1 count=0 pocket-id-test | Sep 20 06:57:01 INF Job run successfully app=pocket-id version=1.11.1 name=ClearOidcAuthorizationCodes id=4bf7cc05-aa99-4aae-ab35-7afa908abcd5 pocket-id-test | Sep 20 06:57:03 ERR Job failed with error app=pocket-id version=1.11.1 name=SendHeartbeat id=bda95e6b-735e-4674-aae5-0fd48c41eefb error="heartbeat request failed: request failed with status code: 429" pocket-id-test | Sep 20 06:57:11 INF Received interrupt signal. Shutting down… app=pocket-id version=1.11.1 pocket-id-test | Sep 20 06:57:11 INF Job scheduler shut down app=pocket-id version=1.11.1 pocket-id-test exited with code 0 ```
Author
Owner

@mike94100 commented on GitHub:

I only used the v1 tag from the compose example. I have tried setting it to v1.10 as well. I did try those commands, which did not end up working. However, I also tried setting the container to a new created folder which ended up giving me the same problem. I did try pulling the image fresh as well.

Appreciate the help!

For reference, my compose.yaml:

services:
	pocket-id:
		image: ghcr.io/pocket-id/pocket-id:v1
		container_name: pocket-id
		restart: unless-stopped
		env_file: .env
		ports:
			- 1411:1411
		volumes:
			- /data/docker/pocket-id:/app/data
		healthcheck:
			test:
				- CMD
				- /app/pocket-id
				- healthcheck
			interval: 1m30s
			timeout: 5s
			retries: 2
			start_period: 10s
		networks:
			- caddy
		labels:
		# Homepage
			- homepage.group=Services
			- homepage.name=Pocket ID
			- homepage.icon=pocket-id.png
			- homepage.href=https://pocket-id.[MYDOMAIN].duckdns.org
			- homepage.description=OIDC Passkey Provider
		# Caddy
			- caddy=pocket-id.[MYDOMAIN].duckdns.org
			- caddy.import_0=tls
			- caddy.import_1=geofilter
			- caddy.encode=zstd gzip
			- caddy.reverse_proxy=pocket-id:1411
		networks:
			caddy:
				external: true

and .env:

APP_URL=https://pocket-id.[MYDOMAIN].duckdns.org
TRUST_PROXY=true
PUID=1000
PGID=1000
ENCRYPTION_KEY=[KEY]
SESSION_DURATION=86400
UI_CONFIG_DISABLED=true
LDAP_ENABLED=true
LDAP_URL=ldap://lldap:3890
LDAP_...

And several of the LDAP variables that do end up work successfully.

@mike94100 commented on GitHub: I only used the v1 tag from the compose example. I have tried setting it to v1.10 as well. I did try those commands, which did not end up working. However, I also tried setting the container to a new created folder which ended up giving me the same problem. I did try pulling the image fresh as well. Appreciate the help! For reference, my compose.yaml: ``` services: pocket-id: image: ghcr.io/pocket-id/pocket-id:v1 container_name: pocket-id restart: unless-stopped env_file: .env ports: - 1411:1411 volumes: - /data/docker/pocket-id:/app/data healthcheck: test: - CMD - /app/pocket-id - healthcheck interval: 1m30s timeout: 5s retries: 2 start_period: 10s networks: - caddy labels: # Homepage - homepage.group=Services - homepage.name=Pocket ID - homepage.icon=pocket-id.png - homepage.href=https://pocket-id.[MYDOMAIN].duckdns.org - homepage.description=OIDC Passkey Provider # Caddy - caddy=pocket-id.[MYDOMAIN].duckdns.org - caddy.import_0=tls - caddy.import_1=geofilter - caddy.encode=zstd gzip - caddy.reverse_proxy=pocket-id:1411 networks: caddy: external: true ``` and .env: ``` APP_URL=https://pocket-id.[MYDOMAIN].duckdns.org TRUST_PROXY=true PUID=1000 PGID=1000 ENCRYPTION_KEY=[KEY] SESSION_DURATION=86400 UI_CONFIG_DISABLED=true LDAP_ENABLED=true LDAP_URL=ldap://lldap:3890 LDAP_... ``` And several of the LDAP variables that do end up work successfully.
Author
Owner

@stonith404 commented on GitHub:

I don't see any errors in the logs of your comment above. The container appears to be receiving a shutdown signal. This suggests that you either shut down the container manually or something on your system shut it down. Could you try it on another machine? If you didn't shut it down manually, then this might be an issue with your environment.

@stonith404 commented on GitHub: I don't see any errors in the logs of your comment above. The container appears to be receiving a shutdown signal. This suggests that you either shut down the container manually or something on your system shut it down. Could you try it on another machine? If you didn't shut it down manually, then this might be an issue with your environment.
Author
Owner

@stonith404 commented on GitHub:

It looks like the container is using the PR-747 image, which explains the error during the database migration. That image includes a migration that doesn’t exist in the official images, so when the container starts, it can't find the migration you've applied.

To fix this, make sure you’re using an official image such as latest or v1. Once you switch to an official image, run the commands I shared above and restart the container after that, everything should work as expected.

I have no clue why it fails to pull the other images, but it seems that something is broken with your Docker installation. I'm converting this to a discussion because it's not really a bug with Pocket ID itself.

@stonith404 commented on GitHub: It looks like the container is using the PR-747 image, which explains the error during the database migration. That image includes a migration that doesn’t exist in the official images, so when the container starts, it can't find the migration you've applied. To fix this, make sure you’re using an official image such as `latest` or `v1`. Once you switch to an official image, run the commands I shared above and restart the container after that, everything should work as expected. I have no clue why it fails to pull the other images, but it seems that something is broken with your Docker installation. I'm converting this to a discussion because it's not really a bug with Pocket ID itself.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#24