Freezer on 4K movies and 4K TV episodes

What is the problem you are having with rclone?

With 4k movies, and with 4k TV series after a certain time the picture freezes, respectively starts to jerk.

I have installed Rclone on a Synology DS220+ with 10GB RAM.

Playback device is a NVidia Shield 2019 Pro.

Server software is Emby.

At the moment, however, is still my Windows computer, Intel i5 8400 with 32 GB RAM in use. And when I mount there via RcloneBrowser, nothing jerks. Not even movies that have 60 FPS and a bitrate of 90 Mbps.

Run the command "rclone version" and pass the full output of the command.

rclone v1.60.1

  • os/version: unknown
  • os/kernel: 4.4.180+ (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.3
  • go/linking: static
  • go/tags: none

Yes

What cloud storage system are you using? (e.g. Google Drive)

Google Drive

The command you tried to run (e.g. rclone copy /tmp remote:tmp)

root@Synology:~# rclone copy /tmp remote:tmp
2022/11/29 17:53:26 Failed to create file system for "remote:tmp": didn't find section in config file

The contents of the rclone configuration with remote secrets

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

[Service]
Type=notify
RestartSec=5
Restart=always
ExecStart=/usr/bin/rclone mount embycrypt: /volume1/medien/emby --config=/root/.config/rclone/rclone.conf --allow-other --allow-non-empty --rc --rc-addr=192.168.178.73:5572
--cache-tmp-upload-path=/volume1/data/cache
--cache-chunk-path=/volume1/data/cache/chunks
--cache-workers=8
--cache-writes
--cache-dir=/volume1/data/cache/vfs
--cache-db-path=/volume1/data/cache/db
--no-modtime
--stats=0
--checkers=16
--bwlimit=8650k
--dir-cache-time=60m
--vfs-cache-mode full
--vfs-cache-max-size 120G
--log-level DEBUG
--log-file /volume1/data/cache
--user-agent "rclone/v1.60.1"
--drive-no-versions
--tpslimit 2
--cache-info-age=60m embycrypt: /volume1/medien/emby

ExecStop=/bin/fusermount -uzq /volume1/medien/emby

[Install]
WantedBy=multi-user.target

A log of the command with the -vv flag

``Paste the log here ```.

hi,

--- i would remove --bwlimit=8650k

--- post the redacted config for embycrypt:

how are the synbox and shield connected.
--- wired
--- wifi
--- smoke signals

and try to enclose the text with three backticks so it is formatted correctly

image

1 Like

---You mean the rclone.conf section for embycrypt?

---[embygdrive]
---type = drive
---client_id = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---client_secret = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---scope = drive
---token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---team_drive = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---root_folder_id =

---[embycrypt]
---type = crypt
---remote = embygdrive:crypt
---password = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
---password2 = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

---All over LAN - the Synology over 2.5 GbE - the Shield over 1 GB LAN

based on your remotes, these flags do nothing

--cache-tmp-upload-path=/volume1/data/cache
--cache-chunk-path=/volume1/data/cache/chunks
--cache-workers=8
--cache-writes 
--cache-db-path=/volume1/data/cache/db
--cache-info-age=60m

on a rclone mount, this flags does nothing
--checkers=16

--- would remove
--tpslimit 2
and add

--drive-pacer-min-sleep 10ms
--drive-pacer-burst 200

and i forgot to mention, that if you want a systemd file for gdrive, check out
https://github.com/animosity22/homescripts/blob/master/systemd/rclone-drive.service

2 Likes

Thanks - I'll test it tomorrow morning - I've already invested too many hours for today.

1 Like

It works very well - I was just able to watch an entire 4K movie without any freezers. But what irritates me a lot: nothing was written to the cache - it's completely empty.

Did I make another mistake here? Maybe you see something.

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

[Service]
Type=notify
RestartSec=5
Restart=always
ExecStart=/usr/bin/rclone mount embycrypt: /volume1/medien/emby --config=/root/.config/rclone/rclone.conf --allow-other --allow-non-empty  --rc --rc-addr=192.168.178.73:5572
        --cache-dir=/volume1/data/cache \
        --no-modtime \
        --stats=0 \
        --vfs-cache-mode full \
        --vfs-cache-max-size 250G \
        --log-level DEBUG \
        --log-file /volume1/data/embycrypt.log \
        --user-agent "rclone/v1.60.1" \
        --drive-no-versions \
        --drive-pacer-min-sleep 10ms \
		--drive-pacer-burst 200 \

ExecStop=/bin/fusermount -uzq /volume1/medien/emby

[Install]
WantedBy=multi-user.target

Share the log file and we'll probably see what the issue is.

That's the next problem - that is also not created

Since I can't see your screen, you'd have to share some details on what you are doing and what the output is to troubleshoot it...

Well I'm watching a movie, about the mount. And no log file is created, and the cache is also empty.

You've said that a few times.

What are you typing? How you are starting your mount? What did you do after you changed your service file?
What is the output of what you are typing on the screen? Can you copy and paste that into here?

After changing the rclone.service, this was my approach

root@Synology:~#systemctl daemon-reload
root@Synology:~# systemctl stop rclone
root@Synology:~# systemctl start rclone
root@Synology:~# systemctl status rclone.service -l
● rclone.service - Rclone Service
   Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2022-11-30 13:38:18 CET; 2min 10s ago
 Main PID: 722 (rclone)
   Memory: 62.0M
   CGroup: /system.slice/rclone.service
           └─722 /usr/bin/rclone mount embycrypt: /volume1/medien/emby --config=/root/.config/rclone/rclone.conf --allow-other --allow-non-empty --rc --rc-addr=192.168.178.73:5572

Nov 30 13:38:14 Synology systemd[1]: Starting Rclone Service...
Nov 30 13:38:17 Synology rclone[722]: 2022/11/30 13:38:17 NOTICE: Serving remote control on http://192.168.178.73:5572/
Nov 30 13:38:18 Synology systemd[1]: Started Rclone Service.

In your running service, there is no cache configured and no log file.

You'd want to check that file and ensure you changed that file and it's the one you've posted above.

Yes, this is exactly what I have changed. Have the also nowhere else deposited.

I can only go by what I see and the information you've shared says something different.

cat /etc/systemd/system/rclone.service

Share the output.

root@Synology:~# cat /etc/systemd/system/rclone.service
[Unit]
Description=Rclone Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
RestartSec=5
Restart=always
ExecStart=/usr/bin/rclone mount embycrypt: /volume1/medien/emby --config=/root/.config/rclone/rclone.conf --allow-other --allow-non-empty  --rc --rc-addr=192.168.178.73:5572
--cache-dir=/volume1/data/cache \
--no-modtime \
--stats=0 \
--vfs-cache-mode full \
--vfs-cache-max-size 250G \
--log-level DEBUG \
--log-file /volume1/data/log/embycrypt.log \
--user-agent "rclone/v1.60.1" \
--drive-no-versions \
--drive-pacer-min-sleep 10ms \
--drive-pacer-burst 200 \

ExecStop=/bin/fusermount -uzq /volume1/medien/emby

[Install]
WantedBy=multi-user.target \

and

journalctl -u rclone -b
-- Logs begin at Wed 2022-11-30 14:07:29 CET, end at Wed 2022-11-30 14:21:01 CET. --
Nov 30 14:07:31 Synology systemd[1]: rclone.service holdoff time over, scheduling restart.
Nov 30 14:07:31 Synology systemd[1]: Starting Rclone Service...
Nov 30 14:07:31 Synology rclone[10734]: 2022/11/30 14:07:31 DEBUG : Home directory lookup failed and cannot be used as confi
guration location: exec: "getent": executable file not found in $PATH
Nov 30 14:07:31 Synology rclone[10734]: 2022/11/30 14:07:31 DEBUG : Failed to find user cache dir, using temporary directory
: neither $XDG_CACHE_HOME nor $HOME are defined
Nov 30 14:07:31 Synology rclone[10734]: Error: unknown flag: --drive-no-versions
Nov 30 14:07:31 Synology rclone[10734]: Usage:
Nov 30 14:07:31 Synology rclone[10734]: rclone mount remote:path /path/to/mountpoint [flags]
Nov 30 14:07:31 Synology rclone[10734]: Flags:
Nov 30 14:07:31 Synology rclone[10734]: --allow-non-empty                        Allow mounting over a non-empty directory (
not supported on Windows)
Nov 30 14:07:31 Synology rclone[10734]: --allow-other                            Allow access to other users (not supported
on Windows)
Nov 30 14:07:31 Synology rclone[10734]: --allow-root                             Allow access to root user (not supported on
 Windows)
Nov 30 14:07:31 Synology rclone[10734]: --async-read                             Use asynchronous reads (not supported on Wi
ndows) (default true)
Nov 30 14:07:31 Synology rclone[10734]: --attr-timeout duration                  Time for which file/directory attributes ar
e cached (default 1s)
Nov 30 14:07:31 Synology rclone[10734]: --daemon                                 Run mount in background and exit parent pro
cess (as background output is suppressed, use --log-file with --log-format=pid,... to monitor) (not supported on Windows)
Nov 30 14:07:31 Synology rclone[10734]: --daemon-timeout duration                Time limit for rclone to respond to kernel
(not supported on Windows)
Nov 30 14:07:31 Synology rclone[10734]: --daemon-wait duration                   Time to wait for ready mount from daemon (m
aximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
Nov 30 14:07:31 Synology rclone[10734]: --debug-fuse                             Debug the FUSE internals - needs -v
Nov 30 14:07:31 Synology rclone[10734]: --default-permissions                    Makes kernel enforce access control based o
n the file mode (not supported on Windows)
Nov 30 14:07:31 Synology rclone[10734]: --devname string                         Set the device name - default is remote:pat
h
Nov 30 14:07:31 Synology rclone[10734]: --dir-cache-time duration                Time to cache directory entries for (defaul
t 5m0s)
Nov 30 14:07:31 Synology rclone[10734]: --dir-perms FileMode                     Directory permissions (default 0777)
Nov 30 14:07:31 Synology rclone[10734]: --file-perms FileMode                    File permissions (default 0666)
Nov 30 14:07:31 Synology rclone[10734]: --fuse-flag stringArray                  Flags or arguments to be passed direct to l
ibfuse/WinFsp (repeat if required)
Nov 30 14:07:31 Synology rclone[10734]: --gid uint32                             Override the gid field set by the filesyste
m (not supported on Windows)
Nov 30 14:07:31 Synology rclone[10734]: -h, --help                                   help for mount
Nov 30 14:07:31 Synology rclone[10734]: --max-read-ahead SizeSuffix              The number of bytes that can be prefetched
for sequential reads (not supported on Windows) (default 128Ki)
Nov 30 14:07:31 Synology rclone[10734]: --network-mode                           Mount as remote network drive, instead of f
ixed disk drive (supported on Windows only)
Nov 30 14:07:31 Synology rclone[10734]: --no-checksum                            Don't compare checksums on up/download
Nov 30 14:07:31 Synology rclone[10734]: --no-modtime                             Don't read/write the modification time (can
 speed things up)
Nov 30 14:07:31 Synology rclone[10734]: --no-seek                                Don't allow seeking in files
Nov 30 14:07:31 Synology rclone[10734]: --noappledouble                          Ignore Apple Double (._) and .DS_Store file
s (supported on OSX only) (default true)
Nov 30 14:07:31 Synology rclone[10734]: --noapplexattr                           Ignore all "com.apple.*" extended attribute
s (supported on OSX only)
Nov 30 14:07:31 Synology rclone[10734]: -o, --option stringArray                     Option for libfuse/WinFsp (repeat if re
quired)
Nov 30 14:07:31 Synology rclone[10734]: --poll-interval duration                 Time to wait between polling for changes, m
ust be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
Nov 30 14:07:31 Synology rclone[10734]: --read-only                              Only allow read-only access
Nov 30 14:07:31 Synology rclone[10734]: --uid uint32                             Override the uid field set by the filesyste
m (not supported on Windows)
Nov 30 14:07:31 Synology rclone[10734]: --umask int                              Override the permission bits set by the fil
esystem (not supported on Windows) (default 18)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-cache-max-age duration             Max age of objects in the cache (default 1h
0m0s)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-cache-max-size SizeSuffix          Max total size of objects in the cache (def
ault off)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-cache-mode CacheMode               Cache mode off|minimal|writes|full (default
 off)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-cache-poll-interval duration       Interval to poll the cache for stale object
s (default 1m0s)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-case-insensitive                   If a file name not found, find a case insen
sitive match
Nov 30 14:07:31 Synology rclone[10734]: --vfs-disk-space-total-size SizeSuffix   Specify the total space of disk (default of
f)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-fast-fingerprint                   Use fast (less accurate) fingerprints for c
hange detection
Nov 30 14:07:31 Synology rclone[10734]: --vfs-read-ahead SizeSuffix              Extra read ahead over --buffer-size when us
ing cache-mode full
Nov 30 14:07:31 Synology rclone[10734]: --vfs-read-chunk-size SizeSuffix         Read the source objects in chunks (default
128Mi)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-read-chunk-size-limit SizeSuffix   If greater than --vfs-read-chunk-size, doub
le the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-read-wait duration                 Time to wait for in-sequence read before se
eking (default 20ms)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-used-is-size rclone size           Use the rclone size algorithm for Used size
Nov 30 14:07:31 Synology rclone[10734]: --vfs-write-back duration                Time to writeback files after last use when
 using cache (default 5s)
Nov 30 14:07:31 Synology rclone[10734]: --vfs-write-wait duration                Time to wait for in-sequence write before g
iving error (default 1s)
Nov 30 14:07:31 Synology rclone[10734]: --volname string                         Set the volume name (supported on Windows a
nd OSX only)
Nov 30 14:07:31 Synology rclone[10734]: --write-back-cache                       Makes kernel buffer writes before sending t
hem to rclone (without this, writethrough caching is used) (not supported on Windows)
Nov 30 14:07:31 Synology rclone[10734]: Use "rclone [command] --help" for more information about a command.
Nov 30 14:07:31 Synology rclone[10734]: Use "rclone help flags" for to see the global flags.
Nov 30 14:07:31 Synology rclone[10734]: Use "rclone help backends" for a list of supported services.
Nov 30 14:07:31 Synology rclone[10734]: 2022/11/30 14:07:31 Fatal error: unknown flag: --drive-no-versions
Nov 30 14:07:31 Synology systemd[1]: rclone.service: main process exited, code=exited, status=1/FAILURE
Nov 30 14:07:31 Synology fusermount[10783]: /bin/fusermount: failed to unmount /volume1/medien/emby: Invalid argument
Nov 30 14:07:31 Synology systemd[1]: rclone.service: control process exited, code=exited status=1
Nov 30 14:07:31 Synology systemd[1]: Failed to start Rclone Service.
Nov 30 14:07:31 Synology systemd[1]: Unit rclone.service entered failed state.
Nov 30 14:07:31 Synology systemd[1]: rclone.service failed.
Nov 30 14:07:49 Synology systemd[1]: rclone.service holdoff time over, scheduling restart.

That's showing you is isn't starting as you have some old process hanging around and your file is not quite right.

On your service file, the last line should not have a \ as it's the last line. The \ is used to signify that the output continues to the next line.

Remove the \ there.

systemctl daemon-reload

Check for rclone processes:

ps -ef | grep rclone

Ensure no other ones are running and then

systemctl start rclone
journalctl -u rclone -b

Share the output of the last two commands.