-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
immich_postgres healthcheck not working #10134
Comments
I am also experiencing this issue |
Same issue on micro services and postgres |
microservices it's no longer required release notes |
This is not a bug. You can however, backup the DB, then create a new one with the new env POSTGRES_INITDB_ARGS: '--data-checksums'. You database will be recreated with checksum enabled and the new healthcheck will work. |
How should we backup the DB, create a new one and restore it? Does anyone have a step by step guide? |
This seems to work (backed up and restore) and the health check doesn't fail https://immich.app/docs/administration/backup-and-restore/#:~:text=The%20recommended%20way%20to%20backup,to%20use%20the%20pg_dumpall%20command. |
|
I think this should be fixed. The health check shouldn’t report Postgres as unhealthy unless it has a reason to think it is. Adding a COALESCE would make it more elegant for existing databases (and generally for users who disable checksums). |
It is written in the documentation FAQ https://immich.app/docs/FAQ#how-can-i-verify-the-integrity-of-my-database |
The bug
In the latest dockercompose was added a healthcheck but in immich_postgres
SELECT SUM(checksum_failures) FROM pg_stat_database
returns NULL not 0, so the healthcheck fails every timeFor a temporary solution i just changed to
SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database
The OS that Immich Server is running on
Docker/Non Relatable
Version of Immich Server
v1.106.1
Version of Immich Mobile App
v1.106.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: