Problem statement:
I have been unable to copy files from a local drive to Proton Drive and the errors its throwing make very little sense to me.
I have attempted to strip back what I’m trying to upload to only a single directory called “TEST” that contains a single text file and subdirectory that also contains a single text file, as shown below:
sas***@******:/mnt/wwn-0x50014ee26c4de49d-part1/Contents/TEST$ tree
.
├── TestFile.txt
└── Test Subdirectory
└── TestsubFile.txt
The files are not empty and are just a couple words of plain text.
When I attempt to copy the /TEST/ top directory to Proton Drive, it seems to copy directories without issue, but neither of the test-text files get copied and a bunch of errors are thrown (shown below in the log). When I click on the error link seemingly provided by Proton, it yields the error below:
{"Code":5002,"Error":"Missing x-pm-appversion header","Details":{}}
I am new to rclone so I am hoping that this is some simple authentication issue I overlooked but then why would it properly copy the directories.
rclone version output:
rclone v1.73.3
- os/version: debian 13.4 (64 bit)
- os/kernel: 6.12.74+deb13+1-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.8
- go/linking: static
- go/tags: none
Cloud storage system: Proton Drive
Command I’m trying to run:
rclone copy /mnt/wwn-0x50014ee26c4de49d-part1/Contents/TEST/ ProtonDrive:/TEST/ --protondrive-replace-existing-draft=true -vv
rclone config redacted output:
[ProtonDrive]
type = protondrive
username = sash******
password = XXX
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX
A log from the command:
2026/03/23 23:36:12 DEBUG : rclone: Version "v1.73.3" starting with parameters ["rclone" "copy" "/mnt/wwn-0x50014ee26c4de49d-part1/Contents/TEST/" "ProtonDrive:/TEST/" "--protondrive-replace-existing-draft=true" "-vv"]
2026/03/23 23:36:12 DEBUG : Creating backend with remote "/mnt/wwn-0x50014ee26c4de49d-part1/Contents/TEST/"
2026/03/23 23:36:12 DEBUG : Using config file from "/home/sashurc/.config/rclone/rclone.conf"
2026/03/23 23:36:12 DEBUG : fs cache: renaming cache item "/mnt/wwn-0x50014ee26c4de49d-part1/Contents/TEST/" to be canonical "/mnt/wwn-0x50014ee26c4de49d-part1/Contents/TEST"
2026/03/23 23:36:12 DEBUG : Creating backend with remote "ProtonDrive:/TEST/"
2026/03/23 23:36:12 DEBUG : ProtonDrive: detected overridden config - adding "{kpshc}" suffix to name
2026/03/23 23:36:12 DEBUG : proton drive root link ID 'TEST': Has cached credentials
2026/03/23 23:36:13 DEBUG : proton drive root link ID 'TEST': Used cached credential to initialize the ProtonDrive API
2026/03/23 23:36:14 DEBUG : fs cache: renaming cache item "ProtonDrive:/TEST/" to be canonical "ProtonDrive{kpshc}:TEST"
2026/03/23 23:36:15 DEBUG : TestFile.txt: Need to transfer - File not found at Destination
2026/03/23 23:36:15 DEBUG : Test Subdirectory/TestsubFile.txt: Need to transfer - File not found at Destination
2026/03/23 23:36:15 DEBUG : proton drive root link ID 'TEST': Waiting for checks to finish
2026/03/23 23:36:15 DEBUG : proton drive root link ID 'TEST': Waiting for transfers to finish
2026/03/23 23:36:16.699025 WARN RESTY 422 POST https://fra-storage.proton.me/storage/blocks: Operation failed: Please retry (Code=200501, Status=422), Attempt 1
2026/03/23 23:36:16.699091 ERROR RESTY 422 POST https://fra-storage.proton.me/storage/blocks: Operation failed: Please retry (Code=200501, Status=422)
2026/03/23 23:36:16 ERROR : TestFile.txt: Failed to copy: 422 POST https://fra-storage.proton.me/storage/blocks: Operation failed: Please retry (Code=200501, Status=422)
2026/03/23 23:36:16.850722 WARN RESTY 422 POST https://fra-storage.proton.me/storage/blocks: Operation failed: Please retry (Code=200501, Status=422), Attempt 1
2026/03/23 23:36:16.850762 ERROR RESTY 422 POST https://fra-storage.proton.me/storage/blocks: Operation failed: Please retry (Code=200501, Status=422)
2026/03/23 23:36:16 ERROR : Test Subdirectory/TestsubFile.txt: Failed to copy: 422 POST https://fra-storage.proton.me/storage/blocks: Operation failed: Please retry (Code=200501, Status=422)
2026/03/23 23:36:16 ERROR : Attempt 1/3 failed with 2 errors and: 422 POST https://fra-storage.proton.me/storage/blocks: Operation failed: Please retry (Code=200501, Status=422)
2026/03/23 23:36:17 DEBUG : TestFile.txt: Need to transfer - File not found at Destination
2026/03/23 23:36:17 DEBUG : Test Subdirectory/TestsubFile.txt: Need to transfer - File not found at Destination
2026/03/23 23:36:17 DEBUG : proton drive root link ID 'TEST': Waiting for checks to finish
2026/03/23 23:36:17 DEBUG : proton drive root link ID 'TEST': Waiting for transfers to finish
2026/03/23 23:36:17.876194 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2026/03/23 23:36:17.876239 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422)
2026/03/23 23:36:18.186419 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2026/03/23 23:36:18.186463 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422)
2026/03/23 23:36:18.918591 WARN RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/84NzYTCd-A280Kx6FoUob9YyKaVK_DuL-PiTIDuCCO6fExGEf2zNQdfJ-uf9vGKX9sfop5oDvwRMTIRJ0Oe_dQ==/revisions: File or folder not found (Code=2501, Status=422), Attempt 1
2026/03/23 23:36:18.918637 ERROR RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/84NzYTCd-A280Kx6FoUob9YyKaVK_DuL-PiTIDuCCO6fExGEf2zNQdfJ-uf9vGKX9sfop5oDvwRMTIRJ0Oe_dQ==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:18 ERROR : TestFile.txt: Failed to copy: 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/84NzYTCd-A280Kx6FoUob9YyKaVK_DuL-PiTIDuCCO6fExGEf2zNQdfJ-uf9vGKX9sfop5oDvwRMTIRJ0Oe_dQ==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:19.196000 WARN RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422), Attempt 1
2026/03/23 23:36:19.196040 ERROR RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:19 ERROR : Test Subdirectory/TestsubFile.txt: Failed to copy: 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:19 ERROR : Attempt 2/3 failed with 2 errors and: 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:19 DEBUG : TestFile.txt: Need to transfer - File not found at Destination
2026/03/23 23:36:20 DEBUG : Test Subdirectory/TestsubFile.txt: Need to transfer - File not found at Destination
2026/03/23 23:36:20 DEBUG : proton drive root link ID 'TEST': Waiting for checks to finish
2026/03/23 23:36:20 DEBUG : proton drive root link ID 'TEST': Waiting for transfers to finish
2026/03/23 23:36:20.525604 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2026/03/23 23:36:20.525648 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422)
2026/03/23 23:36:20.767067 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2026/03/23 23:36:20.767111 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files: A file or folder with that name already exists (Code=2500, Status=422)
2026/03/23 23:36:21.534671 WARN RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/84NzYTCd-A280Kx6FoUob9YyKaVK_DuL-PiTIDuCCO6fExGEf2zNQdfJ-uf9vGKX9sfop5oDvwRMTIRJ0Oe_dQ==/revisions: File or folder not found (Code=2501, Status=422), Attempt 1
2026/03/23 23:36:21.534721 ERROR RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/84NzYTCd-A280Kx6FoUob9YyKaVK_DuL-PiTIDuCCO6fExGEf2zNQdfJ-uf9vGKX9sfop5oDvwRMTIRJ0Oe_dQ==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:21 ERROR : TestFile.txt: Failed to copy: 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/84NzYTCd-A280Kx6FoUob9YyKaVK_DuL-PiTIDuCCO6fExGEf2zNQdfJ-uf9vGKX9sfop5oDvwRMTIRJ0Oe_dQ==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:21.747909 WARN RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422), Attempt 1
2026/03/23 23:36:21.747964 ERROR RESTY 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:21 ERROR : Test Subdirectory/TestsubFile.txt: Failed to copy: 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:21 ERROR : Attempt 3/3 failed with 2 errors and: 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422)
2026/03/23 23:36:21 INFO :
Transferred: 32 B / 32 B, 100%, 6 B/s, ETA 0s
Errors: 2 (retrying may help)
Checks: 0 / 0, -, Listed 14
Elapsed time: 6.9s
2026/03/23 23:36:21 DEBUG : 8 go routines active
2026/03/23 23:36:21 NOTICE: Failed to copy with 2 errors: last error was: 422 GET https://mail.proton.me/api/drive/shares/_BMvHnaMhgN0HX4u2xbhJu9kDEodYfRtSSrHjdQbSFfFpwK7IswoOvn3DK0P5zvpEqAttCWqFNDM6SLsn8yWXw==/files/biyTVu0j5odMhLGvLKB-BJ879aZYbP1alABcJuH9NVaxwWq40VWSF1AVk-fnAsAXJyJ6mTCosnz6uVcivJRYWw==/revisions: File or folder not found (Code=2501, Status=422)
The fact that I am getting both “A file or folder with that name already exists” and “File or folder not found” for seemingly the same file is bizarre to me, but maybe I am just reading the logs wrong.
Any and all help with understanding this issue would be massively appreciated as using the Proton drive web app has been getting very tedious.
All the best and thank you,
S