Use vfs cache with --rc-serve

What is the problem you are having with rclone?

I am using Rclone with BOX. My files are crypted and chunked to 4gb.
I want to access the files via browser, so I added --rc-serve parameter.
It looks like when downloading a file via browser, the vfs-cache is not being used - is that expected behavior? Is there any method to make both work together?

Best regards

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

rclone v1.65.0-beta.7392.b296f3780

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-147-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.1
  • go/linking: static
  • go/tags: none

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

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

[Unit]
Description=RClone Service Box
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/user/.config/rclone/rclone.conf
RestartSec=5
ExecStart=/usr/bin/rclone mount BOXChunker: /home/user/media/BOX \
--rc-serve \
--rc-no-auth \
--rc-addr :5572 \
--allow-other \
--log-file /home/user/scripts/rclone-box.log \
--log-level DEBUG \
--umask 002 \
--cache-dir=/home/Data/RcloneCache/BOX/ \
--vfs-cache-mode full \
--vfs-cache-max-size 150G \

Please run 'rclone config redacted' and share the full output. If you get [BOX]

type = box
client_id = XXX
client_secret = XXX
token = XXX

[BOXChunker]
type = chunker
remote = BOXcrypt:
chunk_size = 4G
hash_type = none

[BOXcrypt]
type = crypt
remote = BOX:/MediaDRK
filename_encryption = obfuscate
password = XXX
password2 = XXX

You'd need to share a log file of the issue.

Yes. The files are served direct from the remote.

In an ideal world you'd start a rclone serve http or rclone serve webdav via the rc. However this isn't implemented yet.

You could do it the other way round, run rclone serve http and start the mount via the rc - that is possible.

1 Like

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