I’ve tested rclone copy to GDrive and have been blocked on exactly the moment the refresh token is set to expire.
This is the debug message I get right as the token expires: Google drive root 'path': Failed to get StartPageToken: Get https://www.googleapis.com/drive/v3/changes/startPageToken?alt=json&supportsTeamDrives=false: oauth2: token expired and refresh token is not set
I made sure the timezone is set correctly in case that makes a difference.
Token expired I think is when you have had your credentials removed from the GD if I’m not mistaken.
If you are using your own API keys, you’d see your project/company name as 3rd party access or you’d see “rclone” if you are using the standard rclone API key.
Mine looks exactly the same, the issue only seems to occur when I’m doing multiple copies over an hour in time. So I’ll start copying starting at 12:00 and maybe do 20 of them before it hits 1:00 and the token expires with rclone giving me the error message I cited above.
If I don’t do any copying, the token doesn’t seem to cause any issues as I’ve had it sit for days and read from gdrive with no errors.
Sorry for reliving an old topic. I’m seeing this or a similar problem.
Long time user of rclone without client-id, never had an issue. Today, I decided to enable it since it is recommended in several places. After creating the id and authorizing the client I started seeing the problem.
I’m doing a backup to gdrive that takes longer than an hour (files being uploaded don’t take longer than an hour). It runs normally until, at some point, the 401 error starts to pop up. If I go through rclone config or authorize it works again for another hour. Previously I never had to reauthorize.