OneDrive reading file ERROR: IO error: unauthenticated: Unauthenticated

What is the problem you are having with rclone?

With OneDrive, Unable to read a file from the mounted drive. But I can upload from it.
Log shows ERROR : IO error: unauthenticated: Unauthenticated
Main OneDrive account fails, but it works on another OneDrive account.
Both accounts are very old (15+ years)
Both are free account. I tried to upgrade my main account to a paid account but I have the same error.

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

rclone v1.66.0-beta.7714.8f0e9f9f6

  • os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
  • os/kernel: 10.0.22631.3155 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.22.0
  • go/linking: static
  • go/tags: cmount

Also tried on rclone-v1.65.2

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

OneDrive Personal
BUT
It is probably unrelated, but I noticed that during the remote creation, when asked "Select which drive you want to use?"
I am prompted with 3 choices (where I expected only 1 based on all the tutorial I found)

Select drive you want to use
Choose a number from below, or type in your own string value.
Press Enter for the default (b!R-MBeVgREDACTED1h7vstH7fZ5NqSlsno-R1_R1NYJqraPPQoMmAL1d872o).
 1 / OneDrive (personal)
   \ (b!R-MBeVgUGEWE1REDACTED5NqSlsno-R1_R1NYJqraPPQoMmAL1d872o)
 2 / OneDrive (personal)
   \ (b!R-MBeVgUGEWEREDACTEDstH7fZ5NqSlsno-R1_Rl7ezg_nJzSZ_M4RrKjA-k)
 3 / OneDrive (personal)
   \ (50c37REDACTING32c)

Only choice 3 works, the other resulted in the following error:
Failed to query root for drive "b!R-MBeVREDACTEDfZ5NqSlsno-R1_R1NYJqraPPQoMmAL1d872o": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-02-29T00:13:33\",\"request-id\":\"1c116df1-32e8-4609-ace6-db4e34495c4b\",\"client-request-id\":\"1c116df1-32e8-4609-ace6-db4e34495c4b\"}}}"

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

rclone.exe mount onedrive_fail: k: --log-level DEBUG --log-file "C:\Users\franc\OneDrive\Desktop\rclone.log"

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

[onedrive_fail]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

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

welcome ot the forum,

would be better to test using rclone lsd, instead of rclone mount

rclone lsd onedrive_fail: --dump=headers --retries=1

Thank you! Here is the result:
(I am not sure which info should not be shared, so I changed some clientID stuff)

2024/02/28 20:50:20 DEBUG : rclone: Version "v1.66.0-beta.7714.8f0e9f9f6" starting with parameters ["rclone" "lsd" "onedrive_fail:" "--dump=headers" "--retries=1"]
2024/02/28 20:50:20 DEBUG : Creating backend with remote "onedrive_fail:"
2024/02/28 20:50:20 DEBUG : Using config file from "C:\\Users\\franc\\AppData\\Roaming\\rclone\\rclone.conf"
2024/02/28 20:50:20 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2024/02/28 20:50:20 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/28 20:50:20 DEBUG : HTTP REQUEST (req 0xc0006570e0)
2024/02/28 20:50:20 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/root HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/28 20:50:20 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/28 20:50:20 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/28 20:50:20 DEBUG : HTTP RESPONSE (req 0xc0006570e0)
2024/02/28 20:50:20 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: 93e1aab9-7eb2-4ef1-8c8c-d76a9872858d
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 01:50:23 GMT
Odata-Version: 4.0
Request-Id: 93e1aabHIDINGSTUFF72858d
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"MN1PEPF00010856"}}

2024/02/28 20:50:20 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/28 20:50:20 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/28 20:50:20 DEBUG : HTTP REQUEST (req 0xc0002b5e60)
2024/02/28 20:50:20 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!sea8cc6beffdb43d7976fbc7da445c639/children?$top=1000 HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/28 20:50:20 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/28 20:50:21 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/28 20:50:21 DEBUG : HTTP RESPONSE (req 0xc0002b5e60)
2024/02/28 20:50:21 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: cceb1cHIDINGSTUFFaa34c3777
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 01:50:23 GMT
Odata-Version: 4.0
Request-Id: cceb1c1HIDINGSTUFF22aa34c3777
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"MN1PEPF00010856"}}

2024/02/28 20:50:21 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
          -1 2024-02-25 14:59:00         0 Attachments
          -1 2024-02-24 17:32:23         3 Desktop
          -1 2023-02-09 19:50:21         5 Documents
          -1 2024-02-11 23:30:13         0 Music
          -1 2023-02-17 23:11:18         4 Pictures
2024/02/28 20:50:21 DEBUG : 5 go routines active```

ok, that did not trigger the error.

taking another look at the first debug log, we might need to upload/download a file using rclone copy

Understood. Thanks again for your help.

Copying TO the remote was sucessfull, but not FROM it:

2024/02/28 21:25:02 DEBUG : Creating backend with remote "onedrive_fail:FileName.txt"
2024/02/28 21:25:02 DEBUG : Using config file from "C:\\Users\\franc\\AppData\\Roaming\\rclone\\rclone.conf"
2024/02/28 21:25:03 DEBUG : fs cache: adding new entry for parent of "onedrive_fail:FileName.txt", "onedrive_fail:"
2024/02/28 21:25:03 DEBUG : Creating backend with remote "D:\\"
2024/02/28 21:25:03 DEBUG : fs cache: renaming cache item "D:\\" to be canonical "//?/D:/"
2024/02/28 21:25:03 DEBUG : FileName.txt: Need to transfer - File not found at Destination
2024/02/28 21:25:04 ERROR : FileName.txt: Failed to copy: failed to open source object: unauthenticated: Unauthenticated
2024/02/28 21:25:04 ERROR : Attempt 1/3 failed with 1 errors and: failed to open source object: unauthenticated: Unauthenticated
2024/02/28 21:25:04 DEBUG : FileName.txt: Need to transfer - File not found at Destination
2024/02/28 21:25:04 ERROR : FileName.txt: Failed to copy: failed to open source object: unauthenticated: Unauthenticated
2024/02/28 21:25:04 ERROR : Attempt 2/3 failed with 1 errors and: failed to open source object: unauthenticated: Unauthenticated
2024/02/28 21:25:04 DEBUG : FileName.txt: Need to transfer - File not found at Destination
2024/02/28 21:25:04 ERROR : FileName.txt: Failed to copy: failed to open source object: unauthenticated: Unauthenticated
2024/02/28 21:25:04 ERROR : Attempt 3/3 failed with 1 errors and: failed to open source object: unauthenticated: Unauthenticated
2024/02/28 21:25:04 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         2.5s

2024/02/28 21:25:04 DEBUG : 9 go routines active
2024/02/28 21:25:04 Failed to copy: failed to open source object: unauthenticated: Unauthenticated

ok, that log is not complete, the command, top lines and flags are missing?
please post a full debug log using --dump=headers --retries=1

my apologies, here is the correct log:

2024/02/29 09:32:40 DEBUG : rclone: Version "v1.66.0-beta.7714.8f0e9f9f6" starting with parameters ["rclone" "copy" "onedrive_fail:FileName.txt" "D:\\" "-vv" "--log-file" "C:\\Users\\franc\\OneDrive\\Desktop\\rclone.log" "--dump=headers" "--retries=1"]
2024/02/29 09:32:40 DEBUG : Creating backend with remote "onedrive_fail:FileName.txt"
2024/02/29 09:32:40 DEBUG : Using config file from "C:\\Users\\franc\\AppData\\Roaming\\rclone\\rclone.conf"
2024/02/29 09:32:40 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2024/02/29 09:32:40 DEBUG : OneDrive root 'FileName.txt': Token expired but no uploads in progress - doing nothing
2024/02/29 09:32:40 DEBUG : onedrive_fail: Loaded invalid token from config file - ignoring
2024/02/29 09:32:40 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:40 DEBUG : HTTP REQUEST (req 0xc000817e60)
2024/02/29 09:32:40 DEBUG : POST /common/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Content-Length: 495
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

2024/02/29 09:32:40 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:41 DEBUG : HTTP RESPONSE (req 0xc000817e60)
2024/02/29 09:32:41 DEBUG : HTTP/1.1 200 OK
Content-Length: 1812
Cache-Control: no-store, no-cache
Content-Type: application/json; charset=utf-8
Date: Thu, 29 Feb 2024 14:32:43 GMT
Expires: -1
P3p: CP="DSP CUR OTPi IND OTRi ONL FIN"
Pragma: no-cache
Set-Cookie: fpc=AgaxZsHwhwNIjF1MDio_Rg5FpzxbAQAAAIqMct0OAAAA; expires=Sat, 30-Mar-2024 14:32:43 GMT; path=/; secure; HttpOnly; SameSite=None
Set-Cookie: x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly
Set-Cookie: stsservicecookie=estsfd; path=/; secure; samesite=none; httponly
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Ms-Ests-Server: 2.1.17396.8 - EUS ProdSlices
X-Ms-Request-Id: 0aeb1c84-6c19-4bbf-846e-7209a5cf5301
X-Xss-Protection: 0

2024/02/29 09:32:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:41 DEBUG : Saving config "token" in section "onedrive_fail" of the config file
2024/02/29 09:32:41 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2024/02/29 09:32:41 DEBUG : onedrive_fail: Saved new token in config file
2024/02/29 09:32:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:41 DEBUG : HTTP REQUEST (req 0xc000506a20)
2024/02/29 09:32:41 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/root HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 09:32:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:41 DEBUG : HTTP RESPONSE (req 0xc000506a20)
2024/02/29 09:32:41 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: 75fca8b5-5bd6-47f0-ae2b-eeae6d6630e1
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 14:32:43 GMT
Odata-Version: 4.0
Request-Id: 75fca8b5-5bd6-47f0-ae2b-eeae6d6630e1
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US 2","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"BN1PEPF00003BA6"}}

2024/02/29 09:32:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:41 DEBUG : HTTP REQUEST (req 0xc000507b00)
2024/02/29 09:32:41 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!sea8cc6beffdb43d7976fbc7da445c639:/FileName.txt: HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 09:32:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:41 DEBUG : HTTP RESPONSE (req 0xc000507b00)
2024/02/29 09:32:41 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: c25b2f1e-4d2a-4ea0-9aa2-99603f106e21
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 14:32:43 GMT
Odata-Version: 4.0
Request-Id: c25b2f1e-4d2a-4ea0-9aa2-99603f106e21
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US 2","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"BN1PEPF00003BA6"}}

2024/02/29 09:32:41 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:41 DEBUG : HTTP REQUEST (req 0xc000b8aea0)
2024/02/29 09:32:41 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!sea8cc6beffdb43d7976fbc7da445c639:/FileName.txt HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 09:32:41 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 DEBUG : HTTP RESPONSE (req 0xc000b8aea0)
2024/02/29 09:32:42 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: 5390b4f8-5fe8-42de-aefe-5abcdb338883
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 14:32:43 GMT
Odata-Version: 4.0
Request-Id: 5390b4f8-5fe8-42de-aefe-5abcdb338883
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US 2","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"BN1PEPF00003BA6"}}

2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 DEBUG : fs cache: adding new entry for parent of "onedrive_fail:FileName.txt", "onedrive_fail:"
2024/02/29 09:32:42 DEBUG : Creating backend with remote "D:\\"
2024/02/29 09:32:42 DEBUG : fs cache: renaming cache item "D:\\" to be canonical "//?/D:/"
2024/02/29 09:32:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:42 DEBUG : HTTP REQUEST (req 0xc0009525a0)
2024/02/29 09:32:42 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!sea8cc6beffdb43d7976fbc7da445c639:/FileName.txt HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 09:32:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 DEBUG : HTTP RESPONSE (req 0xc0009525a0)
2024/02/29 09:32:42 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: fb9b542e-afd5-4fa9-83e5-36c5242220e0
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 14:32:44 GMT
Odata-Version: 4.0
Request-Id: fb9b542e-afd5-4fa9-83e5-36c5242220e0
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US 2","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"BN1PEPF00003BA6"}}

2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 DEBUG : FileName.txt: Need to transfer - File not found at Destination
2024/02/29 09:32:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:42 DEBUG : HTTP REQUEST (req 0xc000b8b320)
2024/02/29 09:32:42 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!s01271706a053423d816f6b7ea0b830df/content HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 09:32:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 DEBUG : HTTP RESPONSE (req 0xc000b8b320)
2024/02/29 09:32:42 DEBUG : HTTP/1.1 302 Found
Cache-Control: no-store, no-cache
Client-Request-Id: 83ff508a-c6d1-465b-9574-29b601ded5c0
Date: Thu, 29 Feb 2024 14:32:44 GMT
Location: https://my.microsoftpersonalcontent.com/personal/50c37f2bd1deb32c/_layouts/15/download.aspx?UniqueId=01271706-a053-423d-816f-6b7ea0b830df&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvbXkubWljcm9zb2Z0cGVyc29uYWxjb250ZW50LmNvbUA5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJpc3MiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAiLCJuYmYiOiIxNzA5MjE3MTY1IiwiZXhwIjoiMTcwOTIyMDc2NSIsImVuZHBvaW50dXJsIjoibTB1ZlY3VXBRUHZaeFoxSEJvSHZLUmV2TlpCZ2J4MVJBNS9lZ296NFFYTT0iLCJlbmRwb2ludHVybExlbmd0aCI6IjE1MyIsImlzbG9vcGJhY2siOiJUcnVlIiwiY2lkIjoib1JCM1VIdmdBRURzeTBkQXl5QmZyQT09IiwidmVyIjoiaGFzaGVkcHJvb2Z0b2tlbiIsInNpdGVpZCI6Ik56a3dNV1V6TkRjdE1UUTFPQzAwTlRFNExUZzBaRFV0WW1Gall6ZzJNMkV4WkdRMiIsImFwcF9kaXNwbGF5bmFtZSI6IkdyYXBoIiwiYXBwaWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJ0aWQiOiI5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJ1cG4iOiJmcmFuY29pcy5wZXNxdWlAZ21haWwuY29tIiwicHVpZCI6IjAwMDNCRkZEOTg0NUEyN0MiLCJjYWNoZWtleSI6IjBoLmZ8bWVtYmVyc2hpcHwwMDAzYmZmZDk4NDVhMjdjQGxpdmUuY29tIiwic2NwIjoibXlmaWxlcy5yZWFkIGFsbGZpbGVzLndyaXRlIGFsbHByb2ZpbGVzLnJlYWQiLCJzaWQiOiIxODA5NzU3NzUzNzM2MTY1MzY5X2IxNTY2NWQ5LWVkYTYtNDA5Mi04NTM5LTBlZWMzNzZhZmQ1OSIsInR0IjoiMiIsImlwYWRkciI6IjUyLjEwNC40My4xNzUifQ.LIH4zjjPJy8F_Tv-FEPmmrD07ploAFQ5Y87hCUIqIok&ApiVersion=2.0
Request-Id: 83ff508a-c6d1-465b-9574-29b601ded5c0
Strict-Transport-Security: max-age=31536000
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US 2","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"BN1PEPF00003BA6"}}
Content-Length: 0

2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:42 DEBUG : HTTP REQUEST (req 0xc0009537a0)
2024/02/29 09:32:42 DEBUG : GET /personal/50c37f2bd1deb32c/_layouts/15/download.aspx?UniqueId=01271706-a053-423d-816f-6b7ea0b830df&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvbXkubWljcm9zb2Z0cGVyc29uYWxjb250ZW50LmNvbUA5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJpc3MiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAiLCJuYmYiOiIxNzA5MjE3MTY1IiwiZXhwIjoiMTcwOTIyMDc2NSIsImVuZHBvaW50dXJsIjoibTB1ZlY3VXBRUHZaeFoxSEJvSHZLUmV2TlpCZ2J4MVJBNS9lZ296NFFYTT0iLCJlbmRwb2ludHVybExlbmd0aCI6IjE1MyIsImlzbG9vcGJhY2siOiJUcnVlIiwiY2lkIjoib1JCM1VIdmdBRURzeTBkQXl5QmZyQT09IiwidmVyIjoiaGFzaGVkcHJvb2Z0b2tlbiIsInNpdGVpZCI6Ik56a3dNV1V6TkRjdE1UUTFPQzAwTlRFNExUZzBaRFV0WW1Gall6ZzJNMkV4WkdRMiIsImFwcF9kaXNwbGF5bmFtZSI6IkdyYXBoIiwiYXBwaWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJ0aWQiOiI5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJ1cG4iOiJmcmFuY29pcy5wZXNxdWlAZ21haWwuY29tIiwicHVpZCI6IjAwMDNCRkZEOTg0NUEyN0MiLCJjYWNoZWtleSI6IjBoLmZ8bWVtYmVyc2hpcHwwMDAzYmZmZDk4NDVhMjdjQGxpdmUuY29tIiwic2NwIjoibXlmaWxlcy5yZWFkIGFsbGZpbGVzLndyaXRlIGFsbHByb2ZpbGVzLnJlYWQiLCJzaWQiOiIxODA5NzU3NzUzNzM2MTY1MzY5X2IxNTY2NWQ5LWVkYTYtNDA5Mi04NTM5LTBlZWMzNzZhZmQ1OSIsInR0IjoiMiIsImlwYWRkciI6IjUyLjEwNC40My4xNzUifQ.LIH4zjjPJy8F_Tv-FEPmmrD07ploAFQ5Y87hCUIqIok&ApiVersion=2.0 HTTP/1.1
Host: my.microsoftpersonalcontent.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Referer: https://graph.microsoft.com/v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!s01271706a053423d816f6b7ea0b830df/content
Accept-Encoding: gzip

2024/02/29 09:32:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 DEBUG : HTTP RESPONSE (req 0xc0009537a0)
2024/02/29 09:32:42 DEBUG : HTTP/2.0 401 Unauthorized
Content-Length: 64
Cache-Control: private
Content-Security-Policy: frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.office365.com *.powerapps.com *.yammer.com engage.cloud.microsoft *.officeapps.live.com *.office.com *.microsoft365.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;
Content-Type: application/json
Date: Thu, 29 Feb 2024 14:32:45 GMT
Microsoftsharepointteamservices: 16.0.0.24614
Ms-Cv: oRB3UI/AAEDsy0qSd4ScrQ.0
P3p: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
Request-Id: 507710a1-c08f-4000-eccb-4a9277849cad
Spiislatency: 1
Sprequestduration: 23
Sprequestguid: 507710a1-c08f-4000-eccb-4a9277849cad
Strict-Transport-Security: max-age=31536000
Www-Authenticate: Wlid1.1 realm="WindowsLive", fault="BadContextToken", policy="MBI_SSL", ver="7.5.0.0", target="ssl.live.com", siteId="ssl.live.com"
Www-Authenticate: Bearer realm="9188040d-6c67-4c5b-b112-36a304b66dad",client_id="00000003-0000-0ff1-ce00-000000000000",trusted_issuers="00000001-0000-0000-c000-000000000000@*,D3776938-3DBA-481F-A652-4BEDFCAB7CD8@*,https://sts.windows.net/*/,https://login.microsoftonline.com/*/v2.0,00000003-0000-0ff1-ce00-000000000000@90140122-8516-11e1-8eff-49304924019b",authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",resource_suffix="v2"
X-1dscollectorurl: https://mobile.events.data.microsoft.com/OneCollector/1.0/
X-Ariacollectorurl: https://browser.pipe.aria.microsoft.com/Collector/3.0/
X-Aspnet-Version: 4.0.30319
X-Cache: CONFIG_NOCACHE
X-Content-Type-Options: nosniff
X-Databoundary: NONE
X-Frame-Options: SAMEORIGIN
X-Ms-Invokeapp: 1; RequireReadOnly
X-Ms-Suspended-Features: features=""
X-Msedge-Ref: Ref A: 6D54845410D444CFB891FF6C45CC3D5A Ref B: CH1EDGE2207 Ref C: 2024-02-29T14:32:45Z
X-Networkstatistics: 0,525568,0,0,77577,0,26615
X-Powered-By: ASP.NET
X-Sharepointhealthscore: 3

2024/02/29 09:32:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 09:32:42 ERROR : FileName.txt: Failed to copy: failed to open source object: unauthenticated: Unauthenticated
2024/02/29 09:32:42 ERROR : Attempt 1/1 failed with 1 errors and: failed to open source object: unauthenticated: Unauthenticated
2024/02/29 09:32:42 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         2.5s

2024/02/29 09:32:42 DEBUG : 11 go routines active
2024/02/29 09:32:42 Failed to copy: failed to open source object: unauthenticated: Unauthenticated

--- as per rclone docs, should create your own client id/secret
--- tho it does not seem to matter in this case, best not to use beta for testing.
--- are you able to download FileName.txt via the onedrive website, using onedrive program on your window machine, or using onedrive app on cellphone/tablet/etc...

I would try to re-create this remote from scratch. Maybe it is using token created many rclone versions ago and something changed in the meantime?

-- ok, I will try that as well later today, thanks for the suggestion.
-- I have had the same result with v1.65.2, but I can also send the log from this version if that can help
-- I am able to download FileName.txt via the onedrive website, the OneDrive App on my phone as well as the OneDrive program on the same Windows machine.

Thanks for the suggestion.
I always re build the remote from scratch whenever I change versions for my tests (between v1.65.2 and the v1.66.0-beta.7714 for instance)

not needed for now.

???

not sure that is a rclone issue, unless rclone has a bug that makes up random drives?

do not know what that is, do you? if not, need to figure that out.
maybe your account is corrupted.

Following your suggestion, I created my own client id/secret, which unfortunately ended up with the same error:

2024/02/29 15:59:30 DEBUG : rclone: Version "v1.66.0-beta.7714.8f0e9f9f6" starting with parameters ["rclone" "copy" "onedrive_customID:FileName.txt" "D:\\" "-vv" "--log-file" "C:\\Users\\franc\\OneDrive\\Desktop\\rclone.log" "--dump=headers" "--retries=1"]
2024/02/29 15:59:30 DEBUG : Creating backend with remote "onedrive_customID:FileName.txt"
2024/02/29 15:59:30 DEBUG : Using config file from "C:\\Users\\franc\\AppData\\Roaming\\rclone\\rclone.conf"
2024/02/29 15:59:30 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2024/02/29 15:59:30 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:30 DEBUG : HTTP REQUEST (req 0xc000a10d80)
2024/02/29 15:59:30 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/root HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 15:59:30 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:31 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:31 DEBUG : HTTP RESPONSE (req 0xc000a10d80)
2024/02/29 15:59:31 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: ea6bb28c-cc49-4d13-9744-68f339a87e98
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 20:59:34 GMT
Odata-Version: 4.0
Request-Id: ea6bb28c-cc49-4d13-9744-68f339a87e98
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"007","RoleInstance":"MN1PEPF0000F581"}}

2024/02/29 15:59:31 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:31 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:31 DEBUG : HTTP REQUEST (req 0xc0007310e0)
2024/02/29 15:59:31 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!sea8cc6beffdb43d7976fbc7da445c639:/FileName.txt: HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 15:59:31 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:32 DEBUG : HTTP RESPONSE (req 0xc0007310e0)
2024/02/29 15:59:32 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: 726781ae-c39f-481c-9013-a5a10c51f9e4
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 20:59:34 GMT
Odata-Version: 4.0
Request-Id: 726781ae-c39f-481c-9013-a5a10c51f9e4
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"007","RoleInstance":"MN1PEPF0000F581"}}

2024/02/29 15:59:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:32 DEBUG : HTTP REQUEST (req 0xc00095a7e0)
2024/02/29 15:59:32 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!sea8cc6beffdb43d7976fbc7da445c639:/FileName.txt HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 15:59:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:32 DEBUG : HTTP RESPONSE (req 0xc00095a7e0)
2024/02/29 15:59:32 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: a6db9c8f-ffb6-474d-b0d8-c47615ca4a58
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 20:59:35 GMT
Odata-Version: 4.0
Request-Id: a6db9c8f-ffb6-474d-b0d8-c47615ca4a58
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"007","RoleInstance":"MN1PEPF0000F581"}}

2024/02/29 15:59:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:32 DEBUG : fs cache: adding new entry for parent of "onedrive_customID:FileName.txt", "onedrive_customID:"
2024/02/29 15:59:32 DEBUG : Creating backend with remote "D:\\"
2024/02/29 15:59:32 DEBUG : fs cache: renaming cache item "D:\\" to be canonical "//?/D:/"
2024/02/29 15:59:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:32 DEBUG : HTTP REQUEST (req 0xc00095ad80)
2024/02/29 15:59:32 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!sea8cc6beffdb43d7976fbc7da445c639:/FileName.txt HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 15:59:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:33 DEBUG : HTTP RESPONSE (req 0xc00095ad80)
2024/02/29 15:59:33 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-store, no-cache
Client-Request-Id: 76a42267-35d0-4612-b961-d20561985d96
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 29 Feb 2024 20:59:35 GMT
Odata-Version: 4.0
Request-Id: 76a42267-35d0-4612-b961-d20561985d96
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"007","RoleInstance":"MN1PEPF0000F581"}}

2024/02/29 15:59:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:33 DEBUG : FileName.txt: Need to transfer - File not found at Destination
2024/02/29 15:59:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:33 DEBUG : HTTP REQUEST (req 0xc000a10240)
2024/02/29 15:59:33 DEBUG : GET /v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!s01271706a053423d816f6b7ea0b830df/content HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Accept-Encoding: gzip

2024/02/29 15:59:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:33 DEBUG : HTTP RESPONSE (req 0xc000a10240)
2024/02/29 15:59:33 DEBUG : HTTP/1.1 302 Found
Cache-Control: no-store, no-cache
Client-Request-Id: 937a0b38-29a8-4fbc-9ec0-c4fc194431e3
Date: Thu, 29 Feb 2024 20:59:36 GMT
Location: https://my.microsoftpersonalcontent.com/personal/50c37f2bd1deb32c/_layouts/15/download.aspx?UniqueId=01271706-a053-423d-816f-6b7ea0b830df&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvbXkubWljcm9zb2Z0cGVyc29uYWxjb250ZW50LmNvbUA5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJpc3MiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAiLCJuYmYiOiIxNzA5MjQwMzc2IiwiZXhwIjoiMTcwOTI0Mzk3NiIsImVuZHBvaW50dXJsIjoibTB1ZlY3VXBRUHZaeFoxSEJvSHZLUmV2TlpCZ2J4MVJBNS9lZ296NFFYTT0iLCJlbmRwb2ludHVybExlbmd0aCI6IjE1MyIsImlzbG9vcGJhY2siOiJUcnVlIiwiY2lkIjoiLy8ydVg5KzJva3VHS1g5VlNvRk9YQT09IiwidmVyIjoiaGFzaGVkcHJvb2Z0b2tlbiIsInNpdGVpZCI6Ik56a3dNV1V6TkRjdE1UUTFPQzAwTlRFNExUZzBaRFV0WW1Gall6ZzJNMkV4WkdRMiIsImFwcF9kaXNwbGF5bmFtZSI6IkdyYXBoIiwiYXBwaWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJ0aWQiOiI5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJ1cG4iOiJmcmFuY29pcy5wZXNxdWlAZ21haWwuY29tIiwicHVpZCI6IjAwMDNCRkZEOTg0NUEyN0MiLCJjYWNoZWtleSI6IjBoLmZ8bWVtYmVyc2hpcHwwMDAzYmZmZDk4NDVhMjdjQGxpdmUuY29tIiwic2NwIjoibXlmaWxlcy5yZWFkIGFsbGZpbGVzLndyaXRlIGFsbHByb2ZpbGVzLnJlYWQiLCJzaWQiOiIxODA5NzU3NzUzNzM2MTY1MzY5X2QzMGM0OGRiLTg4ODctNGZkOC05MGNiLWQwNDkxYzcwNjgxNyIsInR0IjoiMiIsImlwYWRkciI6IjUyLjEwNC4xMzAuMTQ5In0.QB9gtdTcPedUX3XUJSmppG9h1uxaR3FFasOyzhuVGVI&ApiVersion=2.0
Request-Id: 937a0b38-29a8-4fbc-9ec0-c4fc194431e3
Strict-Transport-Security: max-age=31536000
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"007","RoleInstance":"MN1PEPF0000F581"}}
Content-Length: 0

2024/02/29 15:59:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:33 DEBUG : HTTP REQUEST (req 0xc00095b200)
2024/02/29 15:59:33 DEBUG : GET /personal/50c37f2bd1deb32c/_layouts/15/download.aspx?UniqueId=01271706-a053-423d-816f-6b7ea0b830df&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvbXkubWljcm9zb2Z0cGVyc29uYWxjb250ZW50LmNvbUA5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJpc3MiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAiLCJuYmYiOiIxNzA5MjQwMzc2IiwiZXhwIjoiMTcwOTI0Mzk3NiIsImVuZHBvaW50dXJsIjoibTB1ZlY3VXBRUHZaeFoxSEJvSHZLUmV2TlpCZ2J4MVJBNS9lZ296NFFYTT0iLCJlbmRwb2ludHVybExlbmd0aCI6IjE1MyIsImlzbG9vcGJhY2siOiJUcnVlIiwiY2lkIjoiLy8ydVg5KzJva3VHS1g5VlNvRk9YQT09IiwidmVyIjoiaGFzaGVkcHJvb2Z0b2tlbiIsInNpdGVpZCI6Ik56a3dNV1V6TkRjdE1UUTFPQzAwTlRFNExUZzBaRFV0WW1Gall6ZzJNMkV4WkdRMiIsImFwcF9kaXNwbGF5bmFtZSI6IkdyYXBoIiwiYXBwaWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJ0aWQiOiI5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJ1cG4iOiJmcmFuY29pcy5wZXNxdWlAZ21haWwuY29tIiwicHVpZCI6IjAwMDNCRkZEOTg0NUEyN0MiLCJjYWNoZWtleSI6IjBoLmZ8bWVtYmVyc2hpcHwwMDAzYmZmZDk4NDVhMjdjQGxpdmUuY29tIiwic2NwIjoibXlmaWxlcy5yZWFkIGFsbGZpbGVzLndyaXRlIGFsbHByb2ZpbGVzLnJlYWQiLCJzaWQiOiIxODA5NzU3NzUzNzM2MTY1MzY5X2QzMGM0OGRiLTg4ODctNGZkOC05MGNiLWQwNDkxYzcwNjgxNyIsInR0IjoiMiIsImlwYWRkciI6IjUyLjEwNC4xMzAuMTQ5In0.QB9gtdTcPedUX3XUJSmppG9h1uxaR3FFasOyzhuVGVI&ApiVersion=2.0 HTTP/1.1
Host: my.microsoftpersonalcontent.com
User-Agent: rclone/v1.66.0-beta.7714.8f0e9f9f6
Authorization: XXXX
Referer: https://graph.microsoft.com/v1.0/drives/50c37f2bd1deb32c/items/50C37F2BD1DEB32C!s01271706a053423d816f6b7ea0b830df/content
Accept-Encoding: gzip

2024/02/29 15:59:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/29 15:59:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:33 DEBUG : HTTP RESPONSE (req 0xc00095b200)
2024/02/29 15:59:33 DEBUG : HTTP/2.0 401 Unauthorized
Content-Length: 64
Cache-Control: private
Content-Security-Policy: frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.office365.com *.powerapps.com *.yammer.com engage.cloud.microsoft *.officeapps.live.com *.office.com *.microsoft365.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;
Content-Type: application/json
Date: Thu, 29 Feb 2024 20:59:36 GMT
Microsoftsharepointteamservices: 16.0.0.24614
Ms-Cv: oRCNc0TAAEDsy03YRaS/MQ.0
P3p: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
Request-Id: 738d10a1-c044-4000-eccb-4dd845a4bf31
Spiislatency: 1
Sprequestduration: 30
Sprequestguid: 738d10a1-c044-4000-eccb-4dd845a4bf31
Strict-Transport-Security: max-age=31536000
Www-Authenticate: Wlid1.1 realm="WindowsLive", fault="BadContextToken", policy="MBI_SSL", ver="7.5.0.0", target="ssl.live.com", siteId="ssl.live.com"
Www-Authenticate: Bearer realm="9188040d-6c67-4c5b-b112-36a304b66dad",client_id="00000003-0000-0ff1-ce00-000000000000",trusted_issuers="00000001-0000-0000-c000-000000000000@*,D3776938-3DBA-481F-A652-4BEDFCAB7CD8@*,https://sts.windows.net/*/,https://login.microsoftonline.com/*/v2.0,00000003-0000-0ff1-ce00-000000000000@90140122-8516-11e1-8eff-49304924019b",authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",resource_suffix="v2"
X-1dscollectorurl: https://mobile.events.data.microsoft.com/OneCollector/1.0/
X-Ariacollectorurl: https://browser.pipe.aria.microsoft.com/Collector/3.0/
X-Aspnet-Version: 4.0.30319
X-Cache: CONFIG_NOCACHE
X-Content-Type-Options: nosniff
X-Databoundary: NONE
X-Frame-Options: SAMEORIGIN
X-Ms-Invokeapp: 1; RequireReadOnly
X-Ms-Suspended-Features: features=""
X-Msedge-Ref: Ref A: 5F7DC45FDF2E42259A818B747B7BACF3 Ref B: BL2AA2010203047 Ref C: 2024-02-29T20:59:36Z
X-Networkstatistics: 0,525568,0,0,18,0,18450
X-Powered-By: ASP.NET
X-Sharepointhealthscore: 0

2024/02/29 15:59:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/29 15:59:33 ERROR : FileName.txt: Failed to copy: failed to open source object: unauthenticated: Unauthenticated
2024/02/29 15:59:33 ERROR : Attempt 1/1 failed with 1 errors and: failed to open source object: unauthenticated: Unauthenticated
2024/02/29 15:59:33 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         2.7s

2024/02/29 15:59:33 DEBUG : 9 go routines active
2024/02/29 15:59:33 Failed to copy: failed to open source object: unauthenticated: Unauthenticated

I have no idea where those 2 other drives could come from. This is my main MS account, and I barely used OneDrive until now.
What could cause a corrupted account? Do you think this could be related to my problem?
Thank you

i have had a free/personal onedrive since it first came out and use it multiple times per day, never had your issue.
and there is only one other mention of that issue in the forum.
also have a bunch of business and again, never got that.

no idea.
but it would be strange for rclone to just add two fake drives, with such strange UUID
i would focus on your account, post in onedrive forum, reddit or whatnot

There seems to be something off about your account. When you open the accounts via web, do you see the contents in onedrive.live.com? or some other path?

Checking the API itself: List Drives - Microsoft Graph v1.0 | Microsoft Learn confirms you should only see a Drive for personal accounts, it might be worth opening a ticket with Graph team for them to check why you see 3.

If you are in some kind of edu/work profile this might be able to help:
Multiple OneDrive drives returned for /users/{userId}/drives - Microsoft Q&A((user

1 Like

Thank you for your suggestions!
When I use your link, my OneDrive opens but my ClientID, one of the 3, the one that works with rclone, is added to he URL:
https://onedrive.live.com/?id=root&cid=50C37XXXXXDEB32C

I tired and replace the client ID in the URL by the other "wrong" 2.
Both works, and I am landing on an empty directory in One drive labeled
Shared with you > My files (see screenshot)

from there I can come back to my "main" OneDrive by cliking on the folder icon in the left bar, and I can see my regular OneDrive file.

what do you think about the format of the two other drives.

  • both drives start with b!R-MBeVgUGEWE
  • looks nothing like 50c37REDACTING32c
b!R-MBeVgUGEWE1REDACTED5NqSlsno-R1_R1NYJqraPPQoMmAL1d872o
b!R-MBeVgUGEWEREDACTEDstH7fZ5NqSlsno-R1_Rl7ezg_nJzSZ_M4RrKjA-k

Have you tried going to Shared with You root folder and see if any folders show up? If so, I would try to leave the folder. Press the 3 dots next to it and press removed from shared page.

I'm thinking somehow you got some shared folders that are showing as root folders. If you don't know why they are there I would think they are safe to be removed.

I'm thinking this are some orphan old shared folders. I agree the root folder do not look similar at all and both of them look kinda similar which could point to a common origin root cause. Since he was able to open them via the browser, I would try to remove any connection with them to try and clear the (what appears) orphan root folders.

I tried to look at what was Shared with me but there is nothing: