backups: reduce chances for lock race #193

Merged
teutat3s merged 1 commit from backups-splay into main 2024-05-16 06:10:11 +00:00
Owner

Start one backup per hour each night. Without this change, we sometimes have these errors:

nachtigall restic[1648687]: snapshot 2e3b885c saved
nachtigall restic[1651368]: repo already locked, waiting up to 0s for the lock
nachtigall restic[1651368]: unable to create lock in backend: repository is already locked by PID 1596562 on nachtigall by root (UID 0, GID 0)
nachtigall restic[1651368]: lock was created at 2024-05-15 04:07:40 (2m31.955500115s ago)
nachtigall restic[1651368]: storage ID 0af3bcce
nachtigall restic[1651368]: the `unlock` command can be used to remove stale locks
Start one backup per hour each night. Without this change, we sometimes have these errors: ``` nachtigall restic[1648687]: snapshot 2e3b885c saved nachtigall restic[1651368]: repo already locked, waiting up to 0s for the lock nachtigall restic[1651368]: unable to create lock in backend: repository is already locked by PID 1596562 on nachtigall by root (UID 0, GID 0) nachtigall restic[1651368]: lock was created at 2024-05-15 04:07:40 (2m31.955500115s ago) nachtigall restic[1651368]: storage ID 0af3bcce nachtigall restic[1651368]: the `unlock` command can be used to remove stale locks ```
teutat3s added 1 commit 2024-05-15 19:01:33 +00:00
backups: reduce chances for lock race
All checks were successful
Flake checks / Check (pull_request) Successful in 2m16s
67b9b84e01
Start one backup per hour each night
teutat3s requested review from b12f 2024-05-16 05:20:53 +00:00
teutat3s requested review from hensoko 2024-05-16 05:20:53 +00:00
teutat3s requested review from axeman 2024-05-16 05:20:53 +00:00
hensoko approved these changes 2024-05-16 06:05:02 +00:00
teutat3s merged commit d7a6da30f5 into main 2024-05-16 06:10:11 +00:00
teutat3s deleted branch backups-splay 2024-05-16 06:10:11 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pub-solar/infra#193
No description provided.