Skip to content

protondrive moveto broken #8512

Closed
Closed

Description

@onnd

The associated forum post URL from https://forum.rclone.org

https://forum.rclone.org/t/protondrive-moveto-command-not-working-when-moving-files-on-drive/49347/2

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.

Activity

  1. andrew-aladjev commented on Apr 21, 2025

    @andrew-aladjev

    Hello, I've investigated this case. rclone depends on henrybear327/Proton-API-Bridge and henrybear327/go-proton-api. henrybear327/go-proton-api is a fork of official ProtonMail/go-proton-api. The diff includes MoveLink function:

    return r.SetResult(&res).SetBody(req).Put("/drive/shares/" + shareID + "/links/" + linkID + "/move")
    

    Meanwhile, there is no documentation or knowledge about the /drive/shares/:shareID/links/:linkID/move request. We need to cast @henrybear327 and ask him what we need to do with this issue. Hello @henrybear327, we have an issue in MoveLink function. Do you know what we need to do?

  2. onnd commented on Apr 23, 2025

    @onnd
    Author

    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-api and Proton-API-Brige. Not sure how to proceed, ideally he should be involved.

    In go-proton-api/link_file_types.go in the MoveLinkReq struct I commented out NodePassphraseSignature and SignatureAddress. 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: SignatureAddress should be called SignatureEmail.

    In the same file go-proton-api/link_file_types.go I also needed to add a NameSignatureEmail variable, inspired by the same file above.

    The corresponding changes are also needed in Proton-API-Bridge in the folder.go file:
    in the moveLink function:
    Rename SignatureAddress to SignatureEmail and comment it out.
    Add NameSignatureEmail: protonDrive.signatureAddress underneath,
    Comment out req.NodePassphraseSignature = srcLink.NodePassphraseSignature

    I 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.

  3. traktuner commented on May 27, 2025

    @traktuner

    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.)

  4. ncw commented on May 28, 2025

    @ncw
    Member

    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.

    Unfortunately I can't merge that PR as-is.

    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.)

    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...

  5. traktuner commented on Jul 10, 2025

    @traktuner

    @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.

  6. khaosdoctor commented on Mar 7, 2026

    @khaosdoctor

    Hello, is this still ongoing? I still get errors on moveto when renaming folders or files

  7. clayliddell commented on Mar 24, 2026

    @clayliddell

    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.

  8. massoncl commented on Apr 28, 2026

    @massoncl

    Hi, I am having the same issue with the --backup-dir flag. 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 error This value should not be blank is still happening.

  9. ncw commented on Apr 29, 2026

    @ncw
    Member

    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)

  10. massoncl commented on Apr 30, 2026

    @massoncl

    Hi, thanks for the quick fix, this version works correctly for me.

  11. added 3 commits that reference this issue on Apr 30, 2026
    740dafa
    0323de9
    f72228f
  12. added 2 commits that reference this issue on Apr 30, 2026
    58f49e7
    0812cee
  13. ncw commented on Apr 30, 2026

    @ncw
    Member

    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

  14. added a commit that references this issue on Oct 6, 2026
    086344a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions