Version: restic 0.18.0 compiled with go1.24.1 on darwin/arm64
I’ve been backing up my data to two separate NAS drives using Restic for a while and I’ve also restored files successfully in the past. I can’t remember ever having gotten errors when backing up. I recently decided to do a full check on the backup using restic check --read-data
. This give A LOT of errors, for example:
9b042f3709c54931b4e7d6aa4b336d0f02f3b1fae0cf8b5b60d460b5f238c261: decrypting blob <data/9b042f37> from 50944e79 failed: nonce is invalid unexpected pack id d355cf92fc643473d19e2039f98e6d62ab48e866d1276148c885e82183685adf]
pack 30890ba1e74547083764aaa6ea6bb56df6834d2247ff7aaebf66241bea6d2bbe contains 9 errors: [blob 61470e96b4c088ff05ddd3f3b017fdaf5a533f6efc28dc3925871c775df7a5f1: decrypting blob <data/61470e96> from 30890ba1 failed: ciphertext verification failed blob cf2506ada9c13353b88e261f5e8d09444329a537d770fc86604eaea4821ec2cb: decrypting blob <data/cf2506ad> from 30890ba1 failed: nonce is invalid blob aaa047550a2e32d54c09b3bb7c89dd430d57fcfdd168dbc9ff7450beeb5d93d8: decrypting blob <data/aaa04755> from 30890ba1 failed: nonce is invalid blob 0961c54ae1e3053a274e2adbd22fb8abda68fc491e1022cdba77999132daf5bc: decrypting blob <data/0961c54a> from 30890ba1 failed: nonce is invalid blob 82e9807f018577b6ffcd989c4c7572c0e6956af09f5ce8e64e255c207d252524: decrypting blob <data/82e9807f> from 30890ba1 failed: nonce is invalid blob 6debcc6de8f45f4bc6228f6b5a9aa98d1b08d921e79d7d0650fa5d763c1c7394: decrypting blob <data/6debcc6d> from 30890ba1 failed: nonce is invalid blob 68602bd13e0886821c39ebe667ad8df88254a4f565d5b084d01ab6f27e679341: decrypting blob <data/68602bd1> from 30890ba1 failed: nonce is invalid blob d4437cfc585da05071412cf59d3f2ff37360f3eb464510425ae0a445000c5f6e: decrypting blob <data/d4437cfc> from 30890ba1 failed: nonce is invalid unexpected pack id 073a60dae5ce045dcfa53d9ae8fc55bf8dad32f6030133a216de5b0b9d55c44b]
Load(<data/30a5f1d1fe>, 18874018, 0) failed: file is too short
Load(<data/30a5f1d1fe>, 18874018, 0) failed: file is too short
I also get this error when trying to run restic stats
repository 2dd60b28 opened (version 2, compression level auto)
[0:02] 100.00% 280 / 280 index files loaded
scanning...
could not load snapshots: context canceled
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x104d5cc6c]
goroutine 1 [running]:
github.com/restic/restic/internal/walker.walk({0x105a602b0, 0x140001ee910}, {0x105a4daa8, 0x140000f7e10}, {0x140084dc378, 0x16}, {0x3c, 0x87, 0x75, 0xb4, ...}, ...)
github.com/restic/restic/internal/walker/walker.go:55 +0x4c
github.com/restic/restic/internal/walker.walk({0x105a602b0, 0x140001ee910}, {0x105a4daa8, 0x140000f7e10}, {0x140002f3020, 0xd}, {0xed, 0xc6, 0x79, 0x59, ...}, ...)
github.com/restic/restic/internal/walker/walker.go:96 +0x26c
github.com/restic/restic/internal/walker.walk({0x105a602b0, 0x140001ee910}, {0x105a4daa8, 0x140000f7e10}, {0x140002f2f80, 0x8}, {0x58, 0x43, 0x5c, 0x12, ...}, ...)
github.com/restic/restic/internal/walker/walker.go:96 +0x26c
github.com/restic/restic/internal/walker.walk({0x105a602b0, 0x140001ee910}, {0x105a4daa8, 0x140000f7e10}, {0x105669de0, 0x1}, {0x54, 0x80, 0x53, 0x62, ...}, ...)
github.com/restic/restic/internal/walker/walker.go:96 +0x26c
github.com/restic/restic/internal/walker.Walk({0x105a602b0, 0x140001ee910}, {0x105a4daa8, 0x140000f7e10}, {0x54, 0x80, 0x53, 0x62, 0x96, 0xfb, ...}, ...)
github.com/restic/restic/internal/walker/walker.go:48 +0x110
main.statsWalkSnapshot({0x105a602b0, 0x140001ee910}, 0x140001d20c0, {0x105a5c8c0, 0x140000f7e10}, {{0x1054722e8, 0xc}, {{}, {0x0, 0x0, ...}, ...}}, ...)
github.com/restic/restic/cmd/restic/cmd_stats.go:215 +0x268
main.runStats({_, _}, {{_, _}, {{}, {_, _, _}, {_, _, ...}, ...}}, ...)
github.com/restic/restic/cmd/restic/cmd_stats.go:133 +0x3b4
main.newStatsCommand.func1(0x140000e1e00?, {0x140002eebe0?, 0x4?, 0x105465fe6?})
github.com/restic/restic/cmd/restic/cmd_stats.go:65 +0xb0
github.com/spf13/cobra.(*Command).execute(0x1400013ec08, {0x140002eebc0, 0x2, 0x2})
github.com/spf13/cobra@v1.9.1/command.go:1015 +0x828
github.com/spf13/cobra.(*Command).ExecuteC(0x1400040a008)
github.com/spf13/cobra@v1.9.1/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.9.1/command.go:1071
github.com/spf13/cobra.(*Command).ExecuteContext(...)
github.com/spf13/cobra@v1.9.1/command.go:1064
main.main()
github.com/restic/restic/cmd/restic/main.go:172 +0x20c
I tried restoring a couple of files at random and they were fine. My hard drives are old but the NAS says they are healthy. I’d like some help figuring out what caused the errors, the drives, the NAS or restic. I don’t use the NAS for anything but backups so I’m considering getting a HDD dock or replacing the drives with a NVMe drive.
The hard drives are 3 TB each and have 13% free disk space.
UPDATE: I ran restic repair snapshots --forget
which replaced a number of files with empty directories. Now running restic check --read-data
again, which will take a while. Already getting errors like
pack 30025e3f6623f6976b0e3b8aae6700b9132ccdc554aea67dd046721cb03baffb contains 5 errors: [blob 0231c69608564534ef12ec429c6c497729a1b4c0a07f7553e44360e88e92394a: decrypting blob <data/0231c696> from 30025e3f failed: ciphertext verification failed blob 6dcf090be545bd1d3b12b24b7771e439ba10e7e0b5e5606f6c6a163e90abfb9b: decrypting blob <data/6dcf090b> from 30025e3f failed: nonce is invalid blob 9e260998992a9927c92ff1a923fb8b7f57c23252c2f0d16c457c371ef4f027e9: decrypting blob <data/9e260998> from 30025e3f failed: nonce is invalid blob 72efecc30a08d3d97901710dc2a01bf6690c13bf21dbda564bbca80eb62edcf9: decrypting blob <data/72efecc3> from 30025e3f failed: nonce is invalid unexpected pack id 3dffc7d8558af1e370b58aa18f6b634ea88b7ec216ae631b7ed6c797171ef7df]