What is the problem you are having with rclone?
I want to backup my photos and videos from Nextcloud (provider is hetzner) through webdav to my local debian server. Everything works perfectly for smaller files, but for larger files I get a strange error. For demonstration purposes I created a folder Test with one file inside):
20210807-191538.mp4
Filesize: 2,43 GB (2.618.761.246 Bytes)
RClone seems to detect a wrong filesize (7.317 GiByte see log). The correct 2618761246 bytes are getting downloaded, but rclone fails after this.
What is your rclone version (output from rclone version
)
v1.56.0
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Debian 10
Which cloud storage system are you using? (eg Google Drive)
Nextcloud through webdav
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync NextcloudHetzner:Test /mnt/hdd/rclone/Test/current/ --backup-dir /mnt/hdd/rclone/Test/backup/2021-08-22_191352 -P --multi-thread-streams 0 --log-file=mylogfile.txt --log-level DEBUG
The rclone config contents with secrets removed.
[NextcloudHetzner]
type = webdav
url = https://***.your-storageshare.de/remote.php/dav/files/Backup/
vendor = nextcloud
user = ***
pass = ***
A log from the command with the -vv
flag
2021/08/22 19:13:52 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "sync" "NextcloudHetzner:Test" "/mnt/hdd/rclone/Test/current/" "--backup-dir" "/mnt/hdd/rclone/Test/backup/2021-08-22_191352" "-P" "--multi-thread-streams" "0" "--log-file=mylogfile.txt" "--log-level" "DEBUG"]
2021/08/22 19:13:52 DEBUG : Creating backend with remote "NextcloudHetzner:Test"
2021/08/22 19:13:52 DEBUG : Using config file from "/home/raph/.config/rclone/rclone.conf"
2021/08/22 19:13:52 DEBUG : found headers:
2021/08/22 19:13:52 DEBUG : Creating backend with remote "/mnt/hdd/rclone/Test/current/"
2021/08/22 19:13:52 DEBUG : Creating backend with remote "/mnt/hdd/rclone/Test/backup/2021-08-22_191352"
2021/08/22 19:13:53 DEBUG : Local file system at /mnt/hdd/rclone/Test/current/: Waiting for checks to finish
2021/08/22 19:13:53 DEBUG : Local file system at /mnt/hdd/rclone/Test/current/: Waiting for transfers to finish
2021/08/22 19:19:35 DEBUG : 20210807-191538.mp4: Reopening on read failure after 2618761246 bytes: retry 1/10: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:19:35 DEBUG : 20210807-191538.mp4: Reopen failed after 2618761246 bytes read: The start offset (2618761246) exceeded the size of the entity (2618761246): Sabre\DAV\Exception\RequestedRangeNotSatisfiable: 416 Requested Range Not Satisfiable
2021/08/22 19:19:35 NOTICE: 20210807-191538.mp4: Removing partially written file on error: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:19:36 ERROR : 20210807-191538.mp4: Failed to copy: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:19:36 ERROR : Local file system at /mnt/hdd/rclone/Test/current/: not deleting files as there were IO errors
2021/08/22 19:19:36 ERROR : Local file system at /mnt/hdd/rclone/Test/current/: not deleting directories as there were IO errors
2021/08/22 19:19:36 ERROR : Attempt 1/3 failed with 1 errors and: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:19:36 DEBUG : Local file system at /mnt/hdd/rclone/Test/current/: Waiting for checks to finish
2021/08/22 19:19:36 DEBUG : Local file system at /mnt/hdd/rclone/Test/current/: Waiting for transfers to finish
2021/08/22 19:25:18 DEBUG : 20210807-191538.mp4: Reopening on read failure after 2618761246 bytes: retry 1/10: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:25:18 DEBUG : 20210807-191538.mp4: Reopen failed after 2618761246 bytes read: The start offset (2618761246) exceeded the size of the entity (2618761246): Sabre\DAV\Exception\RequestedRangeNotSatisfiable: 416 Requested Range Not Satisfiable
2021/08/22 19:25:18 NOTICE: 20210807-191538.mp4: Removing partially written file on error: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:25:19 ERROR : 20210807-191538.mp4: Failed to copy: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:25:19 ERROR : Local file system at /mnt/hdd/rclone/Test/current/: not deleting files as there were IO errors
2021/08/22 19:25:19 ERROR : Local file system at /mnt/hdd/rclone/Test/current/: not deleting directories as there were IO errors
2021/08/22 19:25:19 ERROR : Attempt 2/3 failed with 1 errors and: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:25:19 DEBUG : Creating backend with remote "/mnt/hdd/rclone/Test/backup/2021-08-22_191352"
2021/08/22 19:25:20 DEBUG : Local file system at /mnt/hdd/rclone/Test/current/: Waiting for checks to finish
2021/08/22 19:25:20 DEBUG : Local file system at /mnt/hdd/rclone/Test/current/: Waiting for transfers to finish
2021/08/22 19:31:01 DEBUG : 20210807-191538.mp4: Reopening on read failure after 2618761246 bytes: retry 1/10: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:31:01 DEBUG : 20210807-191538.mp4: Reopen failed after 2618761246 bytes read: The start offset (2618761246) exceeded the size of the entity (2618761246): Sabre\DAV\Exception\RequestedRangeNotSatisfiable: 416 Requested Range Not Satisfiable
2021/08/22 19:31:01 NOTICE: 20210807-191538.mp4: Removing partially written file on error: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:31:02 ERROR : 20210807-191538.mp4: Failed to copy: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:31:02 ERROR : Local file system at /mnt/hdd/rclone/Test/current/: not deleting files as there were IO errors
2021/08/22 19:31:02 ERROR : Local file system at /mnt/hdd/rclone/Test/current/: not deleting directories as there were IO errors
2021/08/22 19:31:02 ERROR : Attempt 3/3 failed with 1 errors and: net/http: server replied with more than declared Content-Length; truncated
2021/08/22 19:31:02 INFO :
Transferred: 7.317Gi / 7.317 GiByte, 100%, 7.321 MiByte/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 17m10.6s
2021/08/22 19:31:02 DEBUG : 3 go routines active
2021/08/22 19:31:02 Failed to sync: net/http: server replied with more than declared Content-Length; truncated
Thank you for your help!