Not Opening Browser Window for 0Auth with Google Drive

What is the problem you are having with rclone?

Trying to set up a new Google Drive account, but using auto config, http://127.0.0.1:53682/ cannot be reached. The browser window does not open automatically, and when pasting the link provided into my browser it cannot be reached. I’ve tried old client IDs that work for other remotes, and new client IDs/secrets, but neither works.

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

rclone version
rclone v1.71.1
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-216-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.1
- go/linking: static
- go/tags: none

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

Google Drive (eventually to get to a Shared Drive)

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

rclone config

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[google-genomics_2025on]
type = drive
client_id = XXX
client_secret = XXX
scope = drive

(only showing the relevant config here)

A log from the command that you were trying to run with the -vv flag

rclone config -vv
2025/10/20 10:55:36 DEBUG : rclone: Version "v1.71.1" starting with parameters ["rclone" "config" "-vv"]
2025/10/20 10:55:36 DEBUG : Using config file from "/home/tangled/.config/rclone/rclone.conf"
Current remotes:

Name                 Type
====                 ====
aws-remote           s3
dropbox-remote       dropbox
google-camera-traps  drive
google-genomics      drive
google-genomics_2025on drive
omrf-ftp             http

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> e

Select remote.
Choose a number from below, or type in an existing value.
 1 > aws-remote
 2 > dropbox-remote
 3 > google-camera-traps
 4 > google-genomics
 5 > google-genomics_2025on
 6 > omrf-ftp
remote> 5

Editing existing "google-genomics_2025on" remote with options:
- type: drive
- client_id: 4XXX.com
- client_secret: GOXXU
- scope: drive

