Onedrive “Unauthenticated” issue

What is the problem you are having with rclone?

I have the same issue as other users and I just would like to know if it is reported to the dev team.
There is another post with the exact same issue reported which title is "Onedrive “Unauthenticated” when trying to copy/sync, but can use ‘lsd’" and link is here
Since that topic is closed, no additional messages are allowed.

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.0

  • os/version: Microsoft Windows Server 2022 Datacenter 21H2 (64 bit)
  • os/kernel: 10.0.20348.2159 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

OneDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy C:\Temp\temp onedrive:Documents -vv --retries=1 --dump headers

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[onedrive]
type = onedrive
client_id = XXX
client_secret = XXX
drive_type = personal
expose_onenote_files = true
### Double check the config for sensitive info before posting publicly

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

Same log as in the topic I referenced to

welcome to the forum,

in your remote config, there is no token = XXX ?

Thanks.
In my rclone.conf I have the extra long access token + refresh_token.
I believe the XXX are from the command rclone config redacted

yes, that is correct.

but the token is missing from your remote config, it should look like

[remote]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = business

Sorry, I didn't get your point initially.
I removed the remote and re-created it and now this is the current one (with same error):

[onedrive]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = personal

I have this structure:

C:\TEMP\LEVEL1
│   level1.txt
└───level2
        level2file.txt

When trying to copy level1 folder to OneDrive using:

rclone copy C:\Temp\level1 onedrive:Documents

this is the output I am getting:

C:\Users\xxxxx\Documents\RClone>rclone copy C:\Temp\level1 onedrive:Documents -vv
2024/01/03 14:27:13 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "copy" "C:\\Temp\\level1" "onedrive:Documents" "-vv"]
2024/01/03 14:27:13 DEBUG : Creating backend with remote "C:\\Temp\\level1"
2024/01/03 14:27:13 DEBUG : Using config file from "C:\\Users\\xxxxxxx\\AppData\\Roaming\\rclone\\rclone.conf"
2024/01/03 14:27:13 DEBUG : fs cache: renaming cache item "C:\\Temp\\level1" to be canonical "//?/C:/Temp/level1"
2024/01/03 14:27:13 DEBUG : Creating backend with remote "onedrive:Documents"
2024/01/03 14:27:14 DEBUG : level1.txt: Need to transfer - File not found at Destination
2024/01/03 14:27:14 DEBUG : level1.txt: Starting multipart upload
2024/01/03 14:27:14 DEBUG : level2/level2file.txt: Need to transfer - File not found at Destination
2024/01/03 14:27:14 DEBUG : OneDrive root 'Documents': Waiting for checks to finish
2024/01/03 14:27:14 DEBUG : OneDrive root 'Documents': Waiting for transfers to finish
2024/01/03 14:27:14 DEBUG : level2/level2file.txt: Starting multipart upload
2024/01/03 14:27:15 DEBUG : level2/level2file.txt: Uploading segment 0/277 size 277
2024/01/03 14:27:15 DEBUG : level1.txt: Uploading segment 0/277 size 277
2024/01/03 14:27:15 DEBUG : level1.txt: Cancelling multipart upload: unauthenticated: Unauthenticated
2024/01/03 14:27:15 DEBUG : level2/level2file.txt: Cancelling multipart upload: unauthenticated: Unauthenticated
2024/01/03 14:27:15 NOTICE: level1.txt: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/01/03 14:27:15 ERROR : level1.txt: Failed to copy: unauthenticated: Unauthenticated
2024/01/03 14:27:15 NOTICE: level2/level2file.txt: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/01/03 14:27:15 ERROR : level2/level2file.txt: Failed to copy: unauthenticated: Unauthenticated
2024/01/03 14:27:15 ERROR : Attempt 1/3 failed with 2 errors and: unauthenticated: Unauthenticated
2024/01/03 14:27:15 DEBUG : level1.txt: Need to transfer - File not found at Destination
2024/01/03 14:27:15 DEBUG : level1.txt: Starting multipart upload
2024/01/03 14:27:15 DEBUG : level2/level2file.txt: Need to transfer - File not found at Destination
2024/01/03 14:27:15 DEBUG : OneDrive root 'Documents': Waiting for checks to finish
2024/01/03 14:27:15 DEBUG : OneDrive root 'Documents': Waiting for transfers to finish
2024/01/03 14:27:15 DEBUG : level2/level2file.txt: Starting multipart upload
2024/01/03 14:27:16 DEBUG : level1.txt: Uploading segment 0/277 size 277
2024/01/03 14:27:16 DEBUG : level1.txt: Cancelling multipart upload: unauthenticated: Unauthenticated
2024/01/03 14:27:16 NOTICE: level1.txt: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/01/03 14:27:16 ERROR : level1.txt: Failed to copy: unauthenticated: Unauthenticated
2024/01/03 14:27:16 DEBUG : level2/level2file.txt: Uploading segment 0/277 size 277
2024/01/03 14:27:16 DEBUG : level2/level2file.txt: Cancelling multipart upload: unauthenticated: Unauthenticated
2024/01/03 14:27:16 NOTICE: level2/level2file.txt: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/01/03 14:27:16 ERROR : level2/level2file.txt: Failed to copy: unauthenticated: Unauthenticated
2024/01/03 14:27:16 ERROR : Attempt 2/3 failed with 2 errors and: unauthenticated: Unauthenticated
2024/01/03 14:27:16 DEBUG : level1.txt: Need to transfer - File not found at Destination
2024/01/03 14:27:16 DEBUG : level1.txt: Starting multipart upload
2024/01/03 14:27:17 DEBUG : level2/level2file.txt: Need to transfer - File not found at Destination
2024/01/03 14:27:17 DEBUG : OneDrive root 'Documents': Waiting for checks to finish
2024/01/03 14:27:17 DEBUG : OneDrive root 'Documents': Waiting for transfers to finish
2024/01/03 14:27:17 DEBUG : level2/level2file.txt: Starting multipart upload
2024/01/03 14:27:17 DEBUG : level1.txt: Uploading segment 0/277 size 277
2024/01/03 14:27:17 DEBUG : level1.txt: Cancelling multipart upload: unauthenticated: Unauthenticated
2024/01/03 14:27:17 NOTICE: level1.txt: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/01/03 14:27:17 ERROR : level1.txt: Failed to copy: unauthenticated: Unauthenticated
2024/01/03 14:27:17 DEBUG : level2/level2file.txt: Uploading segment 0/277 size 277
2024/01/03 14:27:17 DEBUG : level2/level2file.txt: Cancelling multipart upload: unauthenticated: Unauthenticated
2024/01/03 14:27:17 NOTICE: level2/level2file.txt: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2024/01/03 14:27:17 ERROR : level2/level2file.txt: Failed to copy: unauthenticated: Unauthenticated
2024/01/03 14:27:17 ERROR : Attempt 3/3 failed with 2 errors and: unauthenticated: Unauthenticated
2024/01/03 14:27:17 INFO  :
Transferred:        1.623 KiB / 1.623 KiB, 100%, 461 B/s, ETA 0s
Errors:                 2 (retrying may help)
Elapsed time:         3.9s

