-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Borg Crashes with I/O Error but only as Cronjob #4076
Comments
Output of mount for the repo disk (check both for a cron-run and for your manual-as-root runs whether it makes a difference)? Filesystem in repo disk? |
The repo disk mounts cleanly at all times. e2fsck runs without errors. |
Do you run borg as root from your cronjob? Check the environment inside the cronjob vs. your environment when being root. PATH? Multiple borg versions installed? |
Yes, it's part of cron.daily, which is run by root in crontab. PATH should not really play a role since I use absolute paths, i.e. /usr/bin/borg. Or am I mistaken here? The package manager would not allow for different borg versions in parallel. Any suggestions would be sincerely appreciated... |
OK, good. Just noticed that the problem is in the cache, not in the repo. So, please post |
Wow... this was unexpected - my SSD (roof FS) might be broken after all: tunefs failed with a bad superblock error: All Smart Selftest checked out fine however....
Thanks a lot, ThomasWaldmann - I will further investigate but it appears to be an FS or even hardware issue... |
Can you show the complete smartctl output? |
Here you go:
|
That looks bad (5, 187 and also the tests at 331 hours) - guess you should send it in for warranty. |
Alright, thanks for your great support here. The issue is obviously closed. |
Have you checked borgbackup docs, FAQ, and open Github issues?
Yes, as far as I could
Is this a BUG / ISSUE report or a QUESTION?
Potential Issue (?)
System information. For client/server mode post info for both machines.
Server Gentoo Linux with all updates installed Linux nibbler 4.14.65-gentoo #1 SMP
Your borg version (borg -V).
borg 1.1.6
I have tried 1.1.7 and latest snapshot as well
Operating system (distribution) and version.
Gentoo Linux with Kernel 4.14.65
Hardware / network configuration, and filesystems used.
Backup on USB HDD
How much data is handled by borg?
About 1.5 TB
Full borg commandline that lead to the problem (leave away excludes and passwords)
/usr/bin/borg prune /mnt/backup/borg --keep-daily 7 --keep-weekly 8 --keep-monthly 12 --keep-yearly 2 --prefix '{hostname}-' --remote-path borg1 --umask 77 --debug --stats --list
Describe the problem you're observing.
Borg crashes with I/O Error but ONLY when run as Cron Job. Running the same script as root in the shell works perfectly fine.
As Cron Job, I get the following Error:
The external HDD is in good state, SMART has not recognized any errors and self-testing works fine.
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
YES: Everytime the Backup is run as Cron, it fails. Everytime, the cron script is executed by root it works.
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: