Onedrive cloud content not actual

Hi,

A OneDrive remote was created.

One can prove it by „rclone config“: Name = OneDrive, Type = onedrive.

The problem is, directories and files in onedrive are not correct. With „rclone lsd remote:“or „rclone ls remote:“:

Failed to create file system for ‚remote‘: didn’t find section in config file.

What’s wrong with this?

you created a remote named OneDrive, so need to use that
rclone lsd OneDrive:

Failed to create file system for "OneDrive:": failed to get root: Get "/v1.0/drives/76bb77f6faf6298f/root": couldn't fetch token: Post "/common/oauth2/v2.0/token": unsupported protocol scheme ""

please post the full output of

  • rclone version
  • rclone config redacted OneDrive:
  • rclone lsd OneDrive: -vv

- rclone version
rclone v1.67.0

  • os/version: Microsoft Windows 10 Home 22H2 (64 bit)
  • os/kernel: 10.0.19045.4894 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: cmount

- rclone config redacted OneDrive:
[OneDrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
client_id = XXX
client_secret = XXX
region = q

Double check the config for sensitive info before posting publicly

- rclone lsd OneDrive: -vv
2024/10/08 21:17:36 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "lsd" "OneDrive:" "-vv"]
2024/10/08 21:17:36 DEBUG : Creating backend with remote "OneDrive:"
2024/10/08 21:17:36 DEBUG : Using config file from "C:\Users\My Home\AppData\Roaming\rclone\rclone.conf"
2024/10/08 21:17:36 DEBUG : OneDrive root '': Token expired but no uploads in progress - doing nothing
2024/10/08 21:17:36 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2024/10/08 21:17:36 DEBUG : OneDrive: Token refresh failed try 1/5: Post "/common/oauth2/v2.0/token": unsupported protocol scheme ""
2024/10/08 21:17:37 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2024/10/08 21:17:37 DEBUG : OneDrive: Token refresh failed try 2/5: Post "/common/oauth2/v2.0/token": unsupported protocol scheme ""
2024/10/08 21:17:38 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2024/10/08 21:17:38 DEBUG : OneDrive: Token refresh failed try 3/5: Post "/common/oauth2/v2.0/token": unsupported protocol scheme ""
2024/10/08 21:17:39 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2024/10/08 21:17:39 DEBUG : OneDrive: Token refresh failed try 4/5: Post "/common/oauth2/v2.0/token": unsupported protocol scheme ""
2024/10/08 21:17:40 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2024/10/08 21:17:40 DEBUG : OneDrive: Token refresh failed try 5/5: Post "/common/oauth2/v2.0/token": unsupported protocol scheme ""
2024/10/08 21:17:41 Failed to create file system for "OneDrive:": failed to get root: Get "/v1.0/drives/76bb77f6faf6298f/root": couldn't fetch token: Post "/common/oauth2/v2.0/token": unsupported protocol scheme ""

that is not a valid region, can try
region = global


rclone v1.67.0 is an old version, can run rclone selfupdate

I’ve solved this issue. It’s because I got two remotes mapped to the same OneDrive account. Is there alternative command for downloading files, other than „rclone copy“?

rclone copyto

why do you need an alternative command?

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