What is the problem you are having with rclone?
I'm unable to use the remote. I have two OneDrive remotes set up (using an incognito window to prevent interference). In the configuration, the drive ID for one of them (onedrive-tomi
) was in lowercase, causing rclone about onedrive-tomi:
to fail.
After comparing it to another remote (onedrive-jane
), where the drive ID was in all uppercase, I changed onedrive-tomi
to match. Now, rclone about
works and returns output. However, rclone lsd
still does not work, returning a 404 error.
tomi@caladan:~$ rclone about onedrive-tomi:
Total: 1.005 TiB
Used: 1019.700 GiB
Free: 9.300 GiB
Trashed: 71.549 MiB
By dumping headers in verbose I can see that the onedrive API returns lower-case drive id which rclone tries to use going forward failing the command. I am not sure whether this is the issue, but it is suspicious. However, trying it myself in postman I get a 200 for exactly the same request which rclone runs using the lower-case id (copying the request from --dump-headers)
- the below is
rclone about onedrive-tomi:
with the lower-case id failing with a 400
2025/03/24 23:25:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:25:17 DEBUG : HTTP REQUEST (req 0xc000342c80)
2025/03/24 23:25:17 DEBUG : GET /v1.0/drives/xxx/root HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.69.1
Authorization: XXXX
Accept-Encoding: gzip
2025/03/24 23:25:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:25:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/03/24 23:25:17 DEBUG : HTTP RESPONSE (req 0xc000342c80)
2025/03/24 23:25:17 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id: 993b0071-a2fb-4174-b6c6-857c16a7a1e4
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Mon, 24 Mar 2025 22:25:16 GMT
Odata-Version: 4.0
Request-Id: 993b0071-a2fb-4174-b6c6-857c16a7a1e4
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Switzerland North","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"ZRH2EPF000000E6"}}
2025/03/24 23:25:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/03/24 23:25:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:25:17 DEBUG : HTTP REQUEST (req 0xc000bef180)
2025/03/24 23:25:17 DEBUG : GET /v1.0/drives/xxx HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.69.1
Authorization: XXXX
Accept-Encoding: gzip
2025/03/24 23:25:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:25:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/03/24 23:25:17 DEBUG : HTTP RESPONSE (req 0xc000bef180)
2025/03/24 23:25:17 DEBUG : HTTP/2.0 400 Bad Request
Cache-Control: no-store, no-cache
Client-Request-Id: f4a65c7d-3f06-47c6-bf70-2f0a47640eb4
Content-Type: application/json
Date: Mon, 24 Mar 2025 22:25:16 GMT
Request-Id: f4a65c7d-3f06-47c6-bf70-2f0a47640eb4
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Switzerland North","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"ZRH2EPF000000E6"}}
- the below is
rclone about onedrive-tomi:
with the upper-case id returning a 200
2025/03/24 23:27:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:27:42 DEBUG : HTTP REQUEST (req 0xc00044a780)
2025/03/24 23:27:42 DEBUG : GET /v1.0/drives/XXX/root HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.69.1
Authorization: XXXX
Accept-Encoding: gzip
2025/03/24 23:27:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:27:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/03/24 23:27:42 DEBUG : HTTP RESPONSE (req 0xc00044a780)
2025/03/24 23:27:42 DEBUG : HTTP/2.0 200 OK
Cache-Control: private
Client-Request-Id: 166977d7-9833-4068-831f-a7bdd7c22bc8
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Mon, 24 Mar 2025 22:27:41 GMT
Odata-Version: 4.0
Request-Id: 166977d7-9833-4068-831f-a7bdd7c22bc8
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Switzerland North","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"ZRH2EPF000000EA"}}
2025/03/24 23:27:42 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/03/24 23:27:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:27:42 DEBUG : HTTP REQUEST (req 0xc000c11680)
2025/03/24 23:27:42 DEBUG : GET /v1.0/drives/XXX HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.69.1
Authorization: XXXX
Accept-Encoding: gzip
2025/03/24 23:27:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/03/24 23:27:43 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/03/24 23:27:43 DEBUG : HTTP RESPONSE (req 0xc000c11680)
2025/03/24 23:27:43 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store
Client-Request-Id: 8038c316-b8f2-417b-b57f-490643c523d3
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Mon, 24 Mar 2025 22:27:41 GMT
Odata-Version: 4.0
Request-Id: 8038c316-b8f2-417b-b57f-490643c523d3
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Switzerland North","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"ZRH2EPF000000EA"}}
2025/03/24 23:27:43 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Total: 1.005 TiB
Used: 1019.700 GiB
Free: 9.300 GiB
Trashed: 71.549 MiB
2025/03/24 23:27:43 DEBUG : 5 go routines active
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.1
- os/version: debian 12.10 (64 bit)
- os/kernel: 5.15.167.4-microsoft-standard-WSL2 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Microsoft OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone lsd onedrive-tomi:
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
tomi@caladan:~$ rclone config redacted
[onedrive-jane]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
[onedrive-tomi]
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
tomi@caladan:~$ rclone lsd onedrive-tomi: -vv
2025/03/24 23:06:14 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "lsd" "onedrive-tomi:" "-vv"]
2025/03/24 23:06:14 DEBUG : Creating backend with remote "onedrive-tomi:"
2025/03/24 23:06:14 DEBUG : Using config file from "/home/tomi/.config/rclone/rclone.conf"
2025/03/24 23:06:15 ERROR : : error listing: couldn't list files: itemNotFound: The resource could not be found.
2025/03/24 23:06:15 DEBUG : 5 go routines active
2025/03/24 23:06:15 NOTICE: Failed to lsd with 2 errors: last error was: couldn't list files: itemNotFound: The resource could not be found.