gilbertchen / duplicacy

A new generation cloud backup tool
https://duplicacy.com
Other
5.12k stars 334 forks source link

ERROR UPLOAD_CHUNK Failed to upload the chunk #531

Open jwatt opened 5 years ago

jwatt commented 5 years ago

I'm trying to backup a Win10 user's HOME directory. After just a few minutes working, I get an error and the backup stops:

duplicacy.exe -log -d backup -stats

The end of the log file contains:

2019-01-18 17:04:52.266 TRACE PACK_START Packing AppData/Local/Comms/UnistoreDB/USSres00001.jrs 2019-01-18 17:04:52.284 ERROR UPLOAD_CHUNK Failed to upload the chunk b4129cc077efd9af4a090df28da7fb47f336df5fdb854a7cbb6d7f592bf05746: failed to send packet header: EOF 2019-01-18 17:04:52.289 DEBUG CHUNK_CACHE Skipped chunk 6a63194746598c2aca821db795a7688cf36023e55c6369d482831ca1a13218e1 in cache 2019-01-18 17:04:52.289 INFO UPLOAD_PROGRESS Skipped chunk 3 size 1048576, 1024KB/s 3 days 03:45:18 0.0% 2019-01-18 17:04:52.293 INFO INCOMPLETE_SAVE Incomplete snapshot saved to C:\Users\User/.duplicacy/incomplete [17:05:58] C:\Users\User Backup operation returned an error: ERROR Failed to upload the chunk b4129cc077efd9af4a090df28da7fb47f336df5fdb854a7cbb6d7f592bf05746: failed to send packet header: EOF

jwatt commented 5 years ago

It's always at the same point that the error occurs (at USSres00001.jrs).

gilbertchen commented 5 years ago

I bet you're dealing with a Synology NAS which is known to close connections unexpectedly: https://forum.duplicacy.com/t/chunk-uploading-error-with-synology/1622

Using the absolute path (sftp://user@server//path/to/storage) may fix the issue.

jwatt commented 5 years ago

Ugh, I'm none to happy to hear that Synology appear to run a modified sshd. That doesn't seem like something anyone other than the domain experts (the ssh devs) should be tweaking.

SFTP on my Synology NAS in fact starts off with the current working directory set to "/", so even a relative path is relative to the root directory. Therefore it seemed unlikely that prepending a forward slash to the path to make that explicit would help...and yet it does. Crazy.

Thanks for the tip. If the user specifies a relative path, could you perhaps make duplicacy detect that it's connecting to a Synology box and transparently convert the path to an absolute path to shield users from this Synology bug?