Cannot connect to my Google Drive

What is the problem you are having with rclone?

I tried to connect to my google drive with rclone, but I always get

Fatal error: failed to get token: Post "https://oauth2.googleapis.com/token": EOF

when configuring and connecting to the drive after the redirecting page says

Success!

--

All done. Please go back to rclone.

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


- os/version: arch rolling (64 bit)

- os/kernel: 6.6.8-arch1-1 (x86_64)

- os/type: linux

- os/arch: amd64

- go/version: go1.21.5

- go/linking: static

- go/tags: none 

(BTW: I've tried pacman's version and latest stable version, but the same result.)

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 config

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


[Gdrive]

type = drive

client_id = XXX

client_secret = XXX

scope = drive

### Double check the config for sensitive info before posting publicly

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


rclone config -vv

2023/12/30 22:47:09 DEBUG : rclone: Version "v1.66.0-beta.7580.8503282a5" starting with parameters ["rclone" "config" "-vv"]

2023/12/30 22:47:09 DEBUG : Using config file from "/home/allen/.config/rclone/rclone.conf"

Current remotes:

Name Type

==== ====

Gdrive drive

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 > Gdrive

remote> 1

Editing existing "Gdrive" remote with options:

- type: drive

- client_id: XXX.googleusercontent.XX

- client_secret: XXXXXXXXXAdUJgODa9v

- scope: drive

2023/12/30 22:47:18 DEBUG : Gdrive: config in: state="*all", result=""

