Buffering issues with Plex

Hello there! I'm having weird issues with Plex and rClone:
Yesterday I was watching a 4k remux (68gb, estimated at 128mbps), the movie is about 2h29m and for the first 2 hours everything went fine but after that, the movie was buffering like hell every 30 seconds.

  • My Plex server is hosted in a Hetzner VPS with 20gpbs network, RAM usage was 3/16GB and CPU at 5%.
  • At home I have 1gpbs, my client is a Xiaomi MiBox S with USB 2.0 to ethernet (so 400mpbs I wonder?)

The only thing that can be interfering is a script that make all of my containers (including plex) to restart every day at 00:00. I was watching the movie at the same time and i think It's just after the restart that I got buffering issue, I also tried to restart the mibox to see but nothing changed.

How can I troubleshoot this? Is it a server or client side issue?

Thanks for any answers!

What is your rclone version (output from rclone version)

rclone v1.52.3
- os/arch: linux/amd64
- go version: go1.14.7

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

PRETTY_NAME="Debian GNU/Linux 10 (buster) x64"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian

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-other \
        --uid 911 \
        --gid 911 \
        --umask 000 \
        --buffer-size 256M \
        --dir-cache-time 720h \
        --drive-chunk-size 512M \
        --log-level INFO \
        --vfs-read-chunk-size 128M \
        --vfs-read-chunk-size-limit off \
        --vfs-cache-mode writes \
        --bind=$RCloneMountIP \
        $RcloneRemoteName: $RcloneMountLocation &

The rclone config contents with secrets removed.

--------------------
[gdrive]
type = drive
client_id = xxxxx.apps.googleusercontent.com
client_secret = xxxxx
scope = drive
token = {"access_token":xxxxxx","token_type":"Bearer","refresh_token":"xxxxxx","expiry":"2020-09-14T10:35:00.956709392+02:00"}
--------------------
Edit remote
** See help for drive backend at: https://rclone.org/drive/ **

Value "client_id" = "xxxxx.apps.googleusercontent.com"

Plex clients does not particularly like restarted servers whilst streaming - test it for yourself any other time of day as well.

1 Like

I modified the script to be running at 4:00AM instead of 00:00. I'll try tonight when I get home and let you know tomorrow!

What is the point of the restart?

hi,
you should check out v1.53.1, as there has been a new version of the vfs cache

Only a cosmetic fix re logging for VFS though - so 1.53 vanilla would do and behaviour would be the same.

agreed,
i was just pointing out that there is a shiny new vfs cache

1 Like

The OP is on 1.52 which does not have it so recommending 1.53.1 which is the latest would be the recommended route rather than an older release which has a few bugs that were point fixed.

1 Like