Trying to athorize gdrive connection the connection always expires after 60 minutes. I have noticed some discussion on the subject in this forum, but found no good solution!
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.0
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 ls gdrive:
or any command given after 60 minutes from autorization
The rclone config contents with secrets removed.
Paste config here
A log from the command with the -vv flag
2022/11/14 11:57:56 Failed to create file system for "gdrive:": couldn't find root directory ID: Get "https://www.googleapis.com/drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect gdrive:": oauth2: cannot fetch token: 401 Unauthorized
Response: {
"error": "unauthorized_client",
"error_description": "Unauthorized"
}
You'd want to remove that client ID / secret as you've shared it with the internet and remove your access tokens and whatnot.
If you remove the client ID/secret and rclone reconnect the remote, that would remove the client iD from the equation and you'd just need to reconnect the remote.
Problem solved, I had a miss-configuration possibly due to different rclone versions on headless computer and my laptop.
Thank you for prompt help!
Timo