What is the problem you are having with rclone?
I have set up a ProtonDrive remote with a password (and a second factor, but I don't think it is relevant here). In the config process, I pasted the password Áf@É´.å4¹Tª6}ï>o"\TL
generated by my password manager, which then produces the following error:
$ rclone lsd MyProtonRemote:
2023/11/07 10:25:40.429633 ERROR RESTY 401 GET https://mail.proton.me/api/core/v4/users: Invalid access token (Code=401, Status=401), Attempt 1
2023/11/07 10:25:40.556197 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4/refresh: Invalid refresh token (Code=10013, Status=422), Attempt 1
2023/11/07 10:25:42.134211 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4: The password is not correct. Please try again with a different password. (Code=8002, Status=422), Attempt 1:
Failed to create file system for "MyProtonRemote:": couldn't initialize a new proton drive instance: 422 POST https://mail.proton.me/api/auth/v4: The password is not correct. Please try again with a different password. (Code=8002, Status=422)
When editing the remote and updating the password with something containing only letters and digits (and updating the password in my Proton account, of course), the connection is accepted without error.
Run the command 'rclone version' and share the full output of the command.
$ rclone version
rclone v1.64.0
- os/version: debian kali-rolling (64 bit)
- os/kernel: 6.5.0-kali3-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.1
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
ProtonDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
$ rclone lsd MyProtonRemote:
The rclone config contents with secrets removed.
Please note I have willingly disclosed the password hash below, so that someone might compare the theoretical hash of the password Áf@É´.å4¹Tª6}ï>o"\TL
with the actual one.
[MyProtonRemote]
type = protondrive
username = XXX
password = 7bh4ow42gEFwKdXlL3kqR9AkicZ9jN5tqzi75HjlcicVRcYJpI70PnSe
2fa = XXXXXX
client_uid =
client_access_token =
client_refresh_token =
client_salted_key_pass =
A log from the command with the -vv
flag
Please note that following my tests, Rclone has cached credentials with a password containing only bare latin letters and digits, which was working. So when reverting to the faulty password to produce the log below, it seems Rclone first tried the cached tokens/credentials, with has produced additional DEBUG logs that, I believe, may be ignored.
$ rclone lsd MyProtonRemote: -vv
<7>DEBUG : rclone: Version "v1.64.0" starting with parameters ["rclone" "lsd" "MyProtonRemote:" "-vv"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "MyProtonRemote:"
<7>DEBUG : Using config file from "/home/fred/.config/rclone/rclone.conf"
<7>DEBUG : proton drive root link ID '': Has cached credentials
2023/11/07 11:42:12.365736 ERROR RESTY 401 GET https://mail.proton.me/api/core/v4/users: Invalid access token (Code=401, Status=401), Attempt 1
2023/11/07 11:42:12.523031 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4/refresh: Invalid refresh token (Code=10013, Status=422), Attempt 1
<7>DEBUG : Saving config "client_uid" in section "MyProtonRemote" of the config file
<7>DEBUG : Saving config "client_access_token" in section "MyProtonRemote" of the config file
<7>DEBUG : Saving config "client_refresh_token" in section "MyProtonRemote" of the config file
<7>DEBUG : Saving config "client_salted_key_pass" in section "MyProtonRemote" of the config file
<7>DEBUG : proton drive root link ID '': Cached credential doesn't work, clearing and using the fallback login method
<7>DEBUG : Saving config "client_uid" in section "MyProtonRemote" of the config file
<7>DEBUG : Saving config "client_access_token" in section "MyProtonRemote" of the config file
<7>DEBUG : Saving config "client_refresh_token" in section "MyProtonRemote" of the config file
<7>DEBUG : Saving config "client_salted_key_pass" in section "MyProtonRemote" of the config file
<7>DEBUG : proton drive root link ID '': couldn't initialize a new proton drive instance using cached credentials: failed to refresh auth: failed to refresh auth, de-auth: 422 POST https://mail.proton.me/api/auth/v4/refresh: Invalid refresh token (Code=10013, Status=422)
<7>DEBUG : proton drive root link ID '': Using username and password to log in
2023/11/07 11:42:14.090172 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4: The password is not correct. Please try again with a different password. (Code=8002, Status=422), Attempt 1
Failed to create file system for "MyProtonRemote:": couldn't initialize a new proton drive instance: 422 POST https://mail.proton.me/api/auth/v4: The password is not correct. Please try again with a different password. (Code=8002, Status=422)
Additional information
I am in an up-to-date Debian, and I use zsh in the terminal. When I paste the faulty password in the terminal it is displayed correctly.