1

The recent version of rclone (1.60.1) in Ubuntu 24.10 has a problem uploading files to Microsoft OneDrive. Although the connection credentials are correct, we get error messages like:

2024/12/03 18:51:41 NOTICE: <filename>: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/12/03 18:51:41 ERROR : <filename>: Failed to copy: unauthenticated: Unauthenticated
2024/12/03 18:51:41 ERROR : Attempt 1/3 failed with 1 errors and: unauthenticated: Unauthenticated
2024/12/03 18:51:51 NOTICE: <filename>: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/12/03 18:51:51 ERROR : <filename>: Failed to copy: unauthenticated: Unauthenticated
2024/12/03 18:51:51 ERROR : Attempt 2/3 failed with 1 errors and: unauthenticated: Unauthenticated
2024/12/03 18:52:01 NOTICE: <filename>: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/12/03 18:52:01 ERROR : <filename>: Failed to copy: unauthenticated: Unauthenticated
2024/12/03 18:52:01 ERROR : Attempt 3/3 failed with 1 errors and: unauthenticated: Unauthenticated
2024/12/03 18:52:01 INFO  : 
Transferred:           30 MiB / 30 MiB, 100%, 1006.176 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Elapsed time:        32.2s

2024/12/03 18:52:01 Failed to copy: unauthenticated: Unauthenticated

Retrying does not help.

FedKad
  • 13,900

1 Answers1

2

The temporary solution is to install the latest version from https://rclone.org/downloads/

Remove Ubuntu version and install /usr/bin/rclone manually:

$ sudo apt purge rclone
$ sudo -v ; curl https://rclone.org/install.sh | sudo bash
$ rclone --version
rclone v1.68.2
- os/version: ubuntu 24.10 (64 bit)
- os/kernel: 6.11.0-9-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.3
- go/linking: static
- go/tags: none

For snap-lovers the other solution (which I do not recommend) is to install the snap version:

$ sudo snap install rclone
FedKad
  • 13,900
  • In April 2025, still using 22.04, I bumped into a similar problem. My solution was the same as yours: use an upstream binary. – Michael Wolf Apr 21 '25 at 19:33
  • 1
    I have a system running Debian Bookworm 12.6 and just ran into the same problem. I configured OneDrive in rclone a couple of times, thought there was a problem with the setup, but in the end just an old version of rclone was the problem (I had version 1.60 on that machine). Your solution fixed it for me, thanks for sharing! – Sky Sep 06 '25 at 21:02