Failed to start borgmatic backup. #480
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#480
Loading…
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
Steps to reproduce (if a bug)
I don't really know if this a bug or just my config error, borgmatic.service won't start.
Actual behavior (if a bug)
Expected behavior (if a bug)
Other notes / implementation ideas
Environment
borgmatic version: [1.5.20]
Use
sudo borgmatic --version
orsudo pip show borgmatic | grep ^Version
borgmatic installation method: [e.g., Debian package, Docker container, etc.]
Borg version: [1.1.17]
Use
sudo borg --version
Python version: [3.9.7]
Use
python3 --version
Database version (if applicable): [version here]
Use
psql --version
ormysql --version
on client and server.operating system and version: [Fedora Server 33]
Thanks for reporting this! Looks like there are two issues here:
Looking past the second issue for the moment, are you able to see an issue on or around line 142 of your configuration? Feel free to upload here if you'd like assistance debugging.
@witten Thank you for your reply. I have set encryption passphrase on line 142 take look this screenshot if there is a syntax error on my config.
![image](/borgmatic-collective/borgmatic/attachments/3a08187b-4a0c-4321-824d-27d70f526f20)
It looks like you may be missing the underscore in
encryption_passphrase
? Same forcheckpoint_interval
. I'm guessing that's the issue!Nope, the screenshot had taken from "nano" editor thats why it is not showing up.
![image](/borgmatic-collective/borgmatic/attachments/f4bf81a2-9fbe-4adf-93f0-989d6bab1dff)
Ah, gotcha. At this point, I think I'll need to see the entire configuration file (not just a screenshot) in order to debug this further. Please feel free to redact passphrases of course and any other sensitive information. And thank you for your patience!
Thanks a lot I will share it to you my config file, this is my first time trying borgmatic so please suggest me any corrections on my setup.
You can check my config file here
Thanks for sharing that! Looking at your config file, there are a few problems I've found:
storage:
is commented out even though there are options configured in thestorage
section. (The fix is to remove the#
beforestorage:
.)hooks:
is commented out even though there are options configured in thehooks
section.- echo "Starting a backup."
but the corresponding hook keys are commented out. For instancebefore_backup:
,before_prune:
, and so on are commented out, even though they shouldn't be when a value is present.Hope that helps!
Thanks a lot I fixed that and did "systemctl daemon-reload" and "systemctl start borgmatic.service" and unfortunately it seems there is still a problem in my config file... Line 5 is (Location) and Line 127 is (Storage) option.
Could I get a peek at your updated configuration file (redacted)? My guess is there's a spacing issue, where some of the options aren't lined up in a section. We're seeing something similar over on #482.
Thank you @witten here is my config file,
https://mega.nz/file/FMJQgRgY#ZKGMt1iA9iPejcE18YA0shoLTvb8S2zyE0zCKsCB6Y8
It indeed looks like a spacing issue. Both the
storage:
and thehooks:
section keys should not have any spaces right before them. I believe if you make those changes, the problem will be fixed!@witten thank you so much and am sorry for taking your time. Now its working for me.
No worries.. I'm glad it's all sorted out now! At the very least, it helps to see what kinds of issues folks are running into.