Auth error, tried to reconnect gives same error, works on two other computers

What is the problem you are having with rclone?

IO error: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError

Run the command 'rclone version' and share the full output of the command.

rclone v1.60.1

  • os/version: Microsoft Windows 11 Pro 22H2 (64 bit)
  • os/kernel: 10.0.22621.963 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.19.3
  • 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)

Paste command here

The rclone config contents with secrets removed.

[gdrive]
type = drive
client_id = **
client_secret = **
scope = drive
root_folder_id = 0ABvlA8TWhsmNUk9PVA
token = {"access_token":"ya29.a0AX9GBdUYKi27Ghax4czc2nSQuQXs*****bM03bDm7rvZDBGp1IqRm9un1fLp0H4SRYsPP-IpgcS031M_lmW85A5SU2I7yzmC0F*****p4ulnaDQ7INPCM5cCxzr79neJ3_qNa5X-OfJSIvaCgYKAcMSARISFQHUCsbCpSx0kN_GyS4UV6wCW-omLA0163","token_type":"Bearer","refresh_token":"1//0dlnpcTjdw7obCgYIARAAGA0SNwF-L9IrdShfESqW6hPrPw*******39cSeL-PZc4AKtYCbtfRgBQtwog5ik","expiry":"2022-12-18T10:40:10.8034873-05:00"}
team_drive = 

[gcrypt]
type = crypt
remote = gdrive:/crypt
filename_encryption = standard
directory_name_encryption = true
password = ****
password2 = *****

A log from the command with the -vv flag

2022/12/18 09:41:45 ERROR : /: Dir.Stat error: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
2022/12/18 09:41:45 ERROR : IO error: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError
2022/12/18 09:41:45 ERROR : /: Dir.Stat error: couldn't list directory: googleapi: Error 401: Invalid Credentials, authError

hi,

with your web browser, try using a new private windows

i am sure you know, that you can simply copy the rclone.conf from the working computer to the non-working computer

can you run rclone config -vv, and post the entire output.

Here is the -vv command as requested:

C:\rclone>rclone config -vv
2022/12/18 10:23:38 DEBUG : rclone: Version "v1.60.1" starting with parameters ["rclone" "config" "-vv"]
2022/12/18 10:23:38 DEBUG : Using config file from "C:\rclone\rclone.conf"
Current remotes:

Name Type
==== ====
gcrypt crypt
gdrive drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

I'll try coping over the config file from the other computer but they looked identical before I did a refresh on the token with the reconnect command. This is so weird since it happened after a reboot, no idea what might have caused it.

woah copied over config file from other computer and it is now working on the older token, may be the config file got corrupted or something so bizarre. Thanks for the help!

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