bad character Local Exception #899
Loading…
x
Reference in New Issue
Block a user
No description provided.
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
The regular backup I make has suddenly started failing
Steps to reproduce
No response
Actual behavior
and in the rest of the output:
Expected behavior
For the config to complete
Other notes / implementation ideas
No response
borgmatic version
1.8.12
borgmatic installation method
pipx
Borg version
1.2.8
Python version
3.9.19
Database version (if applicable)
No response
Operating system and version
Debian GNU/Linux 12 (bookworm)
That error looks like it's coming from Borg itself. I'm guessing that you have the
spot
check enabled in borgmatic's configuration? What I'd recommend is try running borgmatic with--verbosity 2
to get the full Borgborg list --format ...
command that borgmatic is running—or as much of it as it'll show you since it's probably really long. Then you can try running that Borg command directly to see if you can get the error to reproduce without borgmatic. If so, you'd have a good case to file a bug with the Borg project itself.Hope that helps!
Running
create
,prune
,compact
,check
separately resulted in a failedcheck
, but then retrying that succeeded. So this seems transient.If a
check
fails, should that take out the whole of borgmatic?EDIT: whoops, didn't see the reply before posting. Yes, that seems in line. Will try to recreate the error consistently - I'm assuming there's no way to use the same
spot
that was used in the error case?Yeah, the
spot
check is probabilistic (more info here), so it makes sense that you'd see different results with different runs.check
runs last (by default), so it doesn't prevent any of the other actions from completing even if thecheck
fails. But borgmatic can only return a single exit code to the operating system, so if any of those steps fail, the entire borgmatic run fails. You can always run borgmatic actions individually (e.g.,borgmatic check
) if you don't want the failure of one action to impact the others.Correct. But if you run it enough times, it should hopefully reproduce eventually!
check
found issues. Thanks for the tip - closing.Sure thing.. Good luck with your repo!
I hit this issue issue today and I think I found the problem. The file paths being passed to borg from the borgmatic spot check are of the form
sh:/path/to/file
. Thesh:
prefix tells borg to treat the pattern as a shell-style pattern, which includes things like[a..z]
for ranges. In my case, I had a file path that looked structurally likesome_text[zxy-cba]/more_text
and borg (ultimately python's re module) complained thaty-c
was a bad character range. So I think we just want to drop thesh:
prefix and have borg treat the paths as literals, not patterns.Good sleuthing! That makes sense to me. I'll reopen this ticket to cover that change.
This has been fixed in main and will be part of the next release!
Released in borgmatic 1.8.14!