2025/10/20 10:55:42 DEBUG : google-genomics_2025on: config in: state="*all", result=""
2025/10/20 10:55:42 DEBUG : google-genomics_2025on: config out: out=&{State:*all-set,0,false Option:4XXX.com OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:42 DEBUG : google-genomics_2025on: config: reading config parameter "client_id"
Option client_id.
Google Application Client Id
Setting your own is recommended.
See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a value of type string. Press Enter for the default (4XX.com).
client_id> 

2025/10/20 10:55:46 DEBUG : google-genomics_2025on: config in: state="*all-set,0,false", result="4XXX.com"
2025/10/20 10:55:46 DEBUG : google-genomics_2025on: config out: out=&{State:*all,1,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:46 DEBUG : google-genomics_2025on: config in: state="*all,1,false", result=""
2025/10/20 10:55:46 DEBUG : google-genomics_2025on: config out: out=&{State:*all-set,1,false Option:GOXXXU OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:46 DEBUG : google-genomics_2025on: config: reading config parameter "client_secret"
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value of type string. Press Enter for the default (GOXXXXU).
client_secret> 

2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config in: state="*all-set,1,false", result="GOXXXXU"
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config out: out=&{State:*all,2,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config in: state="*all,2,false", result=""
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config out: out=&{State:*all,3,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config in: state="*all,3,false", result=""
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config out: out=&{State:*all,4,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config in: state="*all,4,false", result=""
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config out: out=&{State:*all,5,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config in: state="*all,5,false", result=""
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config in: state="*all,6,false", result=""
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config out: out=&{State:*all-set,6,false Option:drive OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:48 DEBUG : google-genomics_2025on: config: reading config parameter "scope"
Option scope.
Comma separated list of scopes that rclone should use when requesting access from drive.
Choose a number from below, or type in your own value of type string.
Press Enter for the default (drive).
 1 / Full access all files, excluding Application Data Folder.
   \ (drive)
 2 / Read-only access to file metadata and file contents.
   \ (drive.readonly)
   / Access to files created by rclone only.
 3 | These are visible in the drive website.
   | File authorization is revoked when the user deauthorizes the app.
   \ (drive.file)
   / Allows read and write access to the Application Data folder.
 4 | This is not visible in the drive website.
   \ (drive.appfolder)
   / Allows read-only access to file metadata but
 5 | does not allow any access to read or download file content.
   \ (drive.metadata.readonly)
scope> 1

2025/10/20 10:55:49 DEBUG : google-genomics_2025on: config in: state="*all-set,6,false", result="drive"
2025/10/20 10:55:49 DEBUG : google-genomics_2025on: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:49 DEBUG : google-genomics_2025on: config in: state="*all,7,false", result=""
2025/10/20 10:55:49 DEBUG : google-genomics_2025on: config out: out=&{State:*all,8,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:49 DEBUG : google-genomics_2025on: config in: state="*all,8,false", result=""
2025/10/20 10:55:49 DEBUG : google-genomics_2025on: config out: out=&{State:*all-set,8,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:49 DEBUG : google-genomics_2025on: config: reading config parameter "service_account_file"
Option service_account_file.
Service Account Credentials JSON file path.
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
Enter a value. Press Enter to leave empty.
service_account_file> 

2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all-set,8,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,9,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,9,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,10,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,10,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,11,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,11,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,12,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,12,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,13,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,13,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,14,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,14,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,15,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,15,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,16,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,16,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,17,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,17,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,18,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,18,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,19,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,19,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,20,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,20,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,21,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,21,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,22,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,22,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,23,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,23,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,24,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,24,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,25,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,25,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,26,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,26,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,27,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,27,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,28,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,28,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,29,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,29,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,30,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,30,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,31,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,31,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,32,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,32,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,33,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,33,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,34,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,34,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,35,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,35,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,36,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,36,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,37,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,37,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,38,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,38,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,39,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,39,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,40,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,40,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,41,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,41,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,42,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,42,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,43,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,43,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,44,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,44,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,45,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,45,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,46,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,46,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,47,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,47,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,48,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,48,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,49,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,49,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,50,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,50,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all,51,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config in: state="*all,51,false", result=""
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:52 DEBUG : google-genomics_2025on: config: reading config parameter "config_fs_advanced"
Edit advanced config?
y) Yes
n) No (default)
y/n> n

2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config in: state="*all-advanced", result="false"
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config in: state="*postconfig", result=""
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config in: state="", result=""
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config in: state="*oauth,teamdrive,,", result=""
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config out: out=&{State:*oauth-confirm,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config in: state="*oauth-confirm,teamdrive,,", result=""
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config out: out=&{State:*oauth-islocal,teamdrive,, Option:true OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:55:58 DEBUG : google-genomics_2025on: config: reading config parameter "config_is_local"
Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> y

2025/10/20 10:56:06 DEBUG : google-genomics_2025on: config in: state="*oauth-islocal,teamdrive,,", result="true"
2025/10/20 10:56:06 DEBUG : google-genomics_2025on: config out: out=&{State:*oauth-do,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/10/20 10:56:06 DEBUG : google-genomics_2025on: config in: state="*oauth-do,teamdrive,,", result=""
2025/10/20 10:56:06 NOTICE: Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.
2025/10/20 10:56:06 DEBUG : Starting auth server on 127.0.0.1:53682
2025/10/20 10:56:06 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=-hoOLPWBkBqwtrHAniW02w
2025/10/20 10:56:06 NOTICE: Log in and authorize rclone for access
2025/10/20 10:56:06 NOTICE: Waiting for code...

hi,

  1. try a different web browser.
  2. start over, create a new remote. do not edit an existing, non-working remote.

Hi there,

  1. Tried Crome and Safari. Both had the same result
  2. Tried creating new remote. Same result. (The edits in my original post were me going back to retry with the -vv flag.)

i did not know that safari works on ubuntu?


what is the exact error/issue?

i did not know that safari works on ubuntu?

Sorry for not explaining earlier. I am running rclone on a remote, headless ubuntu server, via ssh from my Mac. It has not been a problem earlier to authenticate in this way.

Error message on Chrome:

This site can’t be reached
127.0.0.1 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

Error message on Safari:

https://rclone.org/remote_setup/#configuring-using-ssh-tunnel

Wow. That worked perfectly. Thank you!