What is the problem you are having with rclone?
Getting the following error:
2021/01/27 10:33:22 Failed to sync: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
I thought I had fixed it by creating new Credentials in the Google Drive API Console but a week later it comes back.
The only thing that stands out is this:
{"access_token":"access_token","token_type":"Bearer","refresh_token":"1//refresh_token","expiry":"0001-01-01T00:00:00Z"}
How come the expiry is not a future date? The date is correct on my server.
Any help would be appreciated!
What is your rclone version (output from rclone version
)
rclone v1.53.3
- os/arch: linux/amd64
- go version: go1.15.5
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Debian Buster
Linux server.home.lan 5.4.78-2-pve #1 SMP PVE 5.4.78-2 (Thu, 03 Dec 2020 14:26:17 +0100) x86_64 GNU/Linux
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 --max-age=25h --tpslimit=3 --transfers=3 --checkers=3 --drive-chunk-size=512M --backup-dir=encrypted_daily:rlcone_trash/`date +"%Y-%m-%d-%T"` /mnt/volume2/data/ encrypted_daily:/data/
The rclone config contents with secrets removed.
[gdrive]
type = drive
client_id = client_id.apps.googleusercontent.com
client_secret = secret
scope = drive
token = {"access_token":"access_token","token_type":"Bearer","refresh_token":"1//refresh_token","expiry":"0001-01-01T00:00:00Z"}
root_folder_id = 0AMeNMJVetPmSUk9PVA
[encrypted_daily]
type = crypt
remote = gdrive:encrypted_daily
filename_encryption = standard
directory_name_encryption = true
password = passworf
password2 = password2
A log from the command with the -vv
flag
root@server:~# rclone sync --progress --max-age=25h --tpslimit=3 --transfers=3 --checkers=3 --drive-chunk-size=512M --backup-dir=encrypted_daily:rlcone_trash/`date +"%Y-%m-%d-%T"` /mnt/volume2/data/ encrypted_daily:/data/ -vv
2021/01/27 11:07:10 DEBUG : --max-age 1.0416666666666667d to 2021-01-26 10:07:10.992540646 -0700 MST m=-89999.972020307
2021/01/27 11:07:10 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "sync" "--progress" "--max-age=25h" "--tpslimit=3" "--transfers=3" "--checkers=3" "--drive-chunk-size=512M" "--backup-dir=encrypted_daily:rlcone_trash/2021-01-27-11:07:10" "/mnt/volume2/data/" "encrypted_daily:/data/" "-vv"]
2021/01/27 11:07:10 DEBUG : Creating backend with remote "/mnt/volume2/data/"
2021/01/27 11:07:10 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/01/27 11:07:10 INFO : Starting HTTP transaction limiter: max 3 transactions/s with burst 1
2021/01/27 11:07:10 DEBUG : Creating backend with remote "encrypted_daily:/data/"
2021/01/27 11:07:11 DEBUG : Creating backend with remote "gdrive:encrypted_daily/h0ck5ac0nfad6poklaqiebi01s"
2021-01-27 11:07:11 DEBUG : Creating backend with remote "encrypted_daily:rlcone_trash/2021-01-27-11:07:10"
2021-01-27 11:07:11 DEBUG : Creating backend with remote "gdrive:encrypted_daily/mescolv4avjnc57lhke1neiqrg/sbsea1liqgaofvv8cvtm10qrbnpemo72ka73meord94pqipohs8g"
2021-01-27 11:07:12 DEBUG : vzdump-qemu-100-2020_07_03-17_20_59.vma.gz: Excluded
2021-01-27 11:07:12 ERROR : : error reading destination directory: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
2021-01-27 11:07:12 DEBUG : Encrypted drive 'encrypted_daily:/data/': Waiting for checks to finish
2021-01-27 11:07:12 DEBUG : Encrypted drive 'encrypted_daily:/data/': Waiting for transfers to finish
2021-01-27 11:07:12 ERROR : Encrypted drive 'encrypted_daily:/data/': not deleting files as there were IO errors
2021-01-27 11:07:12 ERROR : Encrypted drive 'encrypted_daily:/data/': not deleting directories as there were IO errors
2021-01-27 11:07:12 INFO : There was nothing to transfer
2021-01-27 11:07:12 ERROR : Attempt 1/3 failed with 1 errors and: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
2021-01-27 11:07:12 DEBUG : vzdump-qemu-100-2020_07_03-17_20_59.vma.gz: Excluded
2021-01-27 11:07:12 ERROR : : error reading destination directory: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
2021-01-27 11:07:12 DEBUG : Encrypted drive 'encrypted_daily:/data/': Waiting for checks to finish
2021-01-27 11:07:12 DEBUG : Encrypted drive 'encrypted_daily:/data/': Waiting for transfers to finish
2021-01-27 11:07:12 ERROR : Encrypted drive 'encrypted_daily:/data/': not deleting files as there were IO errors
2021-01-27 11:07:12 ERROR : Encrypted drive 'encrypted_daily:/data/': not deleting directories as there were IO errors
2021-01-27 11:07:12 INFO : There was nothing to transfer
2021-01-27 11:07:12 ERROR : Attempt 2/3 failed with 1 errors and: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
2021-01-27 11:07:12 DEBUG : vzdump-qemu-100-2020_07_03-17_20_59.vma.gz: Excluded
2021-01-27 11:07:13 ERROR : : error reading destination directory: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
2021-01-27 11:07:13 DEBUG : Encrypted drive 'encrypted_daily:/data/': Waiting for checks to finish
2021-01-27 11:07:13 DEBUG : Encrypted drive 'encrypted_daily:/data/': Waiting for transfers to finish
2021-01-27 11:07:13 ERROR : Encrypted drive 'encrypted_daily:/data/': not deleting files as there were IO errors
2021-01-27 11:07:13 ERROR : Encrypted drive 'encrypted_daily:/data/': not deleting directories as there were IO errors
2021-01-27 11:07:13 INFO : There was nothing to transfer
2021-01-27 11:07:13 ERROR : Attempt 3/3 failed with 1 errors and: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 2.3s
2021/01/27 11:07:13 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 2.3s
2021/01/27 11:07:13 DEBUG : 6 go routines active
2021/01/27 11:07:13 Failed to sync: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
root@server:~#