2023/12/30 22:47:18 DEBUG : Gdrive: config out: out=&{State:*all-set,0,false Option:162533864211-1e036876mahi97devjdff12139uvogf4.apps.googleusercontent.com OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:18 DEBUG : Gdrive: config: reading config parameter "client_id"

Option client_id.

Google Application Client Id

Setting your own is recommended.

See 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 string value. Press Enter for the default (XXXXXXXXXXXXXXX.apps.googleusercontent.com).

client_id>

2023/12/30 22:47:22 DEBUG : Gdrive: config in: state="*all-set,0,false", result="162533864211-1e036876mahi97devjdff12139uvogf4.apps.googleusercontent.com"

2023/12/30 22:47:22 DEBUG : Gdrive: config out: out=&{State:*all,1,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:22 DEBUG : Gdrive: config in: state="*all,1,false", result=""

2023/12/30 22:47:22 DEBUG : Gdrive: config out: out=&{State:*all-set,1,false Option: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 OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:22 DEBUG : Gdrive: config: reading config parameter "client_secret"

Option client_secret.

OAuth Client Secret.

Leave blank normally.

Enter a string value. Press Enter for the default (GOCSPX-XXXXXXXXXXXXXv).

client_secret>

2023/12/30 22:47:22 DEBUG : Gdrive: config in: state="*all-set,1,false", result="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"

2023/12/30 22:47:22 DEBUG : Gdrive: config out: out=&{State:*all,2,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:22 DEBUG : Gdrive: config in: state="*all,2,false", result=""

2023/12/30 22:47:22 DEBUG : Gdrive: config out: out=&{State:*all,3,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:22 DEBUG : Gdrive: config in: state="*all,3,false", result=""

2023/12/30 22:47:22 DEBUG : Gdrive: config out: out=&{State:*all,4,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:22 DEBUG : Gdrive: config in: state="*all,4,false", result=""

2023/12/30 22:47:22 DEBUG : Gdrive: config out: out=&{State:*all,5,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:22 DEBUG : Gdrive: config in: state="*all,5,false", result=""

2023/12/30 22:47:22 DEBUG : Gdrive: config out: out=&{State:*all-set,5,false Option:drive OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:22 DEBUG : Gdrive: 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 string value.

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

2023/12/30 22:47:24 DEBUG : Gdrive: config in: state="*all-set,5,false", result="drive"

2023/12/30 22:47:24 DEBUG : Gdrive: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:24 DEBUG : Gdrive: config in: state="*all,6,false", result=""

2023/12/30 22:47:24 DEBUG : Gdrive: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:24 DEBUG : Gdrive: config in: state="*all,7,false", result=""

2023/12/30 22:47:24 DEBUG : Gdrive: config out: out=&{State:*all-set,7,false Option: OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:24 DEBUG : Gdrive: 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>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all-set,7,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,8,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,8,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,9,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,9,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,10,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,10,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,11,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,11,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,12,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,12,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,13,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,13,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,14,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,14,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,15,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,15,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,16,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,16,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,17,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,17,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,18,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,18,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,19,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,19,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,20,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,20,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,21,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,21,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,22,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,22,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,23,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,23,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,24,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,24,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,25,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,25,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,26,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,26,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,27,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,27,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,28,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,28,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,29,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,29,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,30,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,30,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,31,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,31,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,32,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,32,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,33,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,33,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,34,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,34,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,35,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,35,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,36,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,36,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,37,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,37,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,38,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,38,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,39,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,39,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,40,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,40,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,41,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,41,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,42,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,42,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,43,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,43,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,44,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,44,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,45,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,45,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,46,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,46,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,47,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,47,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,48,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,48,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all,49,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config in: state="*all,49,false", result=""

2023/12/30 22:47:46 DEBUG : Gdrive: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:46 DEBUG : Gdrive: config: reading config parameter "config_fs_advanced"

Edit advanced config?

y) Yes

n) No (default)

y/n>

2023/12/30 22:47:53 DEBUG : Gdrive: config in: state="*all-advanced", result="false"

2023/12/30 22:47:53 DEBUG : Gdrive: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:53 DEBUG : Gdrive: config in: state="*postconfig", result=""

2023/12/30 22:47:53 DEBUG : Gdrive: config in: state="", result=""

2023/12/30 22:47:53 DEBUG : Gdrive: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:53 DEBUG : Gdrive: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:53 DEBUG : Gdrive: config in: state="*oauth,teamdrive,,", result=""

2023/12/30 22:47:53 DEBUG : Gdrive: config out: out=&{State:*oauth-confirm,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:53 DEBUG : Gdrive: config in: state="*oauth-confirm,teamdrive,,", result=""

2023/12/30 22:47:53 DEBUG : Gdrive: config out: out=&{State:*oauth-islocal,teamdrive,, Option:true OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:53 DEBUG : Gdrive: 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>

2023/12/30 22:47:58 DEBUG : Gdrive: config in: state="*oauth-islocal,teamdrive,,", result="true"

2023/12/30 22:47:58 DEBUG : Gdrive: config out: out=&{State:*oauth-do,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2023/12/30 22:47:58 DEBUG : Gdrive: config in: state="*oauth-do,teamdrive,,", result=""

2023/12/30 22:47:58 NOTICE: Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.

2023/12/30 22:47:58 DEBUG : Starting auth server on 127.0.0.1:53682

2023/12/30 22:47:58 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=6MlAAQdG0MWDi5MuBlHxwg

2023/12/30 22:47:58 NOTICE: Log in and authorize rclone for access

2023/12/30 22:47:58 NOTICE: Waiting for code...

2023/12/30 22:47:58 DEBUG : Redirecting browser to: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=162533864211-1e036876mahi97devjdff12139uvogf4.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%2Fdrive&state=6MlAAQdG0MWDi5MuBlHxwg

2023/12/30 22:48:17 DEBUG : Received GET request on auth server to "/"

2023/12/30 22:48:17 NOTICE: Got code

2023/12/30 22:48:17 DEBUG : Closing auth server

2023/12/30 22:48:17 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection

2023/12/30 22:48:28 DEBUG : Gdrive: config out: out=<nil>, err=failed to get token: Post "https://oauth2.googleapis.com/token": EOF

Error: failed to get token: Post "https://oauth2.googleapis.com/token": EOF

Usage:

rclone config [flags]

rclone config [command]

Available Commands:

create Create a new remote with name, type and options.

delete Delete an existing remote.

disconnect Disconnects user from remote

dump Dump the config file as JSON.

edit Enter an interactive configuration session.

file Show path of configuration file in use.

password Update password in an existing remote.

paths Show paths used for configuration, cache, temp etc.

providers List in JSON format all the providers and options.

reconnect Re-authenticates user with remote.

redacted Print redacted (decrypted) config file, or the redacted config for a single remote.

show Print (decrypted) config file, or the config for a single remote.

touch Ensure configuration file exists.

update Update options in an existing remote.

userinfo Prints info about logged in user of remote.

Flags:

-h, --help help for config

Use "rclone [command] --help" for more information about a command.

Use "rclone help flags" for to see the global flags.

Use "rclone help backends" for a list of supported services.

2023/12/30 22:48:28 Fatal error: failed to get token: Post "https://oauth2.googleapis.com/token": EOF

Thanks for your help!

To rule out problems with your client_id/secret I suggest you try to create this remote with all default values - simply press enter when asked for client_id/secret.

Let's see if it works.

Thanks for your attention! I've tried this before but still the same. (I doubt could this be a proxy issue? I set export all_proxy=http://localhost:7890)

rm -rf .config/rclone/
11:34:36 allen@arch-yoga-allen ~ → rclone config -vv
2023/12/30 23:34:42 DEBUG : rclone: Version "v1.66.0-beta.7580.8503282a5" starting with parameters ["rclone" "config" "-vv"]
2023/12/30 23:34:42 NOTICE: Config file "/home/allen/.config/rclone/rclone.conf" not found - using defaults
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter name for new remote.
name> Gdrive

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
 1 / 1Fichier
   \ (fichier)
 2 / Akamai NetStorage
   \ (netstorage)
 3 / Alias for an existing remote
   \ (alias)
 4 / Amazon Drive
   \ (amazon cloud drive)
 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile, Cloudflare, DigitalOcean, Dreamhost, GCS, HuaweiOBS, IBMCOS, IDrive, IONOS, LyveCloud, Leviia, Liara, Linode, Minio, Netease, Petabox, RackCorp, Rclone, Scaleway, SeaweedFS, StackPath, Storj, Synology, TencentCOS, Wasabi, Qiniu and others
   \ (s3)
 6 / Backblaze B2
   \ (b2)
 7 / Better checksums for other remotes
   \ (hasher)
 8 / Box
   \ (box)
 9 / Cache a remote
   \ (cache)
10 / Citrix Sharefile
   \ (sharefile)
11 / Combine several remotes into one
   \ (combine)
12 / Compress a remote
   \ (compress)
13 / Dropbox
   \ (dropbox)
14 / Encrypt/Decrypt a remote
   \ (crypt)
15 / Enterprise File Fabric
   \ (filefabric)
16 / FTP
   \ (ftp)
17 / Google Cloud Storage (this is not Google Drive)
   \ (google cloud storage)
18 / Google Drive
   \ (drive)
19 / Google Photos
   \ (google photos)
20 / HTTP
   \ (http)
21 / Hadoop distributed file system
   \ (hdfs)
22 / HiDrive
   \ (hidrive)
23 / ImageKit.io
   \ (imagekit)
24 / In memory object storage system.
   \ (memory)
25 / Internet Archive
   \ (internetarchive)
26 / Jottacloud
   \ (jottacloud)
27 / Koofr, Digi Storage and other Koofr-compatible storage providers
   \ (koofr)
28 / Linkbox
   \ (linkbox)
29 / Local Disk
   \ (local)
30 / Mail.ru Cloud
   \ (mailru)
31 / Mega
   \ (mega)
32 / Microsoft Azure Blob Storage
   \ (azureblob)
33 / Microsoft Azure Files
   \ (azurefiles)
34 / Microsoft OneDrive
   \ (onedrive)
35 / OpenDrive
   \ (opendrive)
36 / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)
   \ (swift)
37 / Oracle Cloud Infrastructure Object Storage
   \ (oracleobjectstorage)
38 / Pcloud
   \ (pcloud)
39 / PikPak
   \ (pikpak)
40 / Proton Drive
   \ (protondrive)
41 / Put.io
   \ (putio)
42 / QingCloud Object Storage
   \ (qingstor)
43 / Quatrix by Maytech
   \ (quatrix)
44 / SMB / CIFS
   \ (smb)
45 / SSH/SFTP
   \ (sftp)
46 / Sia Decentralized Cloud
   \ (sia)
47 / Storj Decentralized Cloud Storage
   \ (storj)
48 / Sugarsync
   \ (sugarsync)
49 / Transparently chunk/split large files
   \ (chunker)
50 / Union merges the contents of several upstream fs
   \ (union)
51 / Uptobox
   \ (uptobox)
52 / WebDAV
   \ (webdav)
53 / Yandex Disk
   \ (yandex)
54 / Zoho
   \ (zoho)
55 / premiumize.me
   \ (premiumizeme)
56 / seafile
   \ (seafile)
Storage> 18

2023/12/30 23:35:01 DEBUG : Gdrive: config in: state="*all", result=""
2023/12/30 23:35:01 DEBUG : Gdrive: config out: out=&{State:*all-set,0,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:01 DEBUG : Gdrive: 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. Press Enter to leave empty.
client_id>

2023/12/30 23:35:02 DEBUG : Gdrive: config in: state="*all-set,0,false", result=""
2023/12/30 23:35:02 DEBUG : Gdrive: config out: out=&{State:*all,1,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:02 DEBUG : Gdrive: config in: state="*all,1,false", result=""
2023/12/30 23:35:02 DEBUG : Gdrive: config out: out=&{State:*all-set,1,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:02 DEBUG : Gdrive: config: reading config parameter "client_secret"
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>

2023/12/30 23:35:02 DEBUG : Gdrive: config in: state="*all-set,1,false", result=""
2023/12/30 23:35:02 DEBUG : Gdrive: config out: out=&{State:*all,2,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:02 DEBUG : Gdrive: config in: state="*all,2,false", result=""
2023/12/30 23:35:02 DEBUG : Gdrive: config out: out=&{State:*all,3,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:02 DEBUG : Gdrive: config in: state="*all,3,false", result=""
2023/12/30 23:35:02 DEBUG : Gdrive: config out: out=&{State:*all,4,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:02 DEBUG : Gdrive: config in: state="*all,4,false", result=""
2023/12/30 23:35:02 DEBUG : Gdrive: config out: out=&{State:*all,5,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:02 DEBUG : Gdrive: config in: state="*all,5,false", result=""
2023/12/30 23:35:02 DEBUG : Gdrive: config out: out=&{State:*all-set,5,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:02 DEBUG : Gdrive: 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.
Press Enter to leave empty.
 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>

2023/12/30 23:35:04 DEBUG : Gdrive: config in: state="*all-set,5,false", result=""
2023/12/30 23:35:04 DEBUG : Gdrive: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:04 DEBUG : Gdrive: config in: state="*all,6,false", result=""
2023/12/30 23:35:04 DEBUG : Gdrive: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:04 DEBUG : Gdrive: config in: state="*all,7,false", result=""
2023/12/30 23:35:04 DEBUG : Gdrive: config out: out=&{State:*all-set,7,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:04 DEBUG : Gdrive: 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>

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

2023/12/30 23:35:06 DEBUG : Gdrive: config in: state="*all-advanced", result="false"
2023/12/30 23:35:06 DEBUG : Gdrive: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:06 DEBUG : Gdrive: config in: state="*postconfig", result=""
2023/12/30 23:35:06 DEBUG : Gdrive: config in: state="", result=""
2023/12/30 23:35:06 DEBUG : Gdrive: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:06 DEBUG : Gdrive: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:06 DEBUG : Gdrive: config in: state="*oauth,teamdrive,,", result=""
2023/12/30 23:35:06 DEBUG : Gdrive: config out: out=&{State:*oauth-confirm,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:06 DEBUG : Gdrive: config in: state="*oauth-confirm,teamdrive,,", result=""
2023/12/30 23:35:06 DEBUG : Gdrive: config out: out=&{State:*oauth-islocal,teamdrive,, Option:true OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:06 DEBUG : Gdrive: 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>

2023/12/30 23:35:07 DEBUG : Gdrive: config in: state="*oauth-islocal,teamdrive,,", result="true"
2023/12/30 23:35:07 DEBUG : Gdrive: config out: out=&{State:*oauth-do,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/12/30 23:35:07 DEBUG : Gdrive: config in: state="*oauth-do,teamdrive,,", result=""
2023/12/30 23:35:07 DEBUG : Starting auth server on 127.0.0.1:53682
2023/12/30 23:35:07 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=1lzHK6kKS6UwqQ-afdEaOQ
2023/12/30 23:35:07 NOTICE: Log in and authorize rclone for access
2023/12/30 23:35:07 NOTICE: Waiting for code...
2023/12/30 23:35:07 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%2Fdrive&state=1lzHK6kKS6UwqQ-afdEaOQ
2023/12/30 23:35: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%2Fdrive&state=1lzHK6kKS6UwqQ-afdEaOQ
2023/12/30 23:35:31 DEBUG : Received GET request on auth server to "/"
2023/12/30 23:35:31 NOTICE: Got code
2023/12/30 23:35:31 DEBUG : Closing auth server
2023/12/30 23:35:31 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2023/12/30 23:35:42 DEBUG : Gdrive: config out: out=<nil>, err=failed to get token: Post "https://oauth2.googleapis.com/token": EOF
Error: failed to get token: Post "https://oauth2.googleapis.com/token": EOF
Usage:
  rclone config [flags]
  rclone config [command]

Available Commands:
  create      Create a new remote with name, type and options.
  delete      Delete an existing remote.
  disconnect  Disconnects user from remote
  dump        Dump the config file as JSON.
  edit        Enter an interactive configuration session.
  file        Show path of configuration file in use.
  password    Update password in an existing remote.
  paths       Show paths used for configuration, cache, temp etc.
  providers   List in JSON format all the providers and options.
  reconnect   Re-authenticates user with remote.
  redacted    Print redacted (decrypted) config file, or the redacted config for a single remote.
  show        Print (decrypted) config file, or the config for a single remote.
  touch       Ensure configuration file exists.
  update      Update options in an existing remote.
  userinfo    Prints info about logged in user of remote.

Flags:
  -h, --help   help for config

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.

2023/12/30 23:35:42 Fatal error: failed to get token: Post "https://oauth2.googleapis.com/token": EOF

I think it is problem with your network - so with your proxy....

Error: failed to get token: Post "https://oauth2.googleapis.com/token": EOF

Looks like some firewall terminates your connection abruptly?

try:

export http_proxy=http://localhost:7890
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy

ohhh, it works (at least for default config)! Thank you! (BTW could you explain why the proxy setting affect this?)

clearly in your case without proxy rclone can not connect to Google address.

Maybe your browser could as it uses different settings? So authentication was successful but then rclone failed to read token.

I do not know your network and configuration to speculate more:)

Here more re rclone and proxy:

I see, thanks for your help, and I love this community!

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