Skip to content

npbackup-cli incorrect backup attempt and runner.py stacktrace #160

@GuitarBilly

Description

@GuitarBilly

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:

npbackup-cli.log

expected behaviour

  1. npbackup should not start to backup on a locked repo.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions