Actions are started although before_actions command exited with 75 #1059
Labels
No labels
blocked
breaking
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#1059
Loading…
Reference in a new issue
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
I upgraded from 1.9.14 to 2.0.1 and my backups on removable device started to fail.
It turned out, that although the pre-command exited with "75", it continued ton run the repository actions.
I used the
before_actionsand also tried the newcommand: before: repository, both with same issue.Downgrading to 1.9.14 solved the issue.
Steps to reproduce
Actual behavior
Despite before_action/command exit code 75 the action is started, causing the backup to fail since the removable device is not present.
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
2.0.1
borgmatic installation method
pipx
Borg version
1.4.0
Python version
3.12.6
Database version (if applicable)
No response
Operating system and version
Solus 4.7
Thanks for filing this! I've reproduced this behavior with 2.0.1, at least with one test case.
Note that
before_actionsand the new command hooks run the exact same code under the hood, so it makes sense that this bug would manifest with both.This is fixed in main and will part of the next release! Thanks again for the bug report.
Released in borgmatic 2.0.2!