Trying to setup rclone

What is the problem you are having with rclone?

Error 400 when trying to setup rclone remotely

Error 400: invalid_request

The loopback flow has been blocked in order to keep users secure. Follow the Loopback IP Address flow migration guide linked in the developer docs below to migrate your app to an alternative method.

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

rclone v1.62.2

  • os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
  • os/kernel: 10.0.19045.2965 Build 19045.2965.2965 (x86_64)
  • 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)

GDrive

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

./rclone.exe authorize "drive" "redacted"

The rclone config contents with secrets removed.

Do not have one, just starting to create

A log from the command with the -vv flag

2023/05/28 15:09:51 DEBUG : rclone: Version "v1.62.2" starting with parameters ["D:\\rclone-v1.62.2-windows-amd64\\rclone-v1.62.2-windows-amd64\\rclone.exe" "authorize" "drive" "redacted" "-vv"]
2023/05/28 15:09:51 DEBUG : **temp-fs**: config in: state="", result=""
2023/05/28 15:09:51 NOTICE: Config file "C:\\Users\\BurAndBy\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
2023/05/28 15:09:51 DEBUG : OAuth only is set - overriding return state
2023/05/28 15:09:51 DEBUG : **temp-fs**: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/05/28 15:09:51 DEBUG : **temp-fs**: config in: state="*oauth,,,", result=""
2023/05/28 15:09:51 DEBUG : **temp-fs**: config out: out=&{State:*oauth-confirm,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/05/28 15:09:51 DEBUG : **temp-fs**: config in: state="*oauth-confirm,,,", result=""
2023/05/28 15:09:51 DEBUG : Auto confirm is set, choosing default "true" for state "*oauth-islocal,,,", override by setting config parameter "config_is_local"
2023/05/28 15:09:51 DEBUG : **temp-fs**: config out: out=&{State:*oauth-islocal,,, Option:<nil> OAuth:<nil> Error: Result:true}, err=<nil>
2023/05/28 15:09:51 DEBUG : **temp-fs**: config in: state="*oauth-islocal,,,", result="true"
2023/05/28 15:09:51 DEBUG : **temp-fs**: config out: out=&{State:*oauth-do,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/05/28 15:09:51 DEBUG : **temp-fs**: config in: state="*oauth-do,,,", result=""
2023/05/28 15:09:51 NOTICE: Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.
2023/05/28 15:09:51 DEBUG : Starting auth server on 127.0.0.1:53682
2023/05/28 15:09:51 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=p4ywrh-XY2JEYhWoUBc7_A
2023/05/28 15:09:51 NOTICE: Log in and authorize rclone for access
2023/05/28 15:09:51 NOTICE: Waiting for code...
2023/05/28 15:09:52 DEBUG : Redirecting browser to: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=redacted&redirect_uri=http%3A%2F%2F127.0.0.1%3A53682%2F&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=p4ywrh-XY2JEYhWoUBc7_A

Do you have a firewall or some AV blocking something?

rclone authorize drive

should be it - what are you putting after it?

So what exactly is happening? It is not clear at least for me.

you try to authorize "drive" - was it successful?

have you copied token to rclone you are trying to authorize?

where "Error 400: invalid_request" is coming from?

Describe step by step what you are doing and at which stage you have problem.

rclone authorize "stringofletters"

I'm trying to remote setup a nonDE hardware, it gives me the command to use on other pc

P.S.: remote hardware also has 1.62.2, can't get the version thing right now.

I run setup on the nonDE machine
Say "n" to advanced cfg and then try the other machine way to set up the drive. I send the command on other pc, open browser. After that it shows Error 400: invalid_request about the loopback thing. I can't even get the confirm perms thing

  1. on one machine you run rclone config - there is no web browser there - so when it asks do you have browser you answer NO

  2. now on computer with browser you should run rclone authorize drive - it will open browser where you login to you Google account

  3. now you should go back to terminal window and copy generated token.

  4. You paste this token to rclone config in first computer

might be also something with your default web browser..

2023/05/28 15:09:51 DEBUG : Starting auth server on 127.0.0.1:53682
2023/05/28 15:09:51 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=p4ywrh-XY2JEYhWoUBc7_A

you can try different browser - simply connect there to http://127.0.0.1:53682/auth?state=p4ywrh-XY2JEYhWoUBc7_A

This is what happens when I run

rclone authorize drive

when you finish login process in the browser terminal window will display your token

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