GOOGLE DRIVE error": "invalid_grant"

What is the problem you are having with rclone?

Failed to sync: couldn't list directory: Get "<>": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect ID:": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}

What is your rclone version (output from rclone version)

rclone v1.53.0

  • os/arch: linux/amd64
  • go version: go1.15

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

Debian 4.9.246-2 (2020-12-17) x86_64 GNU/Linux
Debian GNU/Linux 9 (stretch)"

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 sync --drive-acknowledge-abuse --progress user1: /home/users/user1/

The rclone config contents with secrets removed.

type = drive
scope = drive
token = {"access_token":REMOVED,"token_type":"Bearer","refresh_token":REMOVED,"expiry":"2020-12-12T18:13:06.795874356-03:00"}
team_drive = REMOVED
root_folder_id = 

A log from the command with the -vv flag

rclone sync -vv --drive-acknowledge-abuse --progress user1: /home/user/user1/
2021/03/18 17:33:07 DEBUG : rclone: Version "v1.53.0" starting with parameters ["rclone" "sync" "-vv" "--drive-acknowledge-abuse" "--progress" "REMOVED:" "REMOVED"]
2021/03/18 17:33:07 DEBUG : Using config file from "/root/.rclone.conf"
2021/03/18 17:33:07 DEBUG : Creating backend with remote "REMOVED:"
2021/03/18 17:33:07 DEBUG : Creating backend with remote "REMOVED"
2021-03-18 17:33:07 DEBUG : REMOVED: Loaded invalid token from config file - ignoring
2021-03-18 17:33:07 DEBUG : REMOVED: Token refresh failed try 1/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2021-03-18 17:33:08 DEBUG : REMOVED: Loaded invalid token from config file - ignoring
2021-03-18 17:33:08 DEBUG : REMOVED: Token refresh failed try 2/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2021-03-18 17:33:09 DEBUG : REMOVED: Loaded invalid token from config file - ignoring
2021-03-18 17:33:10 DEBUG : REMOVED: Token refresh failed try 3/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2021-03-18 17:33:11 DEBUG : REMOVED: Loaded invalid token from config file - ignoring
2021-03-18 17:33:11 DEBUG : REMOVED: Token refresh failed try 4/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2021-03-18 17:33:12 DEBUG : REMOVED: Loaded invalid token from config file - ignoring
2021-03-18 17:33:12 DEBUG : REMOVED: Token refresh failed try 5/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}

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