SIGTERM when using consistency.prefix = {hostname}-{now}
#162
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#162
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?
I've recently upgraded borgmatic (via pip to 1.3.2, not sure what the old version was unfortunately) and I saw the warning:
Because
storage.prefix
is set (by me) toarchive_name_format: '{hostname}-{now}'
I therefore setconsistency.prefix
to the same value.The warning is no longer displayed, however this now generates the following error:
Thanks for filing this. Could I have a look at your
config.yaml
file contents (with any sensitive information redacted)? Do you for instance have a "hook" in place that looks like the failing command?It would also be useful to see
-v 2
verbose output.Sorry for the delay in getting back to this - I looked to reproduce this and for some reason I am not able to. The backup now proceeds as expected. Is it possible that this was caused by having existing archives that did not use this new config option, and enabling it caused the issue? Yet three days later, during which the backup has run to completion at least once, the problem is no longer occurring.
Sorry I can't explain this at all - the problem has literally just "gone away".
@witten my
config.yaml
looks like this:So yes, that last
on_error
hook looks like the error message. What I didn't see in the log from three days ago was any other error (I had--verbosity==2
at the time).Sorry, I am puzzled by this, there was definitely an issue three days ago, but it seems to have solved itself by the time I got to look at it again today, and I can't explain why.
Glad to hear it's working now! Your config looks fine to me. If anything, you could probably just remove the hooks entirely, as they're duplicative if you're running with any verbosity level (
--verbosity 1
or--verbosity 2
).The consistency prefix? I don't think so, as that logic is applied by borgmatic/Borg and is not specific to archive contents.
In any case, if you encounter this again, please feel free to re-open or re-file. Thanks.