Trouble signing in when adding OneDring - "(rclone) is disabled"

What is the problem you are having with rclone?

I can't add a OneDrive to my config and are given this error when confirming the account:
Sign in
Sorry, but we’re having trouble signing you in.
AADSTS7000112: Application '<application_ID'(rclone) is disabled.

What is your rclone version (output from rclone version)

Tested with 2 different versions:
rclone v1.56.0

  • os/version: linuxmint 20.2 (64 bit)
  • os/kernel: 5.12.19-051219-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.5
  • go/linking: static
  • go/tags: none

rclone version
rclone v1.57.0-beta.5658.18f392918

  • os/version: linuxmint 20.2 (64 bit)
  • os/kernel: 5.12.19-051219-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17
  • go/linking: static
  • go/tags: none

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

OneDrive

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

rclone config -vv

The rclone config contents with secrets removed.

No config are written

A log from the command with the -vv flag

2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all-set,5,false", result="global"
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,6,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,7,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,8,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,8,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,9,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,9,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,10,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,10,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,11,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,11,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,12,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,12,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,13,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,13,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,14,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,14,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,15,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,15,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,16,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,16,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all,17,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config in: state="*all,17,false", result=""
2021/09/12 21:37:54 DEBUG : onedwb: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:37:54 DEBUG : onedwb: config: reading config parameter "config_fs_advanced"
2021/09/12 21:46:34 DEBUG : onedwb: config in: state="*all-advanced", result="false"
2021/09/12 21:46:34 DEBUG : onedwb: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:46:34 DEBUG : onedwb: config in: state="*postconfig", result=""
2021/09/12 21:46:34 DEBUG : onedwb: config in: state="", result=""
2021/09/12 21:46:34 DEBUG : onedwb: config out: out=&{State:*oauth,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:46:34 DEBUG : onedwb: config out: out=&{State:*oauth,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:46:34 DEBUG : onedwb: config in: state="*oauth,choose_type,,", result=""
2021/09/12 21:46:34 DEBUG : onedwb: config out: out=&{State:*oauth-confirm,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:46:34 DEBUG : onedwb: config in: state="*oauth-confirm,choose_type,,", result=""
2021/09/12 21:46:34 DEBUG : onedwb: config out: out=&{State:*oauth-islocal,choose_type,, Option:true OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:46:34 DEBUG : onedwb: config: reading config parameter "config_is_local"
2021/09/12 21:47:18 DEBUG : onedwb: config in: state="*oauth-islocal,choose_type,,", result="true"
2021/09/12 21:47:18 DEBUG : onedwb: config out: out=&{State:*oauth-do,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2021/09/12 21:47:18 DEBUG : onedwb: config in: state="*oauth-do,choose_type,,", result=""
2021/09/12 21:47:18 DEBUG : Starting auth server on 127.0.0.1:53682
2021/09/12 21:47:18 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=t0UbJ5yuRV0QToJGNPw_zQ
2021/09/12 21:47:18 NOTICE: Log in and authorize rclone for access
2021/09/12 21:47:18 NOTICE: Waiting for code...
2021/09/12 21:47:18 DEBUG : Redirecting browser to: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?access_type=offline&client_id=b15665d9-eda6-4092-8539-0eec376afd59&redirect_uri=http%3A%2F%2Flocalhost%3A53682%2F&response_type=code&scope=Files.Read+Files.ReadWrite+Files.Read.All+Files.ReadWrite.All+offline_access+Sites.Read.All&state=t0UbJ5yuRV0QToJGNPw_zQ

It seem to be an issue similar to the one reported here:

Thus I tested also with 1.57 beta

As I have added 15-20 different OneDrive accounts to rclone, last one not long time ago, I tried to revert to 1.55.1 as well, but with no different result. This particular OneDrive account is totally new, so it should be necessary or useful to refresh anything. It was created yesterday, and today I confirm the creation by logging in to web interface, changing password, and then moving on to add to rclone.
I found a case with similar issues, where it was suggested it might be cookie related, so I tested both in private window and different browser, but with no visible difference.

Normally when configuring a OneDrive account, I choose OneDrive and global, and choose "default" for the rest of the settings, and that always works fine, and even though this looks like it should be the account, not rclone, having an issue, I have not gotten any information indicating the account should be handled in any different way. I have other cloud drives in the current config, and they don't seem to be affected by this issue.

Does anybody have any tips on how to solve or work around the sign in issue and what is disabling rclone?

Contact your admin and see if they can enable rclone.

Thanks for the advice @Animosity022, I suspected it would be a long and winding road to get admin to do the necessary changes, so I hoped there was another way around it. However, to my surprise, it felt like admin fixed it as soon as I snapped my fingers. It was solved "250GB ago".

1 Like

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