RClone failing to read Google drive

What is the problem you are having with rclone?

Rclone is not able to read from source directory. listing files, listing directories,sync everything is failing.

What is your rclone version (output from rclone version)

rclone v1.46

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

os/arch: linux/amd64

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 remote:
rclone lsd remote:
rclone sync source_remote:source_folder target_remote:target_folder

The rclone config contents with secrets removed.

[drive_remote]
type = drive
scope = drive
token = 
team_drive =

A log from the command with the -vv flag

ERROR : : error listing: couldn't list directory: 
Get https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%29%2CnextPageToken&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%27root%27+in+parents%29: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
  
  ERROR : : error reading source directory: couldn't list directory: Get https://www.googleapis.com/drive/v3/files?alt=json&corpora=teamDrive&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%29%2CnextPageToken&includeTeamDriveItems=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%270AKZcEIRXhQ-rUk9PVA%27+in+parents%29+and+%28name%3D%27qvl_input%27%29+and+mimeType%3D%27application%2Fvnd.google-apps.folder%27&supportsTeamDrives=true&teamDriveId=: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}

That's a very old version. Please download the latest version from https://rclone.org/downloads/ and try again.

Hi All
I am trying to list a team drive but not happening and my config file has below entries. Does this mean my refresh token has expired or I do not have sufficient permission on the team drive. Please help to understand. How can I check it. Do I need to create a fresh remote

[teamdrive_remote]
type = drive
scope = drive
token = {"access_token":blah-blah","token_type":"Bearer","refresh_token":"blah","expiry":"2020-10-22T23:29:59.19511909Z"}
team_drive = blah-blah

You'd need to update your version and provide a new log.

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