Can't connect (auth error), after possible improper shutdown

What is the problem you are having with rclone?

Seem to be getting an authorization failure. Possibly after an improper shutdown?

What is your rclone version (output from rclone version)

rclone v1.52.3

  • os/arch: darwin/amd64
  • go version: go1.14.6

Which OS you are using and how many bits (eg Windows 7, 64 bit)

macos 10.15.6

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 mount gdrive_crypt: /Users/davedenis/gdrive_mount --buffer-size 128M --vfs-cache-mode writes --dir-cache-time 96h --vfs-cache-max-age 1h --vfs-read-chunk-size=32M --vfs-read-chunk-size-limit=2G --log-level INFO --log-file=mylog.txt

The rclone config contents with secrets removed.

type = drive
client_id =
client_secret = xxx
scope = drive
token = {"access_token":"xxx","token_type":"Bearer","refresh_token":"1//xxx","expiry":"2020-08-14T00:11:50.153865-07:00"}
root_folder_id = 0AxxxvxxxxxxVA

type = crypt
remote = gdrive:/media_crypt
filename_encryption = standard
directory_name_encryption = true
password = xxx

A log from the command with the -vv flag

Lots of this:

2020/08/13 16:49:08 INFO  : Google drive root 'media_crypt': Failed to get StartPageToken: googleapi: Error 401: Invalid Credentials, authError
2020/08/13 16:49:08 ERROR : Encrypted drive 'gdrive_crypt:': Statfs failed: failed to get Drive storageQuota: googleapi: Error 401: Invalid Credentials, authError
2020/08/13 16:49:08 ERROR : /: Dir.Stat error: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError

FWIW, I have my password and salt in case I need to recreate my config.

It looks like your drive has become disconnected somehow.

Reconnect it with

rclone config reconnect gdrive:

I think that should fix it!

1 Like

Wow. That was it, thank you!


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