restic: Fatal: config cannot be loaded: ciphertext verification failed

Output of restic version

0.9.4

How did you run restic exactly?

restic snapshots
Fatal: config cannot be loaded: ciphertext verification failed

restic -vvv check --read-data
using temporary cache in /tmp/restic-check-cache-369159670
Fatal: config cannot be loaded: ciphertext verification failed

restic rebuild-index
Fatal: config cannot be loaded: ciphertext verification failed

What backend/server/service did you use to store the repository?

Minio

Expected behavior

restic lists all snapshots

Actual behavior

restic failed with the above error

Steps to reproduce the behavior

I have a cronjob to backup the files using restic. It used to work. But after some days the job failed with the same error. When I use the command line to check, all restic commands failed with the same error.

Do you have any idea what may have caused this?

No idea

Do you have an idea how to solve the issue?

No idea

Did restic help you or made you happy in any way?

Yes

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 25 (9 by maintainers)

Most upvoted comments

Worth mentioning is that people are seeing this type of error now and then, and it usually turns out to be memory or other hardware problems. It’s worth investigating that. Do some hardware tests, etc.

I just got the same error, after using Minio’s mirroring feature. I think this is an issue of the storage.

Since my repo is relatively big (~1tb), mirroring took too much time and apparently it was not so successful (or there was a change on it for some reason while/after the operation).

I saw md5 hashes of the repository config file (/config) does not match between storages. After copying this file manually everything worked.

Not sure about your setup but please check if the storage is keeping everything as it is.