-
Notifications
You must be signed in to change notification settings - Fork 873
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
Duplicati freezes during backup or fails with unknown error due to Remote (SSH) Disk Full #4675
Comments
The provided stack trace and duplicati/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs Lines 262 to 268 in 27ff8cd
suggest this could be related to SSH.NET's SftpClient.UploadFile hangs indefinitely when server has run out of space #343.
so does not implement duplicati/Duplicati/Library/Interface/IQuotaEnabledBackend.cs Lines 8 to 19 in beaf035
which is seemingly the best call because SSH.NET doesn't appear to either, and this isn't really in the core specifications. Until this can be looked into further, one advantage of not being a quota enabled backend is you can set limit yourself:
|
This issue has been mentioned on Duplicati. There might be relevant details there: https://forum.duplicati.com/t/quota-size-check-to-not-be-exceeded/17268/34 |
Issue
When Remote SSH runs out of disk-space, Duplicati fails by
These two separate behaviors should probably be interpreted at two separate bugs (or more precisely: I'm pretty sure they require two separate code-changes).
Environment info
Steps to reproduce
Note I experience two different behaviors for the same underlying issue. Either it'll give me a GUI error as shown in the screenshot further down, or it will just hang in processing as ssh upload fails. Note that the GUI error happened on all my jobs that had previously succeeded (ie. first and following times backend ran full), and the hang-issue came after I recreated the local database (I didn't know it was an out-of-space error at that time).
Backend event: Put - Started:
. Alsolsof
indicates mono process still has open handles to the file being backed up. And the remote linux log saysNo space left on device
Screenshots
Remote linux OS log (the log from the remote system we are uploading the backup to):
Feb 2 01:00:10 UnRaidBackup sftp-server[27869]: error: process_write: write: No space left on device
Debug log
Information level log from backup. Note that its the last few lines that are from this backup. The first lines probably indicate cleanup due to previous backups put-problems. It'll hang all night from my experience (forever?).
Local logs when GUI shows error (but link to logs is empty)
Possibly related issues
Note that none of these issues indicate remote disk full as the underlying cause of the issue.
#2968
#2351
Thoughts...
Idea: If possible it would be valuable to add remote free-space to information level log on backup start+stop. That would make debugging disk space issues easier.
The text was updated successfully, but these errors were encountered: