Local Backend troubles (maybe mount options/vfs missing)

What is the problem you are having with rclone?

im running a local disk as local backend and using encryption.. i have mounted my disk in /mnt/disks/storage1 in fstab.

i have mounted my encrypted remote in /mnt/remote/storage1

im using these mount options:

rclone mount storage1:/ /mnt/remote/storage1
--config /opt/rclone/rclone.conf
--umask 002
--allow-other
--log-file /opt/rclone/storage1.log
--log-level INFO

maybe i need some vfs cache or mount options? dunno..

but i have some weird problems with rename/mkdir/delete when i try to do it on the mounted encrypted remote.

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

rclone v1.64.2

  • os/version: debian 12.2 (64 bit)
  • os/kernel: 6.1.0-13-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.3
  • go/linking: static
  • go/tags: none

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

Local

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

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

[s1_drive]
type = local

[storage1]
type = crypt
remote = s1_drive:/mnt/disks/storage1
password = XXX
password2 = XXX

A log from the command that you were trying to run with the -vv flag

2023/11/03 12:25:30 ERROR : media/movies/movies/Dan Andersen Holder 100 (2009) {tmdb-1199723}: Dir.Rename error: rename /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/apcilepla4femubcp5urq7u8f4/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/qllp0usvsa3ngh3ql39qu0hcmg/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm: permission denied
2023/11/03 12:25:30 ERROR : IO error: rename /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/apcilepla4femubcp5urq7u8f4/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/qllp0usvsa3ngh3ql39qu0hcmg/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm: permission denied
2023/11/03 12:25:30 ERROR : media/movies/movies/Dan Andersen Holder 100 (2009) {tmdb-1199723}: Dir.Rename error: rename /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/apcilepla4femubcp5urq7u8f4/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/qllp0usvsa3ngh3ql39qu0hcmg/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm: permission denied
2023/11/03 12:25:30 ERROR : IO error: rename /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/apcilepla4femubcp5urq7u8f4/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm /mnt/disks/storage1/m509g4eat3bgakpcfs1m95vmcg/apcilepla4femubcp5urq7u8f4/qllp0usvsa3ngh3ql39qu0hcmg/ekfdeiaa965opopbq96j0f222d9u12oa9mh876hnq3lr5vqts750i5f2ovqjkv9f4dk3vj6v5q7mm: permission denied

Think i got it to work by adding a vfs write cache

That's more permissions related.

Are you running it as a user / root ?

it's running as a user named server and all files/folders is owned by server.. but it seems like it disappeared with adding a VFS writecache..

Weird thing it first show the de-encrypted folder name and then is errors on the encrypted folder name..

i found this on the mount doc:

Limitations

Without the use of --vfs-cache-mode this can only write files sequentially, it can only seek when reading. This means that many applications won't work with their files on an rclone mount without --vfs-cache-mode writes or --vfs-cache-mode full. See the VFS File Caching section for more info.

but for now it seems fixed.. i'm testing it out at the moment :slight_smile:

So what's not from a rclone log?

If that's rclone, it's not caching..

yes.. it was before i added the vfs write cache..

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