Random ciphertext verification failed

It won’t let me edit my first post. I can only seem to be able to delete it.

Please be more specific. I wish you would be providing the information in a clearer manner as it’s otherwise making it hard to get an overview.

I provided most of the information requested, but I will summarize here. I felt I have been very detailed in my explanations. I will do my best to provide anything I have not.

Env

export RESTIC_HOST="mypc"
export RESTIC_PATH="$HOME"
export RESTIC_REPOSITORY="/mnt/backup"
export RESTIC_PASSWORD_FILE=.restic/passwd

Is the repository stored on the TrueNAS (ZFS) and then mounted from/on another computer where you run the restic client, using SMB?

Repo is stored on TrueNAS and exposed to my pc via an SMB share. I am mounting the SMB in fstab on my pc as to enable multichannel. To be clear, /mnt/backup is an SMB share from TrueNAS mounted on my machine via /etc/fstab.

Please tell us what operating system and kernel it is that’s running on the client, and if you don’t mind also the NAS.

NAS

Linux truenas01 6.6.32-production+truenas #1 SMP PREEMPT_DYNAMIC Mon Jul 8 16:11:58 UTC 2024 x86_64 GNU/Linux

Workstation

Linux mypc 6.10.7-pikaos #101pika4 SMP PREEMPT_DYNAMIC Sat Aug 31 05:34:32 EDT 2024 x86_64 GNU/Linux

fstab entry

 //192.168.1.21/backup /mnt/backup cifs credentials=/etc/cifs-credentials,multichannel,gid=1000,uid=1000 0 0

restic command

restic restore --target / --include /home/marky latest

I have run a full check --read-data on both repos (one stored on NAS, one stored remotely on S3, two completely separate backups, not “cloned”) and they have zero errors.

full check

restic check --read-data

I have a monthly task where I manually do a restic check --read-data-subset=5G on both local and remote repo. I do this without fail, on the first or second day of the month.

The repo is 1.17TB, and about 1.1M files. Not small, so serious errors should be fairly apparent.

When I do a restore, 1-4 files will give ciphertext error, but will be fine if I try to restore that one file individually after the restore completes. A full 100% check --read-data across 1.2TB is flawless on both repos.

I was using Restic 16.4, I downloaded the 17.1 binary and tested with that, and had same results. Out of 1.1M files restored, one file had a cyphertext error.

This one file had a cipher text error, yet it was restored, but with errors.

What the file should be, and what it is from the restore from the same repo and same snapshot just 3 days ago.

Re-running the restore just for that one file, it restored fine and is as expected.

For testing ram, I used MemTest, and to be 100% sure I reran it (from ISO so only hardware involved) on both NAS and workstation and no errors.