What is the problem you are having with rclone?
I get errors when attempting to upload a large file with the copyto
command to Proton Drive.
I tried a variety of files of different sizes, and the limit appears to be somewhere between 146MB and 778MB. Every file below that line worked, and every file above that line failed with strange errors.
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.0
- os/version: ubuntu 24.10 (64 bit)
- os/kernel: 6.11.0-14-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: static
- go/tags: none
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
)
rclone copyto ~/test.mp4 proton:folder1/test.mp4
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
[proton]
type = protondrive
username = XXX
password = XXX
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX
A log from the command that you were trying to run with the -vv
flag
Example of a file that is too large. (778MB)
$ rclone -vv copyto ~/test.mp4 proton:folder1/test.mp4
2025/02/02 18:42:00 DEBUG : rclone: Version "v1.69.0" starting with parameters ["rclone" "-vv" "copyto" "/home/ofer/test.mp4" "proton:folder1/test.mp4"]
2025/02/02 18:42:00 DEBUG : Creating backend with remote "/home/ofer/test.mp4"
2025/02/02 18:42:00 DEBUG : Using config file from "/home/ofer/.config/rclone/rclone.conf"
2025/02/02 18:42:00 DEBUG : fs cache: renaming child cache item "/home/ofer/test.mp4" to be canonical for parent "/home/ofer"
2025/02/02 18:42:00 DEBUG : Creating backend with remote "proton:folder1/"
2025/02/02 18:42:00 DEBUG : proton drive root link ID 'folder1': Has cached credentials
2025/02/02 18:42:03 DEBUG : proton drive root link ID 'folder1': Used cached credential to initialize the ProtonDrive API
2025/02/02 18:42:04 DEBUG : fs cache: renaming cache item "proton:folder1/" to be canonical "proton:folder1"
2025/02/02 18:42:05 DEBUG : test.mp4: Need to transfer - File not found at Destination
2025/02/02 18:42:26.402112 WARN RESTY Post "https://zrh-storage.proton.me/storage/blocks": write tcp 10.0.0.42:38286->176.119.200.8:443: use of closed network connection, Attempt 1
2025/02/02 18:42:27.190134 WARN RESTY 400 POST https://zrh-storage.proton.me/storage/blocks: Invalid content length (Code=2022, Status=400), Attempt 2
2025/02/02 18:42:27.190153 ERROR RESTY 400 POST https://zrh-storage.proton.me/storage/blocks: Invalid content length (Code=2022, Status=400)
2025/02/02 18:42:27 ERROR : test.mp4: Failed to copy: 400 POST https://zrh-storage.proton.me/storage/blocks: Invalid content length (Code=2022, Status=400)
2025/02/02 18:42:27 ERROR : Attempt 1/3 failed with 1 errors and: 400 POST https://zrh-storage.proton.me/storage/blocks: Invalid content length (Code=2022, Status=400)
2025/02/02 18:42:28 DEBUG : test.mp4: Need to transfer - File not found at Destination
2025/02/02 18:42:29.135524 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/Onfwuv4UNCR1FEbY1WZgYCv8r1u9tDWyUjTv6cw2z47hdJg85dDaKDVE-9als-ZB5p1cYckKb1KiTDornkJxVw==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2025/02/02 18:42:29.135543 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/Onfwuv4UNCR1FEbY1WZgYCv8r1u9tDWyUjTv6cw2z47hdJg85dDaKDVE-9als-ZB5p1cYckKb1KiTDornkJxVw==/files: A file or folder with that name already exists (Code=2500, Status=422)
2025/02/02 18:42:30 ERROR : test.mp4: 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
2025/02/02 18:42:30 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
2025/02/02 18:42:31 DEBUG : test.mp4: Need to transfer - File not found at Destination
2025/02/02 18:42:33.148718 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/Onfwuv4UNCR1FEbY1WZgYCv8r1u9tDWyUjTv6cw2z47hdJg85dDaKDVE-9als-ZB5p1cYckKb1KiTDornkJxVw==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2025/02/02 18:42:33.148734 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/Onfwuv4UNCR1FEbY1WZgYCv8r1u9tDWyUjTv6cw2z47hdJg85dDaKDVE-9als-ZB5p1cYckKb1KiTDornkJxVw==/files: A file or folder with that name already exists (Code=2500, Status=422)
2025/02/02 18:42:35 ERROR : test.mp4: 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
2025/02/02 18:42:35 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
2025/02/02 18:42:35 INFO :
Transferred: 64 MiB / 64 MiB, 100%, 1.729 MiB/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 29.7s
2025/02/02 18:42:35 DEBUG : 25 go routines active
2025/02/02 18:42:35 NOTICE: Failed to copyto: 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
A log from the command that you were trying to run with the -vv
flag
Example of a file that is NOT too large. (146MB)
$ rclone -vv copyto ~/test.csv proton:folder1/test.csv
2025/02/02 18:44:31 DEBUG : rclone: Version "v1.69.0" starting with parameters ["rclone" "-vv" "copyto" "/home/ofer/test.csv" "proton:folder1/test.csv"]
2025/02/02 18:44:31 DEBUG : Creating backend with remote "/home/ofer/test.csv"
2025/02/02 18:44:31 DEBUG : Using config file from "/home/ofer/.config/rclone/rclone.conf"
2025/02/02 18:44:31 DEBUG : fs cache: renaming child cache item "/home/ofer/test.csv" to be canonical for parent "/home/ofer"
2025/02/02 18:44:31 DEBUG : Creating backend with remote "proton:folder1/"
2025/02/02 18:44:31 DEBUG : proton drive root link ID 'folder1': Has cached credentials
2025/02/02 18:44:33 DEBUG : proton drive root link ID 'folder1': Used cached credential to initialize the ProtonDrive API
2025/02/02 18:44:34 DEBUG : fs cache: renaming cache item "proton:folder1/" to be canonical "proton:folder1"
2025/02/02 18:44:35 DEBUG : test.csv: Need to transfer - File not found at Destination
2025/02/02 18:45:34 INFO :
Transferred: 96 MiB / 145.400 MiB, 66%, 859.022 KiB/s, ETA 58s
Transferred: 0 / 1, 0%
Elapsed time: 59.4s
Transferring:
* test.csv: 66% /145.400Mi, 859.011Ki/s, 58s
2025/02/02 18:46:05 DEBUG : test.csv: sha1 = 18036cf4c0089ba7f68d9bf54b5c82674b1526d3 OK
2025/02/02 18:46:05 INFO : test.csv: Copied (new)
2025/02/02 18:46:05 INFO :
Transferred: 145.400 MiB / 145.400 MiB, 100%, 1015.332 KiB/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 1m30.5s
2025/02/02 18:46:05 DEBUG : 9 go routines active
FYI:
$ ls -lh ~/
...
-rw-rw-r-- 1 ofer ofer 146M Feb 2 18:41 test.csv
-rw-rw-r-- 1 ofer ofer 778M Feb 2 18:40 test.mp4
...