RClone Mount Options for Plex

Hi!
I’m using rclone to mount a folder from pCloud to my Plex server, running on a VPS.
It’s been rock stable for 400 days or more. Then I upgraded the VPS from Debian Buster to Bullseye, and it started having issues, HetrixTools reporting the node being down every night. After rclone selfupdate it stayed online/stable for a few days, then started having issues again. Now I wonder if it might be RClone cache issues.

My config/mount options look like this:

/usr/bin/rclone mount --uid 1000 --gid 1000 --syslog --stats 1m \
  --buffer-size 16M --dir-cache-time 48h \
  --rc \
  --poll-interval 0 \
  --multi-thread-streams 0 \
  --tpslimit 10 \
  --vfs-read-chunk-size 8M \
  --vfs-read-chunk-size-limit 128M \
  --async-read=false \
  --cache-dir /tmp/rclone-cache --vfs-cache-mode full \
  --vfs-cache-max-size 1G \
  -v --allow-other --read-only --ignore-checksum \
  pCloud:/NICE/ /srv/NICE/

In syslog I notice many of these:
rclone (...) vfs cache: cache is out of space
and
rclone (...) fs cache item: createItemDir failed: failed to create data cache item directory: mkdir /tmp/rclone-cache/vfs/pCloud/NICE/SoundFilenames check: no space left on device
(Multiple filenames of course.)

Not sure why it suddenly started having issues. (I haven’t added that much music lately.)
Thinking maybe @Wolveix or some other guru might have some input on what I should try/check? :innocent:

1 Like

Hey @flips :smiley: It largely varies depending on the backend you’re using, but I can see a few potential issues. As of about a year ago, rclone’s default values are good enough for most users. You could try dropping your vfs-cache-max-size to 512M.

It’s hard to know what the issue may be without knowing your server’s resource usage/quota. Is your disk space very limited?

1 Like

Ah, maybe this one, the cache in /tmp ends up in the root fs, and after upgrading from Buster that fs is a bit more … and seems (messages and syslog has grown quite a bit):

df -hT /tmp/rclone-cache/
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/vda1      ext4  9.1G  8.0G  613M  94% /

I guess I could move the rclone-cache to some other location. (Thought I did at some point. Probably on a different setup/VPS)

Seems Plex also had written like 2 GB of music analysis stuff in /tmp, so now easily freed 4 GB … :grin:

1 Like