rustic icon indicating copy to clipboard operation
rustic copied to clipboard

Error message for par2 files in snapshot dir

Open hirschenberger opened this issue 9 months ago • 0 comments

I use par2 to create redundancy files of my backups with the official settings:

[repository.options]
post-create-command = "par2create -qq -n1 -r5 %file"
post-delete-command = "sh -c \"rm -f %file*.par2\""

But when I do a rustic repoinfo or rustic snapshots I get error messages for all par2 files:

...
[ERROR] Error while listing files: Error: Failed to decode hex string `6d100f9b4d7ace5c9d4dd8ff381ae31dd8aae8c50196d135da61f008c149ea78.par2` into Id. The value must be a valid hexadecimal string. (kind: related to invalid user input): caused by: Odd number of digits
[ERROR] Error while listing files: Error: Failed to decode hex string `6d90637edf3fceac260e769b88ff465c171fb4fe3cf8003361157324785690bb.vol000+100.par2` into Id. The value must be a valid hexadecimal string. (kind: related to invalid user input): caused by: Invalid string length
[ERROR] Error while listing files: Error: Failed to decode hex string `6d19a4898795755b7a54ac1be4ac79ce6237a6b55c39899af10ed37ae24364f3.vol000+100.par2` into Id. The value must be a valid hexadecimal string. (kind: related to invalid user input): caused by: Invalid string length
...

I think rustic is still working as expected but this can frighten users.

hirschenberger avatar Jan 15 '25 08:01 hirschenberger