Rclone Error 400. Some requested scopes were invalid. - Google Drive Setup

What is the problem you are having with rclone?

I am setting up rclone on a headless Ubuntu VPS to sync to Google Drive. Proceeding through the setup for the new remote connection, I am given the command to run on a system with a browser, but unfortunately I am provided with the following error:

Access blocked: Authorisation error. Some requested scopes were invalid. {invalid=[https://www.googleapis.com/auth/drivu.buadonly]}. Error 400:invalid_scope

What I have tried:

  • Of course Google'd this error, with respect to rclone. Surprisingly, I could not find this exact error associated with rclone
  • Turned off local firewall completely
  • Tried different levels of access (1 for full access. 2 for read only. 3 for only files made by rclone) all provided the same error.
  • Tried on 2 different PCs with a browser.

Run the command 'rclone version' and share the full output of the command.

Ubuntu:

rclone v1.62.2

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.19.0-1025-aws (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: none

Windows 11:

rclone v1.62.2

  • os/version: Microsoft Windows 11 Pro 22H2 64bit
  • os/kernel: 10.0.22621.1848 Build 22621.1848.1848
  • os/type: Windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

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

  • Google Drive

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

.\rclone.exe authorize "drive" "eyJzY29wZSI6ImRyaXZ1In0"

A log from the command with the -vv flag

2023/06/18 12:30:25 DEBUG : **temp-fs**: config in: state="", result=""
2023/06/18 12:30:25 NOTICE: Config file "C:\\Users\\<name>\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
2023/06/18 12:30:25 DEBUG : OAuth only is set - overriding return state
2023/06/18 12:30:25 DEBUG : **temp-fs**: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/06/18 12:30:25 DEBUG : **temp-fs**: config in: state="*oauth,,,", result=""
2023/06/18 12:30:25 DEBUG : **temp-fs**: config out: out=&{State:*oauth-confirm,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/06/18 12:30:25 DEBUG : **temp-fs**: config in: state="*oauth-confirm,,,", result=""
2023/06/18 12:30:25 DEBUG : Auto confirm is set, choosing default "true" for state "*oauth-islocal,,,", override by setting config parameter "config_is_local"
2023/06/18 12:30:25 DEBUG : **temp-fs**: config out: out=&{State:*oauth-islocal,,, Option:<nil> OAuth:<nil> Error: Result:true}, err=<nil>
2023/06/18 12:30:25 DEBUG : **temp-fs**: config in: state="*oauth-islocal,,,", result="true"
2023/06/18 12:30:25 DEBUG : **temp-fs**: config out: out=&{State:*oauth-do,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/06/18 12:30:25 DEBUG : **temp-fs**: config in: state="*oauth-do,,,", result=""
2023/06/18 12:30:25 DEBUG : Starting auth server on 127.0.0.1:53682
2023/06/18 12:30:25 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=o3kib-krQ_mRE9O1y6GoDg
2023/06/18 12:30:25 NOTICE: Log in and authorize rclone for access
2023/06/18 12:30:25 NOTICE: Waiting for code...
2023/06/18 12:30:25 DEBUG : Redirecting browser to: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=202264815644.apps.googleusercontent.com&redirect_uri=http%3A%2F%2F127.0.0.1%3A53682%2F&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrivu&state=o3kib-krQ_mRE9O1y6GoDg

hello and welcome to the forum,

might start over, in the other direction, windows -> linux

--- on windows, create a new remote from scratch using rclone config
--- copy that config file from windows to linux

or what i do

Hi. Thank you for the reply. The "Configuring by copying the config file" alternate method worked. Thank you

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