UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 118: invalid start byte #489
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#489
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
Steps to reproduce (if a bug)
After backing up several thousands of files, for whatever reason, the remote timed out, which can happen, that's fine. Some of the last files had non-latin characters. As a result, when
borgmatic
print error trace tail, it does capture a fewA /...
lines, where some of them also having non-latin characters are output just fine, but then suddenly it crashes on some file name (see below).Actual behavior (if a bug)
Expected behavior (if a bug)
I'm not sure we can really prevent this from happening universally, I would simply suggest to make this piece of code more robust as a first step at least. That is encoding error in outputing just one of the lines should not crash the whole story. Either we catch it and skip to next line or, even better (but more involved), replace the offending symbol(s) with some filler and continue.
Environment
borgmatic version: 1.5.21
Borg version: 1.1.17
Python version: 3.10.1
Thank you for taking the time to report this! I totally agree that borgmatic shouldn't blow up with a traceback on "invalid" input. A few questions for you:
echo $LANG
may help determine that.Can I get a look at your
/etc/borgmatic.d/._backup1.yaml
configuration file? Or is that the same asconfig.yaml
above?And would it possible to see your
borgmatic --verbosity 2
output? That might help pinpoint where the unicode error occurs.Thank you!
I'm closing this now due to inactivity, but please feel free to re-open if you'd like to post follow-up information at any point. Thanks!