RClone - ProtonDrive: 'vfs cache: failed to upload'

What is the problem you are having with rclone?

Hi, to start with some basic information. I'm trying to mount my ProtonDrive account to my Linux PopOs 22.04 LTS system and have it sync with the drive. Ideally I would actually like to do this inside a Veracrypt folder but one problem at a time. I'm new to Rclone, so please forgive some ignorance.

I've had a nightmare getting RClone to work at all, I don't entirely know what I did wrong. Does RClone have to operate after the home folder? That seemed to be the final change, possibly. Also Proton doesn't allow the App Version to contain 'rclone' thus it has to be changed to 'macos-drive@1.0.0-alpha.1', this should probably be on the Wiki it seems consistent enough.

Anyway. I can now mount my drive in my home folder and access the files. It's slower than the Windows Client but that's perhaps expected. If though I edit and save a file I get the below error. The edit is then not replicated in ProtonDrive. If I dismount and remount, the change is still present locally though. Is the cache not supposed to clear on exit?


025/02/19 19:43:53.853470 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/REDACTED/files/REDACTED==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422), Attempt 1

Run the command 'rclone version' and share the full output of the command.


rclone v1.69.1
- os/version: debian bookworm/sid (64 bit)
- os/kernel: 6.9.3-76060903-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- 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 mount protondrive: ~/protondrive/ --vfs-cache-mode full

and


rclone mount protondrive: ~/protondrive/ --vfs-cache-mode writes

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.


[protondrive]
type = protondrive
username = XXX
password = XXX
app_version = macos-drive@1.0.0-alpha.1
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX
enable_caching = false

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


