Simon_H
(Simon H)
January 27, 2017, 6:39pm
1
Just noticed this error message when I tried to copy local file to Onedrive (windows10 system):
“Failed to copy: unauthenticated: Authentication failed”
Then I refreshed the onedrive authentication and noticed:
"“expiry”:“2017-01-27T14:32:28.”
which is exactly one hour from the refresh.
Does this means I would need to refresh the authentication every hour?
Is there a way to extend the expiry time or refresh with a batch file?
Thanks!
ncw
(Nick Craig-Wood)
January 27, 2017, 8:17pm
2
No you shouldn't, however I think this bug is preventing you uploading files which make more than one hour.
opened 12:01PM - 25 Oct 16 UTC
closed 04:41PM - 29 Mar 17 UTC
bug
Remote: One Drive
rclone v1.33
Linux Fedora 23 64 bit
OneDrive
When filing an issue, please includ… e the following information if
possible as well as a description of the problem. Make sure you test
with the [latest beta of rclone](http://rclone.org/downloads/).
rclone copy local to remote
Log >>>
```
2016/10/23 22:06:24
Transferred: 210 MBytes (59.686 kBytes/s)
Errors: 0
Checks: 1029
Transferred: 0
Elapsed time: 1h0m2.8s
Transferring:
* ...dir/large_file.gz: 36% done. avg: 69.9, cur: 2.3 kByte/s. ETA: 45h28m38s
2016/10/23 22:07:24
Transferred: 210 MBytes (58.708 kBytes/s)
Errors: 0
Checks: 1029
Transferred: 0
Elapsed time: 1h1m2.8s
Transferring:
* ...dir/large_file.gz: 36% done. avg: 68.5, cur: 0.0 kByte/s. ETA: 2486h39m29s
2016/10/23 22:07:35 folder/dir/large_file.gz: Cancelling multipart upload
2016/10/23 22:07:37 remote: Saving new token in config file
2016/10/23 22:07:37 folder/dir/large_file.gz: Failed to copy: unauthenticated: Authentication failed
2016/10/23 22:07:37 folder/dir/large_file.gz: Removing failed copy
2016/10/23 22:07:37 folder/dir/large_file.gz: Failed to remove failed copy: invalidRequest: API not found
2016/10/23 22:07:37 folder/dir/next_file.gz: Size and modification time the same (differ by 0s, within tolerance 1s)
2016/10/23 22:07:37 folder/dir/next_file.gz: Unchanged skipping
```
I have a very slow and unstable internet connection. when I try to upload large files (>500MB ) I usually get an Authentication Error after the file is being upload for a large period of time.
I guess this is because it takes so long the authentication tokens are invalid.
When this error occurs rclone reauthenticates but skip the file and does not resume the upload.
This is not only very frustrating (when it happens at 97%) but make it impossible to upload very large files (> 1,5G) since with my connection speed they will always eventually fail.
I'm not sure if onedrive (and other services) allows to re authenticate and continue the upload (or if it possible to somehow refresh the token before it happens) but it would be a great improvement to have.
Simon_H
(Simon H)
January 28, 2017, 3:24am
3
Thanks for quick reply. Didn’t know this is an existing issue.
I guess the cause of my problem is limited upload speed. I am on a fttn connection only have 2mps upload due to line quality.
I guess I can reduce the number of files being uploaded at the same time. Time to read rclone manual…