Backups Fail with Failed to create/acquire the lock

This can happen if a backup operation was interrupted. To recover from this, you’ll need to enter the backup repository and break the lock.

SSH into the node that holds this backup, and enter a backup container with:

VOLID=VOLUME-ID; docker run --rm -it --label "com.computestacks.role=backup" -e "BORG_BASE_DIR=/mnt/borg" -e "BORG_REPO=/mnt/borg/backup" -v b-$VOLID:/mnt/borg -v $VOLID:/mnt/data ghcr.io/computestacks/cs-docker-borg:1.4 /bin/bash

Replace VOLUME-ID with the ID of the volume. This can be found by viewing the volume in the administrator of ComputeStacks. It will be a UUID.

Once you have successfully entered the backup container and mounted the backup repository, run the following command:

borg break-lock

Then type exit to unmount the backup.