2025/02/19 21:56:08 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "mount" "protondrive:" "/home/[REDACTED]/protondrive/" "--vfs-cache-mode" "full" "-vv"]
2025/02/19 21:56:08 DEBUG : Creating backend with remote "protondrive:"
2025/02/19 21:56:08 DEBUG : Using config file from "/home/[REDACTED]/.config/rclone/rclone.conf"
2025/02/19 21:56:08 DEBUG : proton drive root link ID '': Has cached credentials
2025/02/19 21:56:11 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
2025/02/19 21:56:11 INFO  : proton drive root link ID '': poll-interval is not supported by this remote
2025/02/19 21:56:11 DEBUG : proton drive root link ID '': vfs cache: root is "/home/[REDACTED]/.cache/rclone"
2025/02/19 21:56:11 DEBUG : proton drive root link ID '': vfs cache: data root is "/home/[REDACTED]/.cache/rclone/vfs/protondrive"
2025/02/19 21:56:11 DEBUG : proton drive root link ID '': vfs cache: metadata root is "/home/[REDACTED]/.cache/rclone/vfsMeta/protondrive"
2025/02/19 21:56:11 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/[REDACTED]/.cache/rclone/vfs/protondrive/"
2025/02/19 21:56:11 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name
2025/02/19 21:56:11 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/[REDACTED]/.cache/rclone/vfs/protondrive/" to be canonical ":local{8un-i}:/home/[REDACTED]/.cache/rclone/vfs/protondrive"
2025/02/19 21:56:11 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/[REDACTED]/.cache/rclone/vfsMeta/protondrive/"
2025/02/19 21:56:11 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name
2025/02/19 21:56:11 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/[REDACTED]/.cache/rclone/vfsMeta/protondrive/" to be canonical ":local{8un-i}:/home/[REDACTED]/.cache/rclone/vfsMeta/protondrive"
2025/02/19 21:56:14 DEBUG : popos/Document: Original file size missing
2025/02/19 21:56:15 DEBUG : popos/Document: file sha1 digest missing
2025/02/19 21:56:15 DEBUG : popos/Document: vfs cache: checking remote fingerprint "0,2025-02-19 04:53:21 +0000 UTC," against cached fingerprint "0,2025-02-19 04:53:21 +0000 UTC,"
2025/02/19 21:56:15 DEBUG : popos/Document: Original file size missing
2025/02/19 21:56:15 DEBUG : popos/Document: vfs cache: truncate to size=13 (not needed as size correct)
2025/02/19 21:56:15 DEBUG : vfs cache: looking for range={Pos:0 Size:13} in [{Pos:0 Size:13}] - present true
2025/02/19 21:56:15 DEBUG : popos/Document: vfs cache: setting modification time to 2025-02-19 19:44:18.043446246 +0000 UTC
2025/02/19 21:56:15 INFO  : popos/Document: vfs cache: queuing for upload in 5s
2025/02/19 21:56:16 DEBUG : Untitled document 2024-10-05 15.50.02: Original file size missing
2025/02/19 21:56:16 DEBUG : Untitled document 2024-10-05 15.50.02: Original file size missing
2025/02/19 21:56:16 DEBUG : popos: Added virtual directory entry vAddFile: "Document"
2025/02/19 21:56:16 DEBUG : proton drive root link ID '': vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item popos/Document not removed, freed 0 bytes
2025/02/19 21:56:16 INFO  : proton drive root link ID '': vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 13 (was 13)
2025/02/19 21:56:16 DEBUG : proton drive root link ID '': Mounting on "/home/[REDACTED]/protondrive/"
2025/02/19 21:56:16 DEBUG : : Root: 
2025/02/19 21:56:16 DEBUG : : >Root: node=/, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Lookup: name=".Trash"
2025/02/19 21:56:17 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2025/02/19 21:56:17 DEBUG : /: Lookup: name=".Trash-1000"
2025/02/19 21:56:17 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2025/02/19 21:56:17 DEBUG : /: Lookup: name=".xdg-volume-info"
2025/02/19 21:56:17 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2025/02/19 21:56:17 DEBUG : /: Lookup: name="autorun.inf"
2025/02/19 21:56:17 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Attr: 
2025/02/19 21:56:17 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2025/02/19 21:56:17 DEBUG : /: ReadDirAll: 
2025/02/19 21:56:17 DEBUG : /: >ReadDirAll: item=15, err=<nil>
2025/02/19 21:56:17 DEBUG : /: Lookup: name="autorun.inf"
2025/02/19 21:56:17 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2025/02/19 21:56:20 DEBUG : popos/Document: vfs cache: starting upload
2025/02/19 21:56:21.246701 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2025/02/19 21:56:21.246895 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422)
2025/02/19 21:56:22.509089 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422), Attempt 1
2025/02/19 21:56:22.509184 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:22 ERROR : popos/Document: Failed to copy: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:22 ERROR : popos/Document: vfs cache: failed to upload try #1, will retry in 10s: vfs cache: failed to transfer file from cache to remote: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:32 DEBUG : popos/Document: vfs cache: starting upload
2025/02/19 21:56:33.457673 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2025/02/19 21:56:33.457762 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422)
2025/02/19 21:56:34.608714 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422), Attempt 1
2025/02/19 21:56:34.608811 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:34 ERROR : popos/Document: Failed to copy: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:34 ERROR : popos/Document: vfs cache: failed to upload try #2, will retry in 20s: vfs cache: failed to transfer file from cache to remote: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:54 DEBUG : popos/Document: vfs cache: starting upload
2025/02/19 21:56:55.379990 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2025/02/19 21:56:55.380091 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422)
2025/02/19 21:56:56.614021 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422), Attempt 1
2025/02/19 21:56:56.614111 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:56 ERROR : popos/Document: Failed to copy: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:56:56 ERROR : popos/Document: vfs cache: failed to upload try #3, will retry in 40s: vfs cache: failed to transfer file from cache to remote: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:57:16 DEBUG : proton drive root link ID '': vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item popos/Document not removed, freed 0 bytes
2025/02/19 21:57:16 INFO  : proton drive root link ID '': vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 13 (was 13)
2025/02/19 21:57:36 DEBUG : popos/Document: vfs cache: starting upload
2025/02/19 21:57:37.466231 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2025/02/19 21:57:37.466581 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422)
2025/02/19 21:57:38.493963 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422), Attempt 1
2025/02/19 21:57:38.494200 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:57:38 ERROR : popos/Document: Failed to copy: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:57:38 ERROR : popos/Document: vfs cache: failed to upload try #4, will retry in 1m20s: vfs cache: failed to transfer file from cache to remote: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:58:17 DEBUG : proton drive root link ID '': vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item popos/Document not removed, freed 0 bytes
2025/02/19 21:58:17 INFO  : proton drive root link ID '': vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 13 (was 13)
2025/02/19 21:58:58 DEBUG : popos/Document: vfs cache: starting upload
2025/02/19 21:58:59.288344 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422), Attempt 1
2025/02/19 21:58:59.288443 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files: A file or folder with that name already exists (Code=2500, Status=422)
2025/02/19 21:59:00.306726 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422), Attempt 1
2025/02/19 21:59:00.306932 ERROR RESTY 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:59:00 ERROR : popos/Document: Failed to copy: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:59:00 ERROR : popos/Document: vfs cache: failed to upload try #5, will retry in 2m40s: vfs cache: failed to transfer file from cache to remote: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)
2025/02/19 21:59:16 DEBUG : proton drive root link ID '': vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item popos/Document not removed, freed 0 bytes
2025/02/19 21:59:16 INFO  : proton drive root link ID '': vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 13 (was 13)
2025/02/19 22:00:16 DEBUG : proton drive root link ID '': vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item popos/Document not removed, freed 0 bytes
2025/02/19 22:00:16 INFO  : proton drive root link ID '': vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 13 (was 13)

As this command continues indefinitely I then used 'Crtl-C' to cancel the command with the following output.


2025/02/19 22:01:03 INFO  : Signal received: interrupt
2025/02/19 22:01:03 DEBUG : proton drive root link ID '': vfs cache: cleaner exiting
2025/02/19 22:01:03 ERROR : /home/[REDACTED]/protondrive/: Unmounted rclone mount
2025/02/19 22:01:03 INFO  : Exiting...

Any assistance would be greatly appreciated. My minimum use case requires me to be able to access files 'live', edit them and have them save back to the cloud. Ideally if I can store a local back up of one folder, that would be awesome and if I could access inside a veracrypt volume brilliant but that's not essential.

Could you clarify what you mean by this? It makes no sense to me.
Also it might help if you clarified your workflow - once you have done the mount, what do you do next?

Hi, thanks for your response and sorry if this wasn't clear.

Work Flow:

Open Terminal
cd ~
rclone mount protondrive: ~/protondrive/ --vfs-cache-mode full

Immediately the prior mentioned warning comes up, that it can't upload the file I've previously edited. The drive is simultaneously mounted in File Explorer allowing me to browse and even edit the files. If I try to edit the file though, for example add lines to a text.txt, the changes are not present on the cloud when I check the cloud @ drive.proton.me . They will be present on my laptop if I close the connection and mount the drive again.

The first time this happened, I ran the command, the drive still did not appear in File Explorer (I had a few issues getting it working) I used a different terminal window to navigate to the file path. The file path did exist and when I ran

ls -a

everything was populated. At this point the file system appeared in file explorer. I navigated to a folder I'd already made called 'popos' that had a blank .docx. Wrote 'hello world' and saved the document. Changes were not replicated on the document @ drive.proton.me. When I checked back to the terminal, I had the aforementioned error and I've been stuck here since.

There's isn't really much more to the workflow.

With regards to what I'm asking with mounting to home. Do I have to mount to

~/a/given/file/path

or for example, could I mount to

/mnt/protondrive

When I was trying to do that it didn't work but as I said, I had a few issues, if you can't tell, I'm not exactly confident with the program yet.

OK, but as far as I can see, all you've done at this point is mount the drive - have you done something to upload a file?

You certainly don't have to mount in your home directory. In fact if you want to clone your home directory, it's preferable not to.

You can, but first make sure /mnt/protondrive has rwx permission for the user.

Be aware that tools like file managers can do all sorts of things that you don't expect[], so using them on a remotely mounted drive should be used with caution.
[
] Like running 'file' on the contents of any directory you open which reads the files to determine what type of file it is - this obviously works much better locally that something that's remote.

My expectation that if I navigate to

~/remotedrive/x-folder/

and run

nano text.txt
crtl-x

It would save to the remote drive and thus be accessible both at;

~/remotedrive/x-folder/test.txt and at drive.proton.me.

Where I just did exactly this and put 'Hello World' in the text file.

If I run

nano text.txt

The file opens and says 'Hello World' as expected but if I go to the website or on my mobile app the file is not on the cloud server.

I see that using rclone mount will restart a cache to remote sync that was in progress when 'rclone mount' was terminated.

That is correct, however don't expect it to happen instantly.

You might find specifying --cache-dir in 'rclone mount' useful - if you have a lot of files sitting in the cache awaiting upload, the exercise about would take longer than you expect. Check the cache dir to see what's there.

I will give that a go now but I've had it running for over an hour and every time it tries to upload the document I still get the below error saying it's failed and that 'Revision is not enabled'.


ERROR : popos/Document: vfs cache: failed to upload try #14, will retry in 5m0s: vfs cache: failed to transfer file from cache to remote: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)

Yes both files are sat in the cache. However they've been trying to upload for over an hour and only come to a total of 8KB?

I just been receiving the error that;

025/02/19 19:43:53.853470 WARN RESTY 422 POST https://mail.proton.me/api/drive/shares/REDACTED/files/REDACTED==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422), Attempt 1

Or

2025/02/20 01:13:14 ERROR : popos/test.txt: vfs cache: failed to upload try #14, will retry in 5m0s: vfs cache: failed to transfer file from cache to remote: 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

There is no draft available on the ProtonDrive website.

Too me it seems that, they're aren't actually being sent to the server and that they're not sending at all. Perhaps I'm missing something here though.

Have you tried using this setting?

Yes it does get rid of the new secondary error but the console continues to spit out the 'revisions not enabled error' that's been present from the start.

vfs cache: failed to transfer file from cache to remote: 422 POST https://mail.proton.me/api/drive/shares/[REDACTED]==/files/[REDACTED]==/revisions: Revision is currently not enabled for Documents (Code=200700, Status=422)

'Revision is currently not enabled for Documents' but there doesn't seem to be a --enable-revisions option.

Thanks for the assistance, it's appreciated. If I can get this working it would be really helpful.

From the rclone man page, it seems that 'revisions' is a google drive thing, so you'd expect them to not be enabled on other platforms. It's probably OK to ignore the console error.