Multipart Upload Failures on OneDrive: Unauthenticated Error in Dual Raspberry Pi Time-Lapse Setup

What is the problem you are having with rclone?

Dear rClone community,

I am facing a problem where I am using two Raspberry Pis and rClone with a single OneDrive personal account. I am uploading a picture of max. 2 MB every 10 minutes.
I configured the first Raspberry Pi about three weeks ago and it just was working fine. I then configured the second Raspberry Pi a week ago with the same OneDrive account and at the beginning everything was just working fine as well.
But at some point in time (at the 4th of February about 20.00 o'clock) everything stopped uploading. So both Raspberries stopped uploading at the same time.

My Raspberries are both Model 4 B with 2 GB RAM. To work on/with the Raspi, I am using vs code and the remote explorer extension. At the time where I tried to fix the problem, I was only working with one Raspberry (the first one which I configured) and the other one was not executing/running anything.

About my Project in Short

I am building a time lapse setup with 2 Raspberry PIs which should run over multiple month. The pictures are taken with an interval of 10 minutes and should always be uploaded the cloud. I use 2 cameras to have 2 different angles at the scene.

'rclone version'

rclone v1.60.1-DEV
- os/version: raspbian 12.9 (64 bit)
- os/kernel: 6.6.51+rpt-rpi-v8 (aarch64)
- os/type: linux
- os/arch: arm
- go/version: go1.19.4
- go/linking: dynamic
- go/tags: none

I tried to update the rclone library and it said it is up to date.

Which cloud storage system are you using?

I am using OneDrive personal account.
For the client_id and client_secret i used the default values (so I just clicked "Enter" when I was asked for it).
cloud region for onedrive = global
advanced config = no
auto config = yes (it then opened a tab in the browser where I would log in to my personal account to create a key)

'rclone config redacted'

-> somehow did not work, but I might still have enough information for you. and further down, you also see the rclone config show output

A log from the command that you were trying to run with the -vv flag

Test01@raspi:~/Documents $ rclone copy /home/Test01/Pictures/local/test.jpg onedrive:Pictures/test/ -vv

2025/02/06 23:25:58 DEBUG : rclone: Version "v1.60.1-DEV" starting with parameters ["rclone" "copy" "/home/Test01/Pictures/local/test.jpg" "onedrive:Pictures/test/" "-vv"]
2025/02/06 23:25:58 DEBUG : Creating backend with remote "/home/Test01/Pictures/local/test.jpg"
2025/02/06 23:25:58 DEBUG : Using config file from "/home/Test01/.config/rclone/rclone.conf"
2025/02/06 23:25:58 DEBUG : fs cache: adding new entry for parent of "/home/Test01/Pictures/local/test.jpg", "/home/Test01/Pictures/local"
2025/02/06 23:25:58 DEBUG : Creating backend with remote "onedrive:Pictures/test/"
2025/02/06 23:25:59 DEBUG : fs cache: renaming cache item "onedrive:Pictures/test/" to be canonical "onedrive:Pictures/test"
2025/02/06 23:25:59 DEBUG : test.jpg: Need to transfer - File not found at Destination
2025/02/06 23:25:59 DEBUG : test.jpg: Starting multipart upload
2025/02/06 23:25:59 DEBUG : test.jpg: Uploading segment 0/897806 size 897806
2025/02/06 23:26:00 DEBUG : test.jpg: Cancelling multipart upload: unauthenticated: Unauthenticated
2025/02/06 23:26:00 NOTICE: test.jpg: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2025/02/06 23:26:00 ERROR : test.jpg: Failed to copy: unauthenticated: Unauthenticated
2025/02/06 23:26:00 ERROR : Attempt 1/3 failed with 1 errors and: unauthenticated: Unauthenticated
2025/02/06 23:26:01 DEBUG : test.jpg: Need to transfer - File not found at Destination
2025/02/06 23:26:01 DEBUG : test.jpg: Starting multipart upload
2025/02/06 23:26:01 DEBUG : test.jpg: Uploading segment 0/897806 size 897806
2025/02/06 23:26:01 DEBUG : test.jpg: Cancelling multipart upload: unauthenticated: Unauthenticated
2025/02/06 23:26:02 NOTICE: test.jpg: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2025/02/06 23:26:02 ERROR : test.jpg: Failed to copy: unauthenticated: Unauthenticated
2025/02/06 23:26:02 ERROR : Attempt 2/3 failed with 1 errors and: unauthenticated: Unauthenticated
2025/02/06 23:26:02 DEBUG : test.jpg: Need to transfer - File not found at Destination
2025/02/06 23:26:02 DEBUG : test.jpg: Starting multipart upload
2025/02/06 23:26:03 DEBUG : test.jpg: Uploading segment 0/897806 size 897806
2025/02/06 23:26:03 DEBUG : test.jpg: Cancelling multipart upload: unauthenticated: Unauthenticated
2025/02/06 23:26:03 NOTICE: test.jpg: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2025/02/06 23:26:03 ERROR : test.jpg: Failed to copy: unauthenticated: Unauthenticated
2025/02/06 23:26:03 ERROR : Attempt 3/3 failed with 1 errors and: unauthenticated: Unauthenticated
2025/02/06 23:26:03 INFO  : 
Transferred:        2.569 MiB / 2.569 MiB, 100%, 658.331 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Elapsed time:         5.3s

2025/02/06 23:26:03 DEBUG : 8 go routines active
2025/02/06 23:26:03 Failed to copy: unauthenticated: Unauthenticated

The thing is, it seems that I am still connected to OneDrive, since this here works:

Test01@raspi:~/Documents $ rclone lsd onedrive:Pictures

          -1 2025-02-06 20:53:02      50 Raspi_01
          -1 2025-02-06 20:56:52      203 Raspi_02
          -1 2025-02-06 23:02:45      0 test

When I first checked the config of rclone, the expiry date was just the current date and time.

Test01@raspi:~/Documents $ rclone config show

[onedrive]
type = onedrive
token = {"access_token":"***","expiry":"2025-02-06T21:50:58.474975844+01:00"} 
drive_id = ***
drive_type = personal

I then did

rclone config reconnect onedrive

but that did not help. However, it did change the expiry date to one hour in the future.

Final Notes and Question

To check if the problem is the Raspi or the version of a package, I created a new OneDrive account, deleted the current rclone connection on the Raspi and configured a new one with the new OneDrive account. And this worked just fine.
Since I need a robust and running system, I would like to understand why I have this problem here to finally avoid it for the future.

  1. Can someone help me by telling me where the problem lies?
  2. How can I avoid it for the future?
  3. Optional: How does the expiry date "system" work? I would like to understand that.

I really appreciate any help and hints. I hope I could provide you with enough information here.

welcome to the forum,

that is a very old, custom compiled, non-official version of rclone.

  1. uninstall that
  2. https://rclone.org/install/#script-installation
  3. try again

and to keep the logs small, can use --retries=1

thanks for your quick answer.

I just tried it and it just seems to be working fine again... thanks for your help!

So in the future I will use

sudo -v ; curl https://rclone.org/install.sh | sudo bash

to get the newest version of rclone on my Raspberry.

I now hope it continues to work so you will not hear from me again here (;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.