2024/01/03 14:27:17 DEBUG : 14 go routines active
2024/01/03 14:27:17 Failed to copy with 2 errors: last error was: unauthenticated: Unauthenticated

Important note: level2 folder is successfully created on OneDrive:Documents but no documents at all.

Yes I think you are right and it has been already identified what the issue is - Onedrive "Unauthenticated" when trying to copy/sync, but can use 'lsd' - #29 by chscott

This indeed looks like a bug but nobody followed on this yet.

1 Like

Generally, someone needs to open a bug on GitHub.

Sometimes ncw just fixes it out of the blue but that doesn't happen all the time. I always suggest to have someone open a bug on GitHub and it's tracked there.

1 Like

@Eole_Net please report it on github then. It indeed looks like confirmed bug.

FYI that I already created an issue for this.

2 Likes

Hi @kapitainsky,
I don't know how to do that and the topic I mentionned is already explaining every detail.
Honestly, if the developper is not reading the forum or has no time to work on it, I don't see why I should use my own time for it. I reverted back to using a browser to sync my files.
Thanks to the guy responding in this topic.

Hi Eole_Net

No need to be rude here , the developer as well as the people helping here they do it out of kindness to provide this magnificent software and support, this ain't Microsoft Windows 7 Support Hotline where support agents spoon fed the customers.

Regards.

Daniel

Sorry if I offended anyone, I didn't mean to be rude and it was probably coming from my disappointment of not expecting the issue to be fixed. I see that the issue is there for some time now and has not been addressed yet, so I didn't feel like filling another one. If it would have been a new issue, I would probably have learned how to create an issue in Github.

No worries. There are 157 bugs open as of today.

Some will be fixed earlier, some later. And some never.

It is Open Source project - if something is critical for you only way to make it happen fast is DIY:) Or wait for somebody else to do it.

I have had a go at fixing this problem - please give this a try. For some reason this does not happen in the integration tests so I was unaware of the problem. Maybe it needs very big files to trigger?

v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload on branch fix-7405-onedrive-upload (uploaded in 15-30 mins)

1 Like

Hi @ncw,

Awesome, it works!
Will caary some other tests and report.

Thanks a lot,

1 Like

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