Repository navigation
[Feature] Notify admins when the scheduled database backup fails #33334
Closed
giveyouup
started this conversation in
Feature Request
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
The problem
When the nightly
DatabaseBackupjob fails, the only trace is an error in the server log:Unable to run job handler (DatabaseBackup): Error: /usr/lib/postgresql/14/bin/pg_dump non-zero exit code (1)
Nothing is shown in the web UI and no notification is sent. Because old dumps are only pruned after a successful run, the backups
folder keeps showing a normal-looking set of files, so the failure is easy to miss even when checking the folder.
In my case, backups failed every night for about 9 months (a corrupted, unused leftover table made
pg_dumpfail) and I only found out by reading the container logs by chance.The request
Surface failures of the database backup job (and ideally other scheduled jobs) to admins, for example:
Environment
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0Platform
All reactions