-
Notifications
You must be signed in to change notification settings - Fork 9
Description
npbackup 3.0.1-linux-cli-x64-public-3.12-c 2025032101
ubuntu 22.10
steps to reproduce
I have set up npbackup-cli to replace a daily backup that was done at 02:00 hrs.
But I forgot this was done in the 'standard' npbackup-gui cron job at /etc/cron.d/npbackup which runs every 15 minutes.
That will conflict with another restic repo check job that was still run at 04:00 via root crontab -l and 385msec faster 8-) :
00 4 * * 0-5 /path/to/cronscripts/hc.syncthing.restic_check.sh
So npbackup reported a fail in the Grafana dashboard at 04:00 and looking in the log I first see some expected repo locked conflicts. This is bacause the other restic check job runs on the same repo.
Npbackup-cli then concludes "cannot find backup" and somehow still wants to start a backup at the locked repo and then bombs out what looks to be during the metrics collection phase into a runner.py stack trace:
expected behaviour
- npbackup should not start to backup on a locked repo.
- npbackup should not crash in the scenario of a locked repo.
p.s. I will change the npbackup cron job to run once daily as I had it in my prior setup.