Captcha, Failed to create file system for "proton:"

$ ./rclone version
rclone v1.65.0
- os/version: gentoo 2.14 (64 bit)
- os/kernel: 6.1.57-gentoo (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.4
- go/linking: static
- go/tags: none

Proton Drive

$ ~/rclone/rclone --protondrive-2fa=372327 copy ./test.txt proton:

$ ./rclone config redacted
[proton]
type = protondrive
username = me
password = XXX
2fa = 372327
client_uid =
client_access_token =
client_refresh_token =
client_salted_key_pass =

Which results in what appears to be a capcha?

$ ~/rclone/rclone ls proton:
2023/12/07 21:27:56.652436 WARN RESTY 401 GET https://mail.proton.me/api/core/v4/users: Invalid access token (Code=401, Status=401), Attempt 1
2023/12/07 21:27:56.652488 ERROR RESTY 401 GET https://mail.proton.me/api/core/v4/users: Invalid access token (Code=401, Status=401)
2023/12/07 21:27:57.082482 WARN RESTY 422 POST https://mail.proton.me/api/auth/v4/refresh: Invalid refresh token (Code=10013, Status=422), Attempt 1
2023/12/07 21:27:57.082502 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4/refresh: Invalid refresh token (Code=10013, Status=422)
2023/12/07 21:27:59.712039 WARN RESTY 422 POST https://mail.proton.me/api/auth/v4: For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/abuse (Code=9001, Status=422), Attempt 1
2023/12/07 21:27:59.712057 ERROR RESTY 422 POST https://mail.proton.me/api/auth/v4: For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/abuse (Code=9001, Status=422)
2023/12/07 21:27:59 Failed to create file system for "proton:": couldn't initialize a new proton drive instance: 422 POST https://mail.proton.me/api/auth/v4: For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/abuse (Code=9001, Status=422)

Thoughts?

welcome to the forum,

perhaps, perchance, maybe
The Proton Drive encryption keys need to have been already generated after a regular login via the browser, otherwise attempting to use the credentials in rclone will fail.

maybe proton does not like your public ip address?
with a web browser, can you login to the website using that ip?

I am logged into my proton account in Firefox. Do I need to enable something in my account to generate these encryption keys?

not sure, maybe in the browser, log out, clear cookies for proton website(s), log back in.
then try rclone again.

here is my config, notice that difference

config value
mine client_access_token = XXX
yours client_access_token =

rclone config redacted proton01:
[proton01]
type = protondrive
username = me
password = XXX
2fa = 08756bf5
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX

Where did you get your client_access_token from? According to

https://rclone.org/protondrive/

It's listed as (internal use only).

Properties:

    Config: client_access_token
    Env Var: RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN
    Type: string
    Required: false

My understanding is that gets filled in upon a successful connect.

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