TrueCloud Backup - Restic Repository - Locked

Description

TrueCloud Backup Task FAILS due to repository being locked.

I see that TrueCloud Backup Tasks is using ‘restic’ as it’s backup tool. I’m well familiar with restic.

I can successfully use my restic cli to connect to my Storj bucket and unlock the repository. So, fixing the problem is easy for those of us familiar with restic and storj.

However, this tool should not require a user to know that.

Three situations I’ve seen where Restic Repository being left in a locked state:
TrueNAS reboot during backup in progress
Power failure during backup progress
Sometimes, even when I manually ‘stop’ the backup process from the Tasks list

I imagine the tool would be designed for these situations and is failing.

If it is not already, the backup tool should be automatically cleaning up stale locks, not ALL locks, but the stale ones.

Problem/Justification

None

Impact

None

Attachments

1

is duplicated by

resolves

Activity

Show:

Bug Clerk January 14, 2025 at 1:21 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk January 14, 2025 at 1:17 PM
Edited

24.10.2 PR:

Nicodemus J L Schoenwald, EA December 9, 2024 at 11:12 PM

The PR shown, if successful, would fully address my isuse.

Nicodemus J L Schoenwald, EA December 9, 2024 at 11:11 PM

With restic, stale locks are cleared using “restic unlock”. You can also remove ALL locks using “restic unlock --remove-all” but that is more aggressive and rarely needed.

For TrueNAS, there should be a process were if the backup fails, then “restic unlock” should be run, and the backup retried.

Bug Clerk November 25, 2024 at 7:57 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Complete

Details

Assignee

Reporter

Labels

Original estimate

Time remaining

0m

Priority

Katalon Platform

Created November 19, 2024 at 6:09 PM
Updated January 14, 2025 at 1:21 PM
Resolved January 14, 2025 at 1:21 PM