You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backup schedule is lost if a backup is changed while another backup is running #8366
If a backup is changed while a scheduled backup is running, the running backup's schedule is lost without any warning. That backup never runs again on its node.
Steps to reproduce
Add a backup destination and a scheduled backup (ID 1 in this example). systemctl list-timers 'backup*' lists backup1.timer
Start the backup: systemctl start --no-block backup1.service
While it runs, save any backup, even without changes (UI, or api-cli run alter-backup). This sends the backup-schedule-changed event, and each node then restarts backup-timers.service
When the backup ends, run systemctl list-timers 'backup*' again
Expected behavior
backup1.timer is still there, and backup 1 runs at the next scheduled time.
Actual behavior
backup1.timer is removed and cannot be created again while backup1.service is running:
systemd[1]: Stopped Backup 1 schedule.
runagent[7276]: Failed to start transient timer unit: Unit backup1.service was already loaded or has a fragment file.
systemd[1]: Finished Backup timers (from Redis state).
agent@node[789]: Handler of cluster/event/backup-schedule-changed exited with status "completed" (0)
The error is ignored, every task reports success, and no timer is left. The backup stops running until another backup change happens while no backup is running. The forum report blames a restart of rclone-gateway.service, but that did not reproduce: on core 3.25.1 it does not re-run backup-timers.service.
Workaround
On each node, run this command. It re-creates the backup timers, but only when no backup is running, so it does not trigger the bug itself:
systemctl is-active -q 'backup[0-9]*.service' && echo "A backup is running, retry later" || systemctl restart backup-timers.service
Then check that systemctl list-timers 'backup*' lists every scheduled backup.
Components
NethServer 8 core 3.25.1 (reproduced on a single-node Rocky Linux 9 cluster)
Activity