Problem with Onedrive

What is the problem you are having with rclone?

I cant configure Sharepoint in rclone, I try to configure with onedrive, and I cant

What is your rclone version (output from rclone version)

Lastest version. rclone v1.53.1// go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Linux, Ubuntu 16.04.5

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

Sharepoint

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

rclone lsd Sharepoint: -vv

The rclone config contents with secrets removed.

[Sharepoint]
type = onedrive
token = {"access_token":"$
drive_id = 404xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
drive_type = business

A log from the command with the -vv flag

2020/10/22 20:40:46 DEBUG : rclone: Version "v1.53.1" starting with parameters ["./rclone" "lsd" "Sharepoint:" "-vv"]
2020/10/22 20:40:46 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2020/10/22 20:40:46 DEBUG : Creating backend with remote "Sharepoint:"
2020/10/22 20:40:46 DEBUG : 5 go routines active

hello and welcome to the forum,

there are no errors in that log file.

can you explain, in detail, what the problem is?

Yes. When I try the command "rclone lsd Sharepoint:" I cant watch my files. I have a sharepoint with my files, but I cant watch it.

from the wizard, which option did you choose

Choose a number from below, or type in an existing value
 1 / OneDrive Personal or Business
   \ "onedrive"
 2 / Sharepoint site
   \ "sharepoint"
 3 / Type in driveID
   \ "driveid"
 4 / Type in SiteID
   \ "siteid"
 5 / Search a Sharepoint site
   \ "search"

have you read this https://rclone.org/webdav/#sharepoint

I try option 1 and 2 and dont work (I use Onedrive option), and WebDAV option, I dont know how to use.

So you got a token and authorized it?

That only lists directories and not files. Are there any directories or just files?

Files and directories

If I make the command

rclone ls Sharepoint:

I watch this error:

2020/10/22 21:42:55 Failed to create file system for "Sharepoint:": failed to get root: Get https : //api. onedrive. com/v1.0/drive/root:/: oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"The provided value for the input parameter 'refresh_token' or 'assertion' is not valid.","correlation_id":"535ec7f9-26b6-xxxx-847a-d3bxxxxxxxxx"}

this might help https://rclone.org/onedrive/#invalid-grant-aadsts50076

I try this, and dont work. I refresh the token, and dont work

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