Postgres Backup stalls since 2.1.7 #1352
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#1352
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'm using borgmatic on my arch linux machine and just saw the postgres backup was stalled since 5th september.
I just downgraded to 2.1.6 and now it's working again.
I had another issue where it didn't work since 2.1.6 when i had check active which is why i have skip actions check currently in my config.
Steps to reproduce
Actual behavior
No response
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
2.1.7
borgmatic installation method
Arch Linux Package
Borg version
1.4.5
Python version
3.14.7
Database version (if applicable)
Postgres Server 17.11, Client 18.6
Operating system and version
No response
I don't see anything obvious in the 2.1.7 changelog that might be related to this (either the Postgres issue or the
checkissue), but it's always possible that some bug crept in.Can I get a look at your logs when running with
--verbosity 2 --filesfrom when you encounter each of these issues with 2.1.7? I'm particularly interested in seeing the last thing logged before the hang, but the entire log would be helpful. Also, can I see yourpostgresql_databases:configuration?Thank you!
Just remembered the issue with the hang for check only happend in systemd and seems like the postgres backup was successful with 2.1.7 when i used the cli.
I'm going to try the part with the verbosity options afterwards when the backup is finished
As for the config of postgresql_databases:
Okay seems like it's working when i try it now - was the package just broken locally?
I'm going to try some more with removing the skip from check, etc
I might want to let it try it's nightly backup too just to be sure.
Thanks. Your config looks pretty standard. If the hang only happens when running borgmatic under systemd and not manually via command-line, then the problem is likely that the systemd service is too locked down. To check that, I'd recommend commenting out all security-related options in your systemd service and then reloading your systemd daemon to pick up those changes. That includes everything from
LockPersonalityon throughCapabilityBoundingSet.If commenting those out "fixes" the problem, then you can try re-introducing security options a few at a time until you find the problem child.