VFS Cache not used when streaming, correct setup?

When I first set it up, I know I saw files in there, however I don't recall if it was when I tested downloading/uploading or just Plex Streaming.

Right now, nothing shows in the folder when I stream in Plex, did I mess up a setting?

What is the problem you are having with rclone?

Not seeing any files in the VFS cache directory

What is your rclone version (output from rclone version)

1.47.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Win10 x64

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

Google Drive

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

rclone mount --allow-non-empty --allow-other --size-only --timeout 1h --cache-dir F:\rclone_cache --dir-cache-time 2m --vfs-cache-max-age 72h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 5G --drive-chunk-size 128M --buffer-size 128M --vfs-cache-mode writes gcrypt:Media/ T:

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2019/07/19 21:07:06 DEBUG : Using config file from "C:\Users\***\.config\rclone\rclone.conf"
2019/07/19 21:07:07 DEBUG : Encrypted drive 'gcrypt:Media/': Mounting on "T:"
2019/07/19 21:07:07 DEBUG : vfs cache root is "F:\rclone_cache\vfs\gcrypt\Media"
2019/07/19 21:07:07 DEBUG : Adding path "vfs/forget" to remote control registry
2019/07/19 21:07:07 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/07/19 21:07:07 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/07/19 21:07:07 DEBUG : Encrypted drive 'gcrypt:Media/': Mounting with options: ["-o" "fsname=gcrypt:Media/" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=gcrypt Media" "-o" "nonempty" "-o" "allow_other"]
2019/07/19 21:07:07 DEBUG : Encrypted drive 'gcrypt:Media/': Init:
2019/07/19 21:07:07 DEBUG : Encrypted drive 'gcrypt:Media/': >Init:
2019/07/19 21:07:07 DEBUG : /: Statfs:
2019/07/19 21:07:07 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274752589991 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Readlink:
2019/07/19 21:07:07 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2019/07/19 21:07:07 DEBUG : /: Statfs:
2019/07/19 21:07:07 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274752589991 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: Opendir:
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Opendir:
2019/07/19 21:07:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/07/19 21:07:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/07/19 21:07:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/07/19 21:07:07 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/07/19 21:07:07 DEBUG : /: >Opendir: errc=0, fh=0x1
2019/07/19 21:07:07 DEBUG : /: Releasedir: fh=0x0
2019/07/19 21:07:07 DEBUG : /: >Releasedir: errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: Releasedir: fh=0x1
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: >Releasedir: errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Opendir:
2019/07/19 21:07:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/07/19 21:07:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/07/19 21:07:07 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/07/19 21:07:07 DEBUG : /: Releasedir: fh=0x0
2019/07/19 21:07:07 DEBUG : /: >Releasedir: errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:07 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:07 DEBUG : /: Opendir:
2019/07/19 21:07:07 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/07/19 21:07:07 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/07/19 21:07:07 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/07/19 21:07:07 DEBUG : /: Releasedir: fh=0x0
2019/07/19 21:07:07 DEBUG : /: >Releasedir: errc=0
2019/07/19 21:07:10 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:11 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/07/19 21:07:11 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:11 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/07/19 21:07:11 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:11 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/07/19 21:07:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:11 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:11 DEBUG : /: >Getattr: errc=0
2019/07/19 21:07:11 DEBUG : /: Opendir:
2019/07/19 21:07:11 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/07/19 21:07:11 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/07/19 21:07:11 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/07/19 21:07:11 DEBUG : /: Releasedir: fh=0x0
2019/07/19 21:07:11 DEBUG : /: >Releasedir: errc=0
2019/07/19 21:07:11 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/07/19 21:07:11 DEBUG : /AutoRun.inf: >Getattr: errc=-2

I took out "--cache-dir F:\rclone_cache" and tried streaming again. Checking "C:\Users****\AppData\Local\rclone\vfs\gcrypt" shows nothing.

You missed all the questions in the template. Can you fill those out?

Updated. Didn't chose the correct template when I originally posted.

Only writes are written locally first. Once they are written though, they are immediately uploaded. If you are just reading, you wouldn't see anything as reads are all done via memory.

Tried --vfs-cache-mode full, but that attempts to download the whole file before it start playing. So I changed it to minimal. Doesn't appear to cache the file in the path located.
Are the mount options I have optimal, or could there be some tweaks to be made to maximize performance?

My settings are here:

rclone without using the cache backend doesn't really store stuff on disk as it uses a memory buffer for playback.

1 Like

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