Repository navigation
Closed
Description
The associated forum post URL from https://forum.rclone.org
What is the problem you are having with rclone?
The moveto command doesn't work with protondrive.
This also breaks rclone sync with --backup-dir flag
I didn't make the forum post above but it indicates that it has worked in the past.
What is your rclone version (output from rclone version)
rclone v1.69.1
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-57-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
rclone moveto proton:testfile proton:testfile2
A log from the command with the -vv flag
The error in Swedish "Värdet kan inte vara tomt" means "The value/argument can not be empty"
I'm going to cut out some of the logs because I don't know if the long strings of letters/numbers contain anything sensitive. Those strings are replaced with <cut>
2025/04/15 21:50:12 DEBUG : Creating backend with remote "proton:testfile"
2025/04/15 21:50:12 DEBUG : Using config file from "/home/anton/.config/rclone/rclone.conf"
2025/04/15 21:50:12 DEBUG : proton drive root link ID 'testfile': Has cached credentials
2025/04/15 21:50:14 DEBUG : proton drive root link ID 'testfile': Used cached credential to initialize the ProtonDrive API
2025/04/15 21:50:15 DEBUG : fs cache: renaming child cache item "proton:testfile" to be canonical for parent "proton:"
2025/04/15 21:50:16 DEBUG : testfile: Need to transfer - File not found at Destination
2025/04/15 21:50:17.513754 WARN RESTY 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400), Attempt 1
2025/04/15 21:50:17.513815 ERROR RESTY 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:17 ERROR : testfile: Couldn't move: 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:17 ERROR : Attempt 1/3 failed with 1 errors and: 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:18 DEBUG : testfile: Need to transfer - File not found at Destination
2025/04/15 21:50:18.933736 WARN RESTY 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400), Attempt 1
2025/04/15 21:50:18.933804 ERROR RESTY 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:18 ERROR : testfile: Couldn't move: 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:18 ERROR : Attempt 2/3 failed with 1 errors and: 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:19 DEBUG : testfile: Need to transfer - File not found at Destination
2025/04/15 21:50:20.508512 WARN RESTY 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400), Attempt 1
2025/04/15 21:50:20.508563 ERROR RESTY 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:20 ERROR : testfile: Couldn't move: 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:20 ERROR : Attempt 3/3 failed with 1 errors and: 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
2025/04/15 21:50:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 3.6s
2025/04/15 21:50:20 DEBUG : 5 go routines active
2025/04/15 21:50:20 NOTICE: Failed to moveto: 400 PUT https://mail.proton.me/api/drive/shares/<cut>/links/<cut>/move: Värdet kan inte vara tomt. (Code=2000, Status=400)
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Reacted by Andrew Aladjev, Petros Stefanou, tequilaj-gh, tadashi-saito-0 and Simone Perriello
Reacted by Andrew Aladjev
Metadata
Metadata
Assignees
Labels
No labels
Activity
andrew-aladjev commentedon Apr 21, 2025
Hello, I've investigated this case.
rclonedepends onhenrybear327/Proton-API-Bridgeandhenrybear327/go-proton-api.henrybear327/go-proton-apiis a fork of officialProtonMail/go-proton-api. The diff includesMoveLinkfunction:Meanwhile, there is no documentation or knowledge about the
/drive/shares/:shareID/links/:linkID/moverequest. We need to cast @henrybear327 and ask him what we need to do with this issue. Hello @henrybear327, we have an issue inMoveLinkfunction. Do you know what we need to do?onnd commentedon Apr 23, 2025
I've done some testing on my own on this, and compared it with the Proton app here: https://github.com/ProtonDriveApps/windows-drive and I have managed to get it working.
It involves changes in @henrybear327's
go-proton-apiandProton-API-Brige. Not sure how to proceed, ideally he should be involved.In
go-proton-api/link_file_types.goin theMoveLinkReqstruct I commented outNodePassphraseSignatureandSignatureAddress. If you look here: https://github.com/ProtonDriveApps/windows-drive/blob/main/src/ProtonDrive.Client/MoveLinkParameters.cs they are one needed for "anonymously created nodes". Whatever that is. They should probably be added only conditionally.Also:
SignatureAddressshould be calledSignatureEmail.In the same file
go-proton-api/link_file_types.goI also needed to add aNameSignatureEmailvariable, inspired by the same file above.The corresponding changes are also needed in
Proton-API-Bridgein thefolder.gofile:in the
moveLinkfunction:Rename
SignatureAddresstoSignatureEmailand comment it out.Add
NameSignatureEmail: protonDrive.signatureAddressunderneath,Comment out
req.NodePassphraseSignature = srcLink.NodePassphraseSignatureI would be glad to create PR:s in @henrybear327's repos but I think there should be some logic added for the "anonymously created nodes" case and I'm hoping someone/he can help with that. Also I don't know which branch to make a PR against, and to make it work they need to be released with the changes and rclone needs to pull in the new versions.
traktuner commentedon May 27, 2025
It’s outstanding what @henrybear327 has done to make this remote work, but I think he is currently overwhelmed with other projects. A PR (#8344) to bump the Proton-API-Bridge version was created earlier this year, and since then, nothing has happened.
Perhaps the specific repositories, Proton-API-Bridge and go-proton-api, could be transferred to the rclone organization. That way, more people would be able to help maintain these forks, @ncw . (There are already four PRs waiting to be reviewed and merged on @henrybear327's side.)
ncw commentedon May 28, 2025
Unfortunately I can't merge that PR as-is.
I did talk about that with @henrybear327 and I think he was amenable to the idea. I'll see if I can dig up the email thread...
traktuner commentedon Jul 10, 2025
@ncw Proton is releasing an official SDK for Proton Drive later this year. Maybe the remote could then be refactored with fewer dependencies, making it easier to maintain.
khaosdoctor commentedon Mar 7, 2026
Hello, is this still ongoing? I still get errors on moveto when renaming folders or files
clayliddell commentedon Mar 24, 2026
Worked on a Go SDK with updated SRP auth and operations that would be needed for rclone.
I created a PR (here) against the official Proton Drive, but no telling whether it'll be accepted.
If anyone want's to pickup migrating RClone to it, here's the repo: https://github.com/clayliddell/proton-drive-go-sdk.
massoncl commentedon Apr 28, 2026
Hi, I am having the same issue with the
--backup-dirflag. Since a lot of Proton Drive issues were fixed in #8870, I tried it again with rclone v1.74.0-beta.9673.d0c469c3c, but the errorThis value should not be blankis still happening.ncw commentedon Apr 29, 2026
Now that the integration tests have started working after #8870 I can see this issue clearly.
I've done the fixes suggested by @onnd in #8512 (comment) on our own forks of the protondrive packages and updated rclone to use them.
This makes the integration tests work.
Please give them a go @massoncl and anyone else having this problem.
v1.74.0-beta.9677.79110e857.fix-8512-protondrive-move on branch fix-8512-protondrive-move (uploaded in 15-30 mins)
massoncl commentedon Apr 30, 2026
Hi, thanks for the quick fix, this version works correctly for me.
Update MoveLinkReq schema for Proton Drive API
Update MoveLinkReq schema for Proton Drive API
Update MoveLinkReq schema for Proton Drive API
Fix moveLink to send NameSignatureEmail required by Proton Drive API
protondrive: fix server-side moveto and DirMove against current API
ncw commentedon Apr 30, 2026
Thanks for testing :-)
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.74
protondrive: fix server-side moveto and DirMove against current API