What is the problem you are having with rclone?
There is no refresh token in my rclone.conf file. So after a time, access token expires and I get Token Expire error.
Run the command 'rclone version' and share the full output of the command.
rclone v1.59.1
- os/version: Microsoft Windows 10 Pro 21H2 (64 bit)
- os/kernel: 10.0.19044.2006 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.18.5
- go/linking: static
- go/tags: cmount
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 --progress "Repository" [LOCAL_FOLDER]
The rclone config contents with secrets removed.
[Infracidades]
type = drive
client_id = XXX
client_secret = xxx
scope = drive.readonly
token = {"access_token":"TOKEN","token_type":"Bearer","expiry":"2022-09-16T09:12:35.3828141-03:00"}
team_drive = DRIVE_ID
root_folder_id =
A log from the command with the -vv
flag
rclone sync --progress "Infracidades:/" a -vv
2022/09/16 12:04:19 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "sync" "--progress" "Infracidades:/" "a" "-vv"]
2022/09/16 12:04:19 DEBUG : Creating backend with remote "Infracidades:/"
2022/09/16 12:04:19 DEBUG : Using config file from "G:\Downloads\Apagar\rclone\rclone.conf"
2022/09/16 12:04:19 DEBUG : fs cache: renaming cache item "Infracidades:/" to be canonical "Infracidades:"
2022/09/16 12:04:19 DEBUG : Creating backend with remote "a"
2022/09/16 12:04:19 DEBUG : fs cache: renaming cache item "a" to be canonical "//?/G:/Downloads/Apagar/rclone/a"
2022-09-16 12:04:19 DEBUG : Infracidades: Loaded invalid token from config file - ignoring
2022-09-16 12:04:19 ERROR : Google drive root '': error reading source root directory: couldn't list directory: Get "https://www.googleapis.com/drive/v3/files?alt=json&corpora=drive&driveId=0AEcWAsZ9s3LgUk9PVA&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%2CresourceKey)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0AEcWAsZ9s3LgUk9PVA'+in+parents)&supportsAllDrives=true": token expired and there's no refresh token - manually refresh with "rclone config reconnect Infracidades:"
2022-09-16 12:04:19 ERROR : Cancelling sync due to fatal error: couldn't list directory: Get "https://www.googleapis.com/drive/v3/files?alt=json&corpora=drive&driveId=0AEcWAsZ9s3LgUk9PVA&fields=files(id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%2CresourceKey)%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+('0AEcWAsZ9s3LgUk9PVA'+in+parents)&supportsAllDrives=true": token expired and there's no refresh token - manually refresh with "rclone config reconnect Infracidades:"
2022-09-16 12:04:19 DEBUG : Local file system at //?/G:/Downloads/Apagar/rclone/a: Waiting for checks to finish
2022-09-16 12:04:19 DEBUG : Local file system at //?/G:/Downloads/Apagar/rclone/a: Waiting for transfers to finish
2022-09-16 12:04:19 ERROR : Local file system at //?/G:/Downloads/Apagar/rclone/a: not deleting files as there were IO errors
2022-09-16 12:04:19 ERROR : Local file system at //?/G:/Downloads/Apagar/rclone/a: not deleting directories as there were IO errors
2022-09-16 12:04:19 ERROR : Fatal error received - not attempting retries
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (fatal error encountered)
Elapsed time: 0.1s
2022/09/16 12:04:19 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (fatal error encountered)
Elapsed time: 0.1s