What is the problem you are having with rclone?
Uploading files to a Proton Drive remote that contain content is no longer functional for me. This was working flawlessly a couple of days ago and still is for blank files. I am not aware that I have made any changes relevant to this issue.
I'm not sure if this is an issue on my side, if the API changed, or something entirely else. If someone could share their experience, I would appreciate it.
Things I've tried
I've tried on a different machine using Arch as well as using the beta version. I've disabled Proton Sentinel and disabled the version history. I've run the commands from different networks, and I can confirm that I can upload files (e.g., 0002.txt) via the web interface, though it does prompt me for a duplicate file.
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: ubuntu 23.10 (64 bit)
- os/kernel: 6.5.0-28-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: snap
Which cloud storage system are you using? (eg Google Drive)
Proton Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
A sequence of commands that reproduces the issue for me
$ touch 0001.txt
$ touch 0002.txt
$ vim 0002.txt
$ cat 0002.txt
This is a textfile
$ rclone copy 0001.txt proton:
$ rclone copy 0002.txt proton:
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[proton]
type = protondrive
username = XXX
password = XXX
2fa = XXX
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
2024/04/23 21:05:55 DEBUG : rclone: Version "v1.66.0" starting with parameters ["/snap/rclone/495/bin/rclone" "copy" "0002.txt" "proton:" "-vv"]
2024/04/23 21:05:55 DEBUG : Creating backend with remote "0002.txt"
2024/04/23 21:05:55 DEBUG : Using config file from "/home/user/snap/rclone/495/.config/rclone/rclone.conf"
2024/04/23 21:05:55 DEBUG : fs cache: adding new entry for parent of "0002.txt", "/home/user/Documents"
2024/04/23 21:05:55 DEBUG : Creating backend with remote "proton:"
2024/04/23 21:05:55 DEBUG : proton drive root link ID '': Has cached credentials
2024/04/23 21:05:57 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
2024/04/23 21:05:58 DEBUG : 0002.txt: Need to transfer - File not found at Destination
2024/04/23 21:05:58.941983 WARN RESTY 400 POST https://mail.proton.me/api/drive/blocks: You are using an outdated version of the app. Please update to upload this file’ (Code=2000, Status=400), Attempt 1
2024/04/23 21:05:58.942033 ERROR RESTY 400 POST https://mail.proton.me/api/drive/blocks: You are using an outdated version of the app. Please update to upload this file’ (Code=2000, Status=400)
2024/04/23 21:05:58 ERROR : 0002.txt: Failed to copy: 400 POST https://mail.proton.me/api/drive/blocks: You are using an outdated version of the app. Please update to upload this file’ (Code=2000, Status=400)
2024/04/23 21:05:58 ERROR : Attempt 1/3 failed with 1 errors and: 400 POST https://mail.proton.me/api/drive/blocks: You are using an outdated version of the app. Please update to upload this file’ (Code=2000, Status=400)
2024/04/23 21:05:59 DEBUG : 0002.txt: Need to transfer - File not found at Destination
2024/04/23 21:06:00.221545 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/.../files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2024/04/23 21:06:00.221588 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/.../files: A file or folder with that name already exists (Code=2500, Status=422)
2024/04/23 21:06:01 ERROR : 0002.txt: Failed to copy: a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt. Can use --protondrive-replace-existing-draft=true to temporarily override the existing draft
2024/04/23 21:06:01 ERROR : Attempt 2/3 failed with 1 errors and: a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt. Can use --protondrive-replace-existing-draft=true to temporarily override the existing draft
2024/04/23 21:06:02 DEBUG : 0002.txt: Need to transfer - File not found at Destination
2024/04/23 21:06:03.394869 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/.../files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2024/04/23 21:06:03.394909 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/.../files: A file or folder with that name already exists (Code=2500, Status=422)
2024/04/23 21:06:04 ERROR : 0002.txt: Failed to copy: a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt. Can use --protondrive-replace-existing-draft=true to temporarily override the existing draft
2024/04/23 21:06:04 ERROR : Attempt 3/3 failed with 1 errors and: a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt. Can use --protondrive-replace-existing-draft=true to temporarily override the existing draft
2024/04/23 21:06:04 INFO :
Transferred: 19 B / 19 B, 100%, 3 B/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 8.8s
2024/04/23 21:06:04 DEBUG : 6 go routines active
2024/04/23 21:06:04 Failed to copy: a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt. Can use --protondrive-replace-existing-draft=true to temporarily override the existing draft
Using the flag --protondrive-replace-existing-draft=true
changes the error message for the failed copy to:
2024/04/23 21:09:55 ERROR : 0002.txt: Failed to copy: 400 POST https://mail.proton.me/api/drive/blocks: You are using an outdated version of the app. Please update to upload this file’ (Code=2000, Status=400)