Hi,
First of all, thanks for this wonderful tool
I am currently trying to upload some file from a mounted rclone directory (encrypted). It mostly works fine, but I’m sometimes (when file > 1gb) getting some errors (IO error after the “mv” command)
I mounted the directory using the following command :
rclone mount acdcrypt: ~/drive --allow-other --max-read-ahead 200M --no-modtime --acd-upload-wait-per-gb 30m --timeout 0 --bwlimit 10M
When starting rclone in verbose mode, I can see the following lines when it fails:
2017/01/09 17:35:57 Shows/en/XXX.mkv: WriteFileHandle.Flush
2017/01/09 17:36:58 Shows/en/XXX.mkv: Error detected after finished upload - waiting to see if object was uploaded correctly: HTTP code 408: "408 REQUEST_TIMEOUT": no response body ("408 REQUEST_TIMEOUT")
2017/01/09 17:36:58 Shows/en/XXX.mkv: Object not found - waiting (1/1)
2017/01/09 17:37:03 Shows/en/XXX.mkv: Giving up waiting for object - returning original error: HTTP code 408: "408 REQUEST_TIMEOUT": no response body ("408 REQUEST_TIMEOUT")
2017/01/09 17:37:03 pacer: Rate limited, sleeping for 183.117216ms (1 consecutive low level retries)
2017/01/09 17:37:03 pacer: low level retry 1/1 (error HTTP code 408: "408 REQUEST_TIMEOUT": no response body)
2017/01/09 17:37:03 Shows/en/XXX.mkv: WriteFileHandle.Flush error: HTTP code 408: "408 REQUEST_TIMEOUT": no response body
2017/01/09 17:37:03 Shows/en/XXX.mkv: WriteFileHandle.Release nothing to do
Upload started ~2mins before
The file is available a couple of minutes after the error has been raised in the drive. File size is about 1.2GB
According to the configuration for the “acd-upload-wait-per-gb” flag (30m, to try), it is supposed to check at least for 36 minutes (30min/gb * 1.2gb)
It looks like it cannot compute the “retries” number correctly here https://github.com/ncw/rclone/blob/master/amazonclouddrive/amazonclouddrive.go#L532, because debug line “https://github.com/ncw/rclone/blob/master/amazonclouddrive/amazonclouddrive.go#L539” shows 1/1.
When manually computing the value of the algorithm from github, I come with the following values :
uploadWaitPerByte = 1288326596 / 1024 / 1024 / 1024 = 0.001676381
timeToWait = 0.001676381 * 1288326596 = 2159726.227329076
sleepTime = 5000
retries = (2159726.227329076 + 5000 -1) / 5000 = 433
Any ideas ?
Thanks
EDIT :
I outputed the values of “retries” and “src.Size()” https://github.com/ncw/rclone/blob/master/amazonclouddrive/amazonclouddrive.go#L529 there, and src.Size() returns 32 bytes, instead of 1.2GB
Can it be become of the encrypt rclone instead of normal ?