File count spot check error #981
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I recently updated borgmatic to version 1.9.7, and then all my spot checks started failing. It seems that borgmatic doesn't find the files in the archive. However, if I extract the archive everything looks fine. Furthermore, if I use version 1.9.6 all the spot checks pass. So something seems to have happened between version 1.9.6 and 1.9.7.
Error message:
Steps to reproduce
Config file:
Actual behavior
I can recreate the issue by creating a new repo using
borgmatic repo-create --encryption repokey-blake2and then runningborgmatic --verbosity 2.I think the relevant section of the output is:
followed by a list of every file I'm trying to backup.
Then after that list it continues:
Expected behavior
Since everything else seems to be working correctly and I can extract the archive, I would expect the file count spot check to pass.
Other notes / implementation ideas
No response
borgmatic version
1.9.7
borgmatic installation method
pipx
Borg version
1.4.0
Python version
3.13.1
Database version (if applicable)
No response
Operating system and version
macOS Sonoma 14.6.1
Thanks for the detailed bug report! Please try upgrading to 1.9.8 and give your repro steps another shot. While 1.9.7 fixed several bugs, it also created others (fixed by #979). I believe 1.9.8 may solve the problem for you.
Sorry, same issue with 1.9.8
It was actually when I upgraded from some older version (<=1.9.6) to 1.9.8 that encountered this issue, and then in the debugging process discovered that it was between 1.9.6 and 1.9.7 that it appeared.
Okay, thanks for checking. Looks like I have a repro locally, so I'll dig into what exactly went wrong.
Okay, this was caused by the fix for #968, which internally changed archive listing captures to be null-separated instead of newline-separated. And it looks like the spot check wasn't updated accordingly. Now it is.
The fix is in main and will be part of the next release. Thanks again!
Released in borgmatic 1.9.9!