What is the problem you are having with rclone?
rclone mount eventually fails due to token refresh failure
What is your rclone version (output from rclone version
)
rclone v1.54.0
- os/arch: linux/amd64
- go version: go1.15.
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Unraid 6.9.0-rc2
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 rcd --rc-no-auth --cache-dir /mnt/cache/rclone &
rclone rc mount/mount fs=gsuite: mountPoint=/mnt/remotes/gsuite mountOpt='{"AllowOther":true}' vfsOpt='{"CacheMode":3}'
The rclone config contents with secrets removed.
(this was after the rclone config reconnect mentioned below)
[gsuite]
type = drive
client_id = xxxx.apps.googleusercontent.com
client_secret = xxxx
scope = drive
root_folder_id = xxxx
service_account_file =
token = {"access_token":"xxxx","token_type":"Bearer","refresh_token":"xxxx","expiry":"2021-02-12T22:20:38.978954814-05:00"}
A log from the command with the -vv
flag
(this was from '--log-level DEBUG' not sure if different from '-vv'
2021/02/12 21:17:47 DEBUG : gsuite: Loaded invalid token from config file - ignoring
2021/02/12 21:17:47 DEBUG : gsuite: Token refresh failed try 1/5: context canceled
2021/02/12 21:17:48 DEBUG : gsuite: Loaded invalid token from config file - ignoring
2021/02/12 21:17:48 DEBUG : gsuite: Token refresh failed try 2/5: context canceled
2021/02/12 21:17:49 DEBUG : gsuite: Loaded invalid token from config file - ignoring
2021/02/12 21:17:49 DEBUG : gsuite: Token refresh failed try 3/5: context canceled
2021/02/12 21:17:50 DEBUG : gsuite: Loaded invalid token from config file - ignoring
2021/02/12 21:17:50 DEBUG : gsuite: Token refresh failed try 4/5: context canceled
2021/02/12 21:17:51 DEBUG : gsuite: Loaded invalid token from config file - ignoring
2021/02/12 21:17:51 DEBUG : gsuite: Token refresh failed try 5/5: context canceled
2021/02/12 21:17:52 INFO : Google drive root '': Failed to get StartPageToken: Get "https://www.googleapis.com/drive/v3/changes/startPageToken?alt=json&prettyPrint=false&supportsAllDrives=true": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect gsuite:": context canceled
I can fix with
rclone config reconnect gsuite:
but it will eventually fail again.