Onedrive-drive-id & --onedrive-drive-type flag bug?

What is the problem you are having with rclone?

Certain onedrive specific flags are not being passed to the config file. When setting --onedrive-drive-id & --onedrive-drive-type I would expect these to populate the drive_id & drive_type fields in the config file but it doesn't.

What is your rclone version (output from rclone version)

rclone v1.53.0

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

  • os/arch: linux/amd64 - CentOS 7.X

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 -vv config create onedrivetest onedrive --onedrive-drive-type=business --onedrive-drive-id=xxxx

The rclone config contents with secrets removed.

[onedriveblah2]
type = onedrive
token = {"access_token":"eyJ0eXAiOiJK.............................................................................................................................","expiry":"2020-09-07T16:26:21.141937369+01:00"}


A log from the command with the -vv flag

2020/09/07 15:26:15 DEBUG : rclone: Version "v1.53.0" starting with parameters ["rclone" "-vv" "config" "create" "onedriveblah2" "onedrive" "--onedrive-drive-type=business" "--onedrive-drive-id=xxxxxx"]
2020/09/07 15:26:15 DEBUG : Using config file from "/home/xxxxxxx/.config/rclone/rclone.conf"
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
Auto confirm is set: answering Yes, override by setting config parameter config_is_local=false
2020/09/07 15:26:15 DEBUG : Starting auth server on 127.0.0.1:53682
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=B16EzAMMAkmVO3oqtof5VA
Log in and authorize rclone for access
Waiting for code...
2020/09/07 15:26:21 DEBUG : Received GET request on auth server to "/"
Got code
2020/09/07 15:26:22 DEBUG : Keeping previous permissions for config file: -rw-r--r--
2020/09/07 15:26:22 DEBUG : onedriveblah2: Saved new token in config file
2020/09/07 15:26:22 DEBUG : Closing auth server
2020/09/07 15:26:22 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2020/09/07 15:26:22 DEBUG : Keeping previous permissions for config file: -rw-r--r--
--------------------
[onedriveblah2]
type = onedrive
token = {"access_token":"eyJ0eXAiOiJKV1QiLC................................","expiry":"2020-09-07T16:26:21.141937369+01:00"}
--------------------
2020/09/07 15:26:22 DEBUG : rclone: Version "v1.53.0" finishing with parameters ["rclone" "-vv" "config" "create" "onedriveblah2" "onedrive" "--onedrive-drive-type=business" "--onedrive-drive-id=xxxxxx"]

hello and welcome to the forum,

perhaps try
rclone -vv config create onedrivetest onedrive onedrive-drive-type=business onedrive-drive-id=xxxx

Hi,

Thanks for the welcome.

Unfortunately that did not work - I tried various combinations to no avail.

Cheers

Can you try this:

 rclone -vv config create onedrivetest onedrive drive_type business drive_id xxxx

Thank you, that appears to have done the trick.

Fair to say that the documentation is somewhat a bit misleading?

I don't think so. This page explains it clearly with an example too: https://rclone.org/commands/rclone_config_create/

Did you read the documentation from some other page or do you have any suggestion to improve it?

hello,

make it clear the need to use the config value, and not the flag nor the environment variable.

perhaps a few examples.

thanks

Thats cool. I did come across the page but I guess I got slightly mislead as the main source I used was the following page.

https://rclone.org/onedrive/

Where the various advance options I initially used or listed.

Anyway, thank you everyone for your help much appreciated.

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