Rclone mount with --vfs-cache-mode writes with OneDrive gives I/O error I/O error when trying to use trash

What is the problem you are having with rclone?

Using rclone to mount my onedrive. When I try to delete a file using the file manager, Nautilus, an error is shown, indicating that the file cannot be trashed and prompting me to permanently delete it:

[file] can´t be put in the trash. Do you want to delete it immediatly?
Unable to create trashing info file for /home/mlw/OneDrive/testando.txt: Input/output error

I used this command to mount the drive:

 rclone --vfs-cache-mode writes mount mlw_OneDrive: ~/OneDrive/

Searching google, I found this post which seems pretty close to my issue:

I tried mounting my onedrive using --vsf-cache-mode full and what do you know, it works fine, just like discussed in the post I referenced.

Running:

gio trash ~/OneDrive/testando.txt 

Gives:

gio: file:///home/mlw/OneDrive/testando.txt: Unable to create trashing info file for /home/mlw/OneDrive/testando.txt: Input/output error

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

rclone 1.60.1
- os/version: fedora 38 (64 bit)
- os/kernel: 6.4.10-200.fc38.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.3
- go/linking: dynamic
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

OneDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

 rclone --vfs-cache-mode writes mount mlw_OneDrive: ~/OneDrive/

The rclone config contents with secrets removed.

[mlw_OneDrive]
type = onedrive
token = 
drive_id =
drive_type = personal

A log from the command with the -vv flag

Pasted full log here: 2023/08/18 15:03:24 DEBUG : rclone: Version "1.60.1" starting with parameters [" - Pastebin.com

2023/08/18 15:03:24 DEBUG : rclone: Version "1.60.1" starting with parameters ["rclone" "--vfs-cache-mode" "writes" "mount" "mlw_OneDrive:" "/home/mlw/OneDrive/" "-vv"]
2023/08/18 15:03:24 DEBUG : Creating backend with remote "mlw_OneDrive:"
2023/08/18 15:03:24 DEBUG : Using config file from "/home/mlw/.config/rclone/rclone.conf"
2023/08/18 15:03:26 DEBUG : OneDrive root '': Next delta token is: aTE09NjM4Mjc5NzUyOTMxNjc7SUQ9OTUzNjZBMEI1ODk1OTAyQyExMDM7TFI9NjM4Mjc5Nzg2MDU5NTc7RVA9MjA7U0k9NzI7RExFUD0wO1NHPTE7U089NjtQST0z
2023/08/18 15:03:26 DEBUG : vfs cache: root is "/home/mlw/.cache/rclone"
2023/08/18 15:03:26 DEBUG : vfs cache: data root is "/home/mlw/.cache/rclone/vfs/mlw_OneDrive"
2023/08/18 15:03:26 DEBUG : vfs cache: metadata root is "/home/mlw/.cache/rclone/vfsMeta/mlw_OneDrive"
2023/08/18 15:03:26 DEBUG : Creating backend with remote "/home/mlw/.cache/rclone/vfs/mlw_OneDrive/"
2023/08/18 15:03:26 DEBUG : fs cache: renaming cache item "/home/mlw/.cache/rclone/vfs/mlw_OneDrive/" to be canonical "/home/mlw/.cache/rclone/vfs/mlw_OneDrive"
2023/08/18 15:03:26 DEBUG : Creating backend with remote "/home/mlw/.cache/rclone/vfsMeta/mlw_OneDrive/"
2023/08/18 15:03:26 DEBUG : fs cache: renaming cache item "/home/mlw/.cache/rclone/vfsMeta/mlw_OneDrive/" to be canonical "/home/mlw/.cache/rclone/vfsMeta/mlw_OneDrive"
2023/08/18 15:03:26 DEBUG : OneDrive root '': Mounting on "/home/mlw/OneDrive/"
2023/08/18 15:03:26 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item testando.txt not removed, freed 0 bytes
2023/08/18 15:03:26 INFO  : vfs cache: cleaned: objects 1 (was 1) in use 0, to upload 0, uploading 0, total size 10 (was 10)
2023/08/18 15:03:26 DEBUG : : Root: 

[…] Removed parts of log due to char limit. Upload link above.

2023/08/18 15:04:41 DEBUG : /: >Lookup: node=testando.txt, err=<nil>
2023/08/18 15:04:41 DEBUG : testando.txt: Attr: 
2023/08/18 15:04:41 DEBUG : testando.txt: >Attr: a=valid=1s ino=0 size=10 mode=-rw-r--r--, err=<nil>
2023/08/18 15:04:41 DEBUG : /: Attr: 
2023/08/18 15:04:41 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/08/18 15:04:41 DEBUG : /: Lookup: name=".Trash"
2023/08/18 15:04:41 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2023/08/18 15:04:41 DEBUG : /: Lookup: name=".Trash-1000"
2023/08/18 15:04:41 DEBUG : /: >Lookup: node=.Trash-1000/, err=<nil>
2023/08/18 15:04:41 DEBUG : .Trash-1000/: Attr: 
2023/08/18 15:04:41 DEBUG : .Trash-1000/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/08/18 15:04:41 DEBUG : .Trash-1000/: Lookup: name="info"
2023/08/18 15:04:41 DEBUG : .Trash-1000/: >Lookup: node=.Trash-1000/info/, err=<nil>
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/: Attr: 
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/08/18 15:04:41 DEBUG : .Trash-1000/: Lookup: name="files"
2023/08/18 15:04:41 DEBUG : .Trash-1000/: >Lookup: node=.Trash-1000/files/, err=<nil>
2023/08/18 15:04:41 DEBUG : .Trash-1000/files/: Attr: 
2023/08/18 15:04:41 DEBUG : .Trash-1000/files/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/: Lookup: name="testando.txt.trashinfo"
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/: >Lookup: node=<nil>, err=no such file or directory
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/: Create: name="testando.txt.trashinfo"
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/testando.txt.trashinfo: Open: flags=O_RDONLY|O_CREATE|O_EXCL
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/testando.txt.trashinfo: >Open: fd=<nil *ReadFileHandle>, err=can't open file - writer failed
2023/08/18 15:04:41 ERROR : IO error: can't open file - writer failed
2023/08/18 15:04:41 DEBUG : .Trash-1000/info/: >Create: node=<nil>, handle=<nil>, err=can't open file - writer failed

You have all answers in front of you...

As per another thread you linked this issue was fixed:

And you use:

BTW - rclone now is v1.63.1 - do not post issues with old versions. It is waste of time to troubleshoot some historical releases.

So very sorry. I just installed from the fedora repo and assumed it would be the latest stable version duh!

Thanks anyway!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.