Review of my RCLONE mount Service

What is the problem you are having with rclone?

Not a real problem, I'm just looking for suggestions and a review of my Rclone mount service script
The usage is to stream the content with PLEX. and I would like to have the mount as much reliable and fast as possible when seeking. To do it I thought to use a big cache file so that the streamed content will be kind of local.

Plex and RCLONE mount is running on my local machine. Rclone is mounting from a remote storage via the SFTP protocol.

My internet connection is 1gbs/1gbs

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

rclone v1.61.1

  • os/version: debian 11.6 (64 bit)
  • os/kernel: 5.10.0-21-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

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

I am mounting a cloudstorage from hetzner.

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

[Unit]
Description=WikiBox-1 (rclone)
AssertPathIsDirectory=/mnt/library/

[Service]
Type=simple
ExecStart=/usr/bin/rclone mount WikiBox-1:/ /mnt/library \
        --config=/root/.config/rclone/rclone.conf \
        --allow-other \
        --vfs-cache-mode full \
        --cache-chunk-path=/mnt/cache/rclone/chunks \
        --cache-workers=8 \
        --cache-dir=/mnt/cache/rclone/vfs \
        --cache-db-path=/mnt/cache/rclone/db \
        --no-modtime \
        --stats=0 \
        --checkers=16 \
        --dir-cache-time=30m \
	--cache-info-age=30m \
	--vfs-cache-max-age 180h0m0s \
	--vfs-cache-max-size 500G \
	--vfs-read-ahead 4G \
	--buffer-size 2G \
        --log-file=/mnt/cache/rclone/rclone_MOUNT_Log.txt \
        --log-level INFO
ExecStop=/bin/fusermount -u /mnt/library
Restart=always
RestartSec=10

[Install]
WantedBy=default.target

The rclone config contents with secrets removed.

It is connected to the cloud storage via SFTP


[WikiBox-1]
type = sftp
host = xxxxx.your-storagebox.de
user = xxxx
pass = xxxx
md5sum_command = none
sha1sum_command = none
shell_type = unix

A log from the command with the -vv flag

Paste  log here

i run rclone mount and emby/jellyfin on a hetzner vm, the meda files are stored on hetzner storagebox.


we need more information about your setup

  • post the redacted output of rclone config show

  • is rclone mount running on your local machine or hosted in cloud vm?

  • what is the result of an internet speed test from the machine running rclone mount?

using a storagebox or what?

Thank you forr the answer, I did update the main post with more details.

I am not having any issues with this setup, I opened this thread to ask for suggestions/reviews of my way to mount the remote and see if I can improve it somehow.

sftp is a old/slow protocol, has lots of latency, that is why i asked for a speed test result.

these flags are for the deprecated cache remote, do nothing, can remove them all.

--cache-chunk-path=/mnt/cache/rclone/chunks
--cache-workers=8
--cache-db-path=/mnt/cache/rclone/db
--cache-info-age=30m

this flag does not work with rclone mount
--checkers=16

i would remove

--vfs-read-ahead 4G
--buffer-size 2G

one trick i have found to improve seeking:
force transcoding and disable transcoding throttling.
this forces emby to read and process the entire file.

1 Like

another trick that can work.

in the past, i did testing using my cellphone unlimited hotspot at just 5Mbps.
terrible performace.

once a video playback starts, force rclone to the download the entire media file into the vfs file cache.
i did this by using webhooks, once a video starts to play, run md5sum /mnt/library/path/to/mediafile.mkv

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