-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Milestone
Description
If the backup destination encryption key does not match the Restic repository an error occurs. The error is difficult to understand for the end user.
For example:
restic --option=rclone.program=/usr/local/bin/rclone-wrapper snapshots --json
Fatal: wrong password or no key found
Traceback (most recent call last):
File "/var/lib/nethserver/cluster/actions/read-backup-snapshots/50read", line 39, in <module>
pret = agent.run_restic(rdb, repository, path, ["--workdir=/srv"], ["snapshots", "--json"], text=True, encoding='utf-8', stdout=subprocess.PIPE, check=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/__init__.py", line 255, in run_restic
return subprocess.run(podman_cmd, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['podman', 'run', '-i', '--rm', '--name=restic-cluster-2564625', '--privileged', '--network=host', '--volume=restic-cache:/var/cache/restic', '--log-driver=none', '-e', 'RESTIC_PASSWORD', '-e', 'RESTIC_CACHE_DIR', '-e', 'RESTIC_REPOSITORY', '-e', 'RCLONE_SMB_HOST', '-e', 'RCLONE_SMB_USER', '-e', 'RCLONE_SMB_PASS', '-e', 'RCLONE_SMB_DOMAIN', '--workdir=/srv', 'ghcr.io/nethserver/restic:2.9.5', '--option=rclone.program=/usr/local/bin/rclone-wrapper', 'snapshots', '--json']' returned non-zero exit status 1.
Discussion https://mattermost.nethesis.it/nethesis/pl/3ij9dpnbdjy79dxujy1erdbrbw
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress