Cryptcheck on Encrypted OneDrive Personal failed with Unauthenticated Error

What is the problem you are having with rclone?

Able to sync (with beta 1.66; otherwise with 1.5x would got similar error) to encrypted drive (on OneDrive Personal) but cryptcheck failed with "unauthenticated" error.

P.S. sync & check with un-encrypted same OneDrive Personal works without issue.
P.S. sync & check with another encrypted OneDrive Business from same machine with same rclone works without issue.

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

rclone v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload

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

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

OneDrive Personal (with encryption provider)

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

rclone.exe cryptcheck D:\Scripts\Test OneDrive-Family01-Encrypted:Test

The rclone config contents with secrets removed.

[OneDrive-Family01]
type = onedrive
token = (removed) 
drive_id = (removed) 
drive_type = personal

[OneDrive-Family01-Encrypted]
type = crypt
filename_encoding = base32768
password = (removed) 
password2 = (removed) 
remote = OneDrive-Family01:Storage Box/Confidential

A log from the command with the -vv flag

D:\Apps\RClone>rclone.exe cryptcheck D:\Scripts\Test OneDrive-Family01-Encrypted:Test -vv
2024/02/13 12:03:48 DEBUG : rclone: Version "v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload" starting with parameters ["rclone.exe" "cryptcheck" "D:\\Scripts\\Test" "OneDrive-Family01-Encrypted:Test" "-vv"]
2024/02/13 12:03:48 DEBUG : Creating backend with remote "D:\\Scripts\\Test"
2024/02/13 12:03:48 DEBUG : Using config file from "C:\\Users\\Administrator\\AppData\\Roaming\\rclone\\rclone.conf"
2024/02/13 12:03:48 DEBUG : fs cache: renaming cache item "D:\\Scripts\\Test" to be canonical "//?/D:/Scripts/Test"
2024/02/13 12:03:48 DEBUG : Creating backend with remote "OneDrive-Family01-Encrypted:Test"
2024/02/13 12:03:49 DEBUG : Creating backend with remote "OneDrive-Family01:Storage Box/Confidential/ζ΅΅δšγ―Ώη›€η…›ζŽˆδŠ’γ»—κ‚Ÿ"
2024/02/13 12:03:51 INFO  : Using quickxor for hash comparisons
2024/02/13 12:03:51 DEBUG : Encrypted drive 'OneDrive-Family01-Encrypted:Test': Waiting for checks to finish
2024/02/13 12:03:52 ERROR : Test.txt: error computing hash: failed to open object to read nonce: unauthenticated: Unauthenticated
2024/02/13 12:03:52 NOTICE: Encrypted drive 'OneDrive-Family01-Encrypted:Test': 2 differences found
2024/02/13 12:03:52 NOTICE: Encrypted drive 'OneDrive-Family01-Encrypted:Test': 2 errors while checking
2024/02/13 12:03:52 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 2 (retrying may help)
Checks:                 1 / 1, 100%
Elapsed time:         3.9s

2024/02/13 12:03:52 DEBUG : 6 go routines active
2024/02/13 12:03:52 Failed to cryptcheck with 2 errors: last error was: error computing hash: failed to open object to read nonce: unauthenticated: Unauthenticated

This error seems to be saying that rclone can't open the test file.

Can you copy it back to your local machine?

rclone.exe copy D:\Scripts\Test OneDrive-Family01-Encrypted:Test -vv testfolder

If that works can you try this and post the output.

D:\Apps\RClone>rclone.exe cryptcheck D:\Scripts\Test OneDrive-Family01-Encrypted:Test -vv --dump bodies --retries 1 --low-level-retries 1

If that does not work then there is something up with the config of your onedrive.

Hi Nick,

Thx for your reply!

Actually the file exist in both sync (as previous sync successful), anyway i've tried the command as advised (rclone.exe copy D:\Scripts\Test OneDrive-Family01-Encrypted:Test -vv) (i've removed testfolder at the end of command as with it the command failed), and it works without copying (as nothing needs to be copied):

Quote Starts:
D:\Apps\RClone>rclone.exe copy D:\Scripts\Test OneDrive-Family01-Encrypted:Test -vv
2024/02/22 16:04:27 DEBUG : rclone: Version "v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload" starting with parameters ["rclone.exe" "copy" "D:\Scripts\Test" "OneDrive-Family01-Encrypted:Test" "-vv"]
2024/02/22 16:04:27 DEBUG : Creating backend with remote "D:\Scripts\Test"
2024/02/22 16:04:27 DEBUG : Using config file from "C:\Users\Administrator\AppData\Roaming\rclone\rclone.conf"
2024/02/22 16:04:27 DEBUG : fs cache: renaming cache item "D:\Scripts\Test" to be canonical "//?/D:/Scripts/Test"
2024/02/22 16:04:27 DEBUG : Creating backend with remote "OneDrive-Family01-Encrypted:Test"
2024/02/22 16:04:27 DEBUG : Creating backend with remote "OneDrive-Family01:Storage Box/Confidential/ζ΅΅δšγ―Ώη›€η…›ζŽˆδŠ’γ»—κ‚Ÿ"
2024/02/22 16:04:33 DEBUG : Test.txt: Size and modification time the same (differ by -828.6907ms, within tolerance 1s)
2024/02/22 16:04:33 DEBUG : Test.txt: Unchanged skipping
2024/02/22 16:04:33 DEBUG : Encrypted drive 'OneDrive-Family01-Encrypted:Test': Waiting for checks to finish
2024/02/22 16:04:33 DEBUG : Encrypted drive 'OneDrive-Family01-Encrypted:Test': Waiting for transfers to finish
2024/02/22 16:04:33 INFO : There was nothing to transfer
2024/02/22 16:04:33 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 6.2s

2024/02/22 16:04:33 DEBUG : 4 go routines active
Quote Ends

Then I run crypt check, and it fails:
Quote Starts:
D:\Apps\RClone>rclone.exe cryptcheck D:\Scripts\Test OneDrive-Family01-Encrypted:Test -vv --dump bodies --retries 1 --low-level-retries 1
2024/02/22 15:59:22 DEBUG : rclone: Version "v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload" starting with parameters ["rclone.exe" "cryptcheck" "D:\Scripts\Test" "OneDrive-Family01-Encrypted:Test" "-vv" "--dump" "bodies" "--retries" "1" "--low-level-retries" "1"]
2024/02/22 15:59:22 DEBUG : Creating backend with remote "D:\Scripts\Test"
2024/02/22 15:59:22 DEBUG : Using config file from "C:\Users\Administrator\AppData\Roaming\rclone\rclone.conf"
2024/02/22 15:59:22 DEBUG : fs cache: renaming cache item "D:\Scripts\Test" to be canonical "//?/D:/Scripts/Test"
2024/02/22 15:59:22 DEBUG : Creating backend with remote "OneDrive-Family01-Encrypted:Test"
2024/02/22 15:59:22 DEBUG : Creating backend with remote "OneDrive-Family01:Storage Box/Confidential/ζ΅΅δšγ―Ώη›€η…›ζŽˆδŠ’γ»—κ‚Ÿ"
2024/02/22 15:59:22 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/22 15:59:22 DEBUG : OneDrive root 'Storage Box/Confidential/ζ΅΅δšγ―Ώη›€η…›ζŽˆδŠ’γ»—κ‚Ÿ': Token expired but no uploads in progress - doing nothing
2024/02/22 15:59:22 DEBUG : OneDrive-Family01: Loaded invalid token from config file - ignoring
2024/02/22 15:59:22 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:22 DEBUG : HTTP REQUEST (req 0xc000796800)
2024/02/22 15:59:22 DEBUG : POST /common/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Content-Length: 471
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=refresh_token&refresh_token=(removed)
2024/02/22 15:59:22 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:23 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:23 DEBUG : HTTP RESPONSE (req 0xc000796800)
2024/02/22 15:59:23 DEBUG : HTTP/1.1 200 OK
Content-Length: 1768
Cache-Control: no-store, no-cache
Content-Type: application/json; charset=utf-8
Date: Thu, 22 Feb 2024 07:59:30 GMT
Expires: -1
P3p: CP="DSP CUR OTPi IND OTRi ONL FIN"
Pragma: no-cache
Set-Cookie: fpc=ArmuLRYcze1OhUXeAPURWHlFpzxbAQAAAOH1aN0OAAAA; expires=Sat, 23-Mar-2024 07:59:31 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.17338.6 - JPE ProdSlices
X-Ms-Request-Id: 90e5042f-7a8e-408f-b87d-0dce5c80d000
X-Xss-Protection: 0

{"token_type":"Bearer","scope":"Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All","expires_in":3600,"ext_expires_in":3600,"access_token":"(removed)","refresh_token":"(removed)"}
2024/02/22 15:59:23 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:23 DEBUG : Saving config "token" in section "OneDrive-Family01" of the config file
2024/02/22 15:59:23 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2024/02/22 15:59:23 DEBUG : OneDrive-Family01: Saved new token in config file
2024/02/22 15:59:23 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:23 DEBUG : HTTP REQUEST (req 0xc000aac400)
2024/02/22 15:59:23 DEBUG : GET /v1.0/drives/d588e91f593c1233/root HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Authorization: XXXX
Accept-Encoding: gzip

2024/02/22 15:59:23 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:24 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:24 DEBUG : HTTP RESPONSE (req 0xc000aac400)
2024/02/22 15:59:24 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id: b8e7e915-aa68-4113-a281-364aae100b84
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 22 Feb 2024 07:59:31 GMT
Odata-Version: 4.0
Request-Id: b8e7e915-aa68-4113-a281-364aae100b84
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF00009317"}}

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives('d588e91f593c1233')/root/$entity","createdDateTime":"2023-04-13T05:23:24Z","eTag":"\"{D38386AE-26AB-487F-BAA6-23CF7C31B149},12\"","id":"D588E91F593C1233!sea8cc6beffdb43d7976fbc7da445c639","lastModifiedDateTime":"2024-02-16T08:34:12Z","name":"root","webUrl":"https://onedrive.live.com?cid=d588e91f593c1233&id=016UZ4V5N6Y2GOVW7725BZO354PWSELRRZ","size":9824829574,"createdBy":{"user":{"email":"patcdeod@outlook.com","displayName":"Pat C"}},"parentReference":{"driveType":"personal","driveId":"d588e91f593c1233"},"fileSystemInfo":{"createdDateTime":"2023-04-13T05:23:24Z","lastModifiedDateTime":"2024-02-16T08:34:12Z"},"folder":{"childCount":8,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"root":{}}
2024/02/22 15:59:24 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:24 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:24 DEBUG : HTTP REQUEST (req 0xc0000f5300)
2024/02/22 15:59:24 DEBUG : GET /v1.0/drives/d588e91f593c1233/items/D588E91F593C1233!sea8cc6beffdb43d7976fbc7da445c639:/Storage%20Box: HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Authorization: XXXX
Accept-Encoding: gzip

2024/02/22 15:59:24 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:25 DEBUG : HTTP RESPONSE (req 0xc0000f5300)
2024/02/22 15:59:25 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id: bbc36326-a042-4c04-8ce4-3b413ef9c485
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 22 Feb 2024 07:59:32 GMT
Odata-Version: 4.0
Request-Id: bbc36326-a042-4c04-8ce4-3b413ef9c485
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF00009317"}}

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives('d588e91f593c1233')/items/$entity","createdDateTime":"2024-02-10T11:50:11Z","eTag":"\"{7E6CA044-EB9D-43C3-A37E-1ED97201EFD1},1\"","id":"D588E91F593C1233!s7e6ca044eb9d43c3a37e1ed97201efd1","lastModifiedDateTime":"2024-02-10T11:50:11Z","name":"Storage Box","webUrl":"https://onedrive.live.com?cid=d588e91f593c1233&id=016UZ4V5KEUBWH5HPLYNB2G7Q63FZAD36R","cTag":"\"c:{7E6CA044-EB9D-43C3-A37E-1ED97201EFD1},0\"","size":9481661073,"createdBy":{"application":{"id":"00000000-0000-0000-0000-0000481710a4","displayName":"i:0i.t|ms.sp.ext|00000000-0000-0000-0000-0000481710a4@9188040d-6c67-4c5b-b112-36a304b66dad"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"lastModifiedBy":{"application":{"id":"00000000-0000-0000-0000-0000481710a4","displayName":"i:0i.t|ms.sp.ext|00000000-0000-0000-0000-0000481710a4@9188040d-6c67-4c5b-b112-36a304b66dad"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"parentReference":{"driveType":"personal","driveId":"d588e91f593c1233","id":"D588E91F593C1233!sea8cc6beffdb43d7976fbc7da445c639","name":"Documents","path":"/drives/d588e91f593c1233/root:","siteId":"40c4c487-6884-4455-9a3d-2d03ad8802a9"},"fileSystemInfo":{"createdDateTime":"2024-02-10T11:50:11Z","lastModifiedDateTime":"2024-02-10T11:50:11Z"},"folder":{"childCount":3,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}}}
2024/02/22 15:59:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:25 DEBUG : HTTP REQUEST (req 0xc000aac800)
2024/02/22 15:59:25 DEBUG : GET /v1.0/drives/d588e91f593c1233/items/D588E91F593C1233!s7e6ca044eb9d43c3a37e1ed97201efd1:/Confidential: HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Authorization: XXXX
Accept-Encoding: gzip

2024/02/22 15:59:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:26 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:26 DEBUG : HTTP RESPONSE (req 0xc000aac800)
2024/02/22 15:59:26 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id: f73fc6c4-c5ea-4923-82bf-20080a4fa463
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 22 Feb 2024 07:59:33 GMT
Odata-Version: 4.0
Request-Id: f73fc6c4-c5ea-4923-82bf-20080a4fa463
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF00009317"}}

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives('d588e91f593c1233')/items/$entity","createdDateTime":"2024-02-10T11:50:21Z","eTag":"\"{97C15CE7-B929-4707-B396-507ECC58588C},1\"","id":"D588E91F593C1233!s97c15ce7b9294707b396507ecc58588c","lastModifiedDateTime":"2024-02-10T11:50:21Z","name":"Confidential","webUrl":"https://onedrive.live.com?cid=d588e91f593c1233&id=016UZ4V5PHLTAZOKNZA5D3HFSQP3GFQWEM","cTag":"\"c:{97C15CE7-B929-4707-B396-507ECC58588C},0\"","size":7935414408,"createdBy":{"application":{"id":"00000000-0000-0000-0000-0000481710a4","displayName":"i:0i.t|ms.sp.ext|00000000-0000-0000-0000-0000481710a4@9188040d-6c67-4c5b-b112-36a304b66dad"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"lastModifiedBy":{"application":{"id":"00000000-0000-0000-0000-0000481710a4","displayName":"i:0i.t|ms.sp.ext|00000000-0000-0000-0000-0000481710a4@9188040d-6c67-4c5b-b112-36a304b66dad"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"parentReference":{"driveType":"personal","driveId":"d588e91f593c1233","id":"D588E91F593C1233!s7e6ca044eb9d43c3a37e1ed97201efd1","name":"Storage Box","path":"/drives/d588e91f593c1233/root:/Storage Box","siteId":"40c4c487-6884-4455-9a3d-2d03ad8802a9"},"fileSystemInfo":{"createdDateTime":"2024-02-10T11:50:21Z","lastModifiedDateTime":"2024-02-10T11:50:21Z"},"folder":{"childCount":5,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}}}
2024/02/22 15:59:26 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:26 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:26 DEBUG : HTTP REQUEST (req 0xc000aacc00)
2024/02/22 15:59:26 DEBUG : GET /v1.0/drives/d588e91f593c1233/items/D588E91F593C1233!s97c15ce7b9294707b396507ecc58588c:/%E6%B5%B5%E4%9A%81%E3%AF%BF%E7%9B%80%E7%85%9B%E6%8E%88%E4%8A%A2%E3%BB%97%EA%82%9F: HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Authorization: XXXX
Accept-Encoding: gzip

2024/02/22 15:59:26 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:27 DEBUG : HTTP RESPONSE (req 0xc000aacc00)
2024/02/22 15:59:27 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id: f304c92e-33ec-499e-88d6-acdd418138a4
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 22 Feb 2024 07:59:34 GMT
Odata-Version: 4.0
Request-Id: f304c92e-33ec-499e-88d6-acdd418138a4
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF00009317"}}

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives('d588e91f593c1233')/items/$entity","createdDateTime":"2024-02-13T04:00:07Z","eTag":"\"{DED9C408-08AB-4E7C-A05D-244AA9E0C729},1\"","id":"D588E91F593C1233!sded9c40808ab4e7ca05d244aa9e0c729","lastModifiedDateTime":"2024-02-13T04:00:07Z","name":"\u6d75\u4681\u3bff\u76c0\u715b\u6388\u42a2\u3ed7\ua09f","webUrl":"https://onedrive.live.com?cid=d588e91f593c1233&id=016UZ4V5IIYTM55KYIPRHKAXJEJKU6BRZJ","cTag":"\"c:{DED9C408-08AB-4E7C-A05D-244AA9E0C729},0\"","size":50,"createdBy":{"application":{"id":"00000003-0000-0000-c000-000000000000","displayName":"00000003-0000-0000-c000-000000000000"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"lastModifiedBy":{"application":{"id":"00000003-0000-0000-c000-000000000000","displayName":"00000003-0000-0000-c000-000000000000"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"parentReference":{"driveType":"personal","driveId":"d588e91f593c1233","id":"D588E91F593C1233!s97c15ce7b9294707b396507ecc58588c","name":"Confidential","path":"/drives/d588e91f593c1233/root:/Storage Box/Confidential","siteId":"40c4c487-6884-4455-9a3d-2d03ad8802a9"},"fileSystemInfo":{"createdDateTime":"2024-02-13T04:00:07Z","lastModifiedDateTime":"2024-02-13T04:00:07Z"},"folder":{"childCount":1,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}}}
2024/02/22 15:59:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:27 INFO : Using quickxor for hash comparisons
2024/02/22 15:59:27 DEBUG : Encrypted drive 'OneDrive-Family01-Encrypted:Test': Waiting for checks to finish
2024/02/22 15:59:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:27 DEBUG : HTTP REQUEST (req 0xc000791200)
2024/02/22 15:59:27 DEBUG : GET /v1.0/drives/d588e91f593c1233/items/D588E91F593C1233!sded9c40808ab4e7ca05d244aa9e0c729/children?$top=1000 HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Authorization: XXXX
Accept-Encoding: gzip

2024/02/22 15:59:27 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:27 DEBUG : HTTP RESPONSE (req 0xc000791200)
2024/02/22 15:59:27 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id: e967742d-4054-41ee-8634-5288b526cdeb
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 22 Feb 2024 07:59:35 GMT
Odata-Version: 4.0
Request-Id: e967742d-4054-41ee-8634-5288b526cdeb
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF00009317"}}

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives('d588e91f593c1233')/items('D588E91F593C1233!sded9c40808ab4e7ca05d244aa9e0c729')/children","value":[{"@microsoft.graph.downloadUrl":"https://my.microsoftpersonalcontent.com/personal/d588e91f593c1233/_layouts/15/download.aspx?UniqueId=e6676002-9e5b-4527-9249-57fa4114c1ac&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvbXkubWljcm9zb2Z0cGVyc29uYWxjb250ZW50LmNvbUA5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJpc3MiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAiLCJuYmYiOiIxNzA4NTg4Nzc1IiwiZXhwIjoiMTcwODU5MjM3NSIsImVuZHBvaW50dXJsIjoiZUVEdlFMaG54YzFwWGtobHdWZk9iREZyY1BFY3QzNEU1S3ZSZFA3bG5uWT0iLCJlbmRwb2ludHVybExlbmd0aCI6IjE1MyIsImlzbG9vcGJhY2siOiJUcnVlIiwiY2lkIjoiTFhSbjZWUkE3a0dHTkZLSXRTYk42dz09IiwidmVyIjoiaGFzaGVkcHJvb2Z0b2tlbiIsInNpdGVpZCI6Ik5EQmpOR00wT0RjdE5qZzROQzAwTkRVMUxUbGhNMlF0TW1Rd00yRmtPRGd3TW1FNSIsImFwcF9kaXNwbGF5bmFtZSI6IkdyYXBoIiwiYXBwaWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJ0aWQiOiI5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJ1cG4iOiJwYXRjZGVvZEBvdXRsb29rLmNvbSIsInB1aWQiOiIwMDAzN0ZGRTRCMzkwNkVCIiwiY2FjaGVrZXkiOiIwaC5mfG1lbWJlcnNoaXB8MDAwMzdmZmU0YjM5MDZlYkBsaXZlLmNvbSIsInNjcCI6Im15ZmlsZXMucmVhZCBhbGxmaWxlcy53cml0ZSBhbGxwcm9maWxlcy5yZWFkIiwic2lkIjoiMTQyNjgxMzU5NTg5ODU3NjgyMDFfYjE1NjY1ZDktZWRhNi00MDkyLTg1MzktMGVlYzM3NmFmZDU5IiwidHQiOiIyIiwiaXBhZGRyIjoiNTIuMTA1LjUyLjEyOSJ9.uoebyVDpqmPUF7gllCg48kreXrLAeqGx5H0mviUl8L0&ApiVersion=2.0","createdDateTime":"2024-02-13T03:58:57Z","eTag":"\"{E6676002-9E5B-4527-9249-57FA4114C1AC},5\"","id":"D588E91F593C1233!se66760029e5b4527924957fa4114c1ac","lastModifiedDateTime":"2024-02-13T03:58:57Z","name":"\u9244\u63bd\u1bd5\u94bb\u9a8e\u4fac\ua300\ua1a5\u3d3f","webUrl":"https://onedrive.live.com?cid=d588e91f593c1233&id=016UZ4V5ICMBT6MW46E5CZESKX7JARJQNM","cTag":"\"c:{E6676002-9E5B-4527-9249-57FA4114C1AC},2\"","size":50,"createdBy":{"application":{"id":"00000003-0000-0000-c000-000000000000","displayName":"00000003-0000-0000-c000-000000000000"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"lastModifiedBy":{"application":{"id":"00000003-0000-0000-c000-000000000000","displayName":"00000003-0000-0000-c000-000000000000"},"user":{"email":"patcdeod@outlook.com","id":"d588e91f593c1233","displayName":"Pat C"}},"parentReference":{"driveType":"personal","driveId":"d588e91f593c1233","id":"D588E91F593C1233!sded9c40808ab4e7ca05d244aa9e0c729","name":"\u6d75\u4681\u3bff\u76c0\u715b\u6388\u42a2\u3ed7\ua09f","path":"/drives/d588e91f593c1233/root:/Storage Box/Confidential/\u6d75\u4681\u3bff\u76c0\u715b\u6388\u42a2\u3ed7\ua09f","siteId":"40c4c487-6884-4455-9a3d-2d03ad8802a9"},"file":{"mimeType":"application/octet-stream","hashes":{"quickXorHash":"qF8K1NryFclCKlxhrEjej9NCkmA="}},"fileSystemInfo":{"createdDateTime":"2024-02-13T03:58:57Z","lastModifiedDateTime":"2024-02-13T03:58:57Z"}}]}
2024/02/22 15:59:27 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:28 DEBUG : HTTP REQUEST (req 0xc000300500)
2024/02/22 15:59:28 DEBUG : GET /v1.0/drives/d588e91f593c1233/items/D588E91F593C1233!se66760029e5b4527924957fa4114c1ac/content HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Authorization: XXXX
Range: bytes=0-31

2024/02/22 15:59:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:28 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:28 DEBUG : HTTP RESPONSE (req 0xc000300500)
2024/02/22 15:59:28 DEBUG : HTTP/2.0 302 Found
Cache-Control: no-store, no-cache
Client-Request-Id: 9e3247c1-3387-4da4-ad25-b8c42f2eb2e0
Date: Thu, 22 Feb 2024 07:59:35 GMT
Location: https://my.microsoftpersonalcontent.com/personal/d588e91f593c1233/_layouts/15/download.aspx?UniqueId=e6676002-9e5b-4527-9249-57fa4114c1ac&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvbXkubWljcm9zb2Z0cGVyc29uYWxjb250ZW50LmNvbUA5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJpc3MiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAiLCJuYmYiOiIxNzA4NTg4Nzc2IiwiZXhwIjoiMTcwODU5MjM3NiIsImVuZHBvaW50dXJsIjoiZUVEdlFMaG54YzFwWGtobHdWZk9iREZyY1BFY3QzNEU1S3ZSZFA3bG5uWT0iLCJlbmRwb2ludHVybExlbmd0aCI6IjE1MyIsImlzbG9vcGJhY2siOiJUcnVlIiwiY2lkIjoid1VjeW5vY3pwRTJ0SmJqRUx5Nnk0QT09IiwidmVyIjoiaGFzaGVkcHJvb2Z0b2tlbiIsInNpdGVpZCI6Ik5EQmpOR00wT0RjdE5qZzROQzAwTkRVMUxUbGhNMlF0TW1Rd00yRmtPRGd3TW1FNSIsImFwcF9kaXNwbGF5bmFtZSI6IkdyYXBoIiwiYXBwaWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJ0aWQiOiI5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJ1cG4iOiJwYXRjZGVvZEBvdXRsb29rLmNvbSIsInB1aWQiOiIwMDAzN0ZGRTRCMzkwNkVCIiwiY2FjaGVrZXkiOiIwaC5mfG1lbWJlcnNoaXB8MDAwMzdmZmU0YjM5MDZlYkBsaXZlLmNvbSIsInNjcCI6Im15ZmlsZXMucmVhZCBhbGxmaWxlcy53cml0ZSBhbGxwcm9maWxlcy5yZWFkIiwic2lkIjoiMTQyNjgxMzU5NTg5ODU3NjgyMDFfYjE1NjY1ZDktZWRhNi00MDkyLTg1MzktMGVlYzM3NmFmZDU5IiwidHQiOiIyIiwiaXBhZGRyIjoiNTIuMTA1LjUyLjEzMyJ9.V0eJeY5DYdTVw6e1qhoSRqnQLJppidFF9faNt5ZAW5w&ApiVersion=2.0
Request-Id: 9e3247c1-3387-4da4-ad25-b8c42f2eb2e0
Strict-Transport-Security: max-age=31536000
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF00009317"}}
Content-Length: 0

2024/02/22 15:59:28 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:28 DEBUG : HTTP REQUEST (req 0xc000796d00)
2024/02/22 15:59:28 DEBUG : GET /personal/d588e91f593c1233/_layouts/15/download.aspx?UniqueId=e6676002-9e5b-4527-9249-57fa4114c1ac&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvbXkubWljcm9zb2Z0cGVyc29uYWxjb250ZW50LmNvbUA5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJpc3MiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAiLCJuYmYiOiIxNzA4NTg4Nzc2IiwiZXhwIjoiMTcwODU5MjM3NiIsImVuZHBvaW50dXJsIjoiZUVEdlFMaG54YzFwWGtobHdWZk9iREZyY1BFY3QzNEU1S3ZSZFA3bG5uWT0iLCJlbmRwb2ludHVybExlbmd0aCI6IjE1MyIsImlzbG9vcGJhY2siOiJUcnVlIiwiY2lkIjoid1VjeW5vY3pwRTJ0SmJqRUx5Nnk0QT09IiwidmVyIjoiaGFzaGVkcHJvb2Z0b2tlbiIsInNpdGVpZCI6Ik5EQmpOR00wT0RjdE5qZzROQzAwTkRVMUxUbGhNMlF0TW1Rd00yRmtPRGd3TW1FNSIsImFwcF9kaXNwbGF5bmFtZSI6IkdyYXBoIiwiYXBwaWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJ0aWQiOiI5MTg4MDQwZC02YzY3LTRjNWItYjExMi0zNmEzMDRiNjZkYWQiLCJ1cG4iOiJwYXRjZGVvZEBvdXRsb29rLmNvbSIsInB1aWQiOiIwMDAzN0ZGRTRCMzkwNkVCIiwiY2FjaGVrZXkiOiIwaC5mfG1lbWJlcnNoaXB8MDAwMzdmZmU0YjM5MDZlYkBsaXZlLmNvbSIsInNjcCI6Im15ZmlsZXMucmVhZCBhbGxmaWxlcy53cml0ZSBhbGxwcm9maWxlcy5yZWFkIiwic2lkIjoiMTQyNjgxMzU5NTg5ODU3NjgyMDFfYjE1NjY1ZDktZWRhNi00MDkyLTg1MzktMGVlYzM3NmFmZDU5IiwidHQiOiIyIiwiaXBhZGRyIjoiNTIuMTA1LjUyLjEzMyJ9.V0eJeY5DYdTVw6e1qhoSRqnQLJppidFF9faNt5ZAW5w&ApiVersion=2.0 HTTP/1.1
Host: my.microsoftpersonalcontent.com
User-Agent: rclone/v1.66.0-beta.7595.5841b1253.fix-7405-onedrive-upload
Authorization: XXXX
Range: bytes=0-31
Referer: https://graph.microsoft.com/v1.0/drives/d588e91f593c1233/items/D588E91F593C1233!se66760029e5b4527924957fa4114c1ac/content

2024/02/22 15:59:28 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/02/22 15:59:29 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:29 DEBUG : HTTP RESPONSE (req 0xc000796d00)
2024/02/22 15:59:29 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, 22 Feb 2024 07:59:36 GMT
Microsoftsharepointteamservices: 16.0.0.24531
Ms-Cv: oQ4gCWAQAFAFcG/VLMyXaQ.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: 09200ea1-1060-5000-0570-6fd52ccc9769
Spiislatency: 1
Sprequestduration: 23
Sprequestguid: 09200ea1-1060-5000-0570-6fd52ccc9769
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: 99F749286D61460483D8D375D2BCC659 Ref B: SG2EDGE2511 Ref C: 2024-02-22T07:59:36Z
X-Networkstatistics: 0,525568,0,0,955447,0,525568
X-Powered-By: ASP.NET
X-Sharepointhealthscore: 3

{"error":{"code":"unauthenticated","message":"Unauthenticated"}}
2024/02/22 15:59:29 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/02/22 15:59:29 ERROR : Test.txt: error computing hash: failed to open object to read nonce: unauthenticated: Unauthenticated
2024/02/22 15:59:29 NOTICE: Encrypted drive 'OneDrive-Family01-Encrypted:Test': 2 differences found
2024/02/22 15:59:29 NOTICE: Encrypted drive 'OneDrive-Family01-Encrypted:Test': 2 errors while checking
2024/02/22 15:59:29 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 2 (retrying may help)
Checks: 1 / 1, 100%
Elapsed time: 7.1s

2024/02/22 15:59:29 DEBUG : 8 go routines active
2024/02/22 15:59:29 Failed to cryptcheck with 2 errors: last error was: error computing hash: failed to open object to read nonce: unauthenticated: Unauthenticated

Pls advice.
P.S. My OneDrive config seems to be good as sync / check directly on it (without crypt drive) works.

Hmm, this might be related to this issue but for GET requests.

The problem might be that we are supplying two forms of auth, the tempauth in the URL and the Authorization: XXXX header

The docs state

To download the contents of the file your application will need to follow the Location header in the response. Many HTTP client libraries will automatically follow the 302 redirection and start downloading the file immediately.

Pre-authenticated download URLs are only valid for a short period of time (a few minutes) and do not require an Authorization header to download.

So perhaps it is getting confused in the same way it did in the issue I referenced above.

That doesn't say you mustn't provide an Authorization header but maybe it should.

Not sure though. Any thoughts if there are any specific gotchas with Korean onedrive?

Nick,

Not sure if any specific stuff related to Korean OneDrive

What can I do to findout? Any logs you would need?

Give this a try

v1.66.0-beta.7749.4e7fddd10.fix-onedrive-auth on branch fix-onedrive-auth (uploaded in 15-30 mins)

It is an attempt to fix the error in the same way it was fixed for uploads.

Thanks!

1 Like

I just found this thread. I've been having this issue with downloads. Writes/ls/lsd/lsf/deletes have been working fine. v1.66.0-beta.7749.4e7fddd10.fix-onedrive-auth looks to be working (Win x64 build if that matters to you). Thank you!

I do see a message about "Couldn't decode error response: EOF" but my test file has downloaded successfully. I also notice this file is coming from a different base server (my.microsoftpersonalcontent.com) vs my other account (tstatq.dm.files.1drv.com). These should be all but identical accounts - both created about the same time in the same region, connected to the same family plan.

Snippet of log removing the actual URLs but if you need the full one, please let me know.

2024/03/12 22:25:20 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/12 22:25:20 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/12 22:25:20 DEBUG : HTTP RESPONSE (req 0xc000c00120)
2024/03/12 22:25:20 DEBUG : HTTP/2.0 302 Found
Cache-Control: no-store, no-cache
Client-Request-Id: <redacted>
Date: Tue, 12 Mar 2024 12:25:20 GMT
Location: https://my.microsoftpersonalcontent.com/personal/<redacted>/_layouts/15/download.aspx?UniqueId=<redacted>&Translate=false&tempauth=<redacted>&ApiVersion=2.0
Request-Id: <redacted>
Strict-Transport-Security: max-age=31536000
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Australia East","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SY1PEPF000021EF"}}
Content-Length: 0

2024/03/12 22:25:20 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/12 22:25:20 DEBUG : Couldn't decode error response: EOF
2024/03/12 22:25:20 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/12 22:25:20 DEBUG : HTTP REQUEST (req 0xc000932fc0)
2024/03/12 22:25:20 DEBUG : GET /personal/<redacted>/_layouts/15/download.aspx?UniqueId=<redacted>&Translate=false&tempauth=<redacted>&ApiVersion=2.0 HTTP/1.1
Host: my.microsoftpersonalcontent.com
User-Agent: rclone/v1.66.0-beta.7749.4e7fddd10.fix-onedrive-auth
Referer: https://graph.microsoft.com/v1.0/drives/<redacted>/content
Accept-Encoding: gzip

Thank you! this is also fixing:

I've noticed the download performance is much worse with these sites. My other two accounts can easily saturate a 100Mbit connection but files downloaded from this "my.microsoftpersonalcontent.com" server average something like 20% of that:

Just about off the graph to left was the good account that didn't need this fix. The rest was downloading from this other server. Both downloading nearly 1GByte files.
image

This is not likely to be an rclone issue but very noticeable to me.

@ncw Thank You! This seems to fix the issue. Is there a possibility that this will be shipped in a future version?

I was facing the same issue of getting unauthenticated errors when trying to download a file from Onedrive personal account. The problem seems to be the Authorization header being sent when downloading the file. If we skip the header, the file downloads fine.

Thank you for testing. I didn't see the replies to my message for some reason.

I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.67

1 Like

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