Plex buffering frequently

I recently in the last couple of months moved all of my Plex media storage to a Google Drive and user a MergerFS mount combined with an rclone mount to present that media to Plex. The MergerFS mount presents a local directory that Sonarr/Radarr writes to first along with the Google Drive and a script uploads daily from the local directory to the drive.

Ever since it seems like I'll randomly get a period where a bunch of people will experience buffering for ~10 minutes or so and then everything will work fine. But not everyone experiences the trouble. Seems to happen at least once a day, usually in the evenings. Sometimes there's 3-4 plays occuring, sometimes there's 10. I've tried to check everything I can think of.

I don't believe it's a bandwidth issue, I have gigabit fiber that's synchronous. Frequent speed tests show AT&T is providing that, consistently 800+ Mbps and 5ms latency.

I thought it might be a CPU issue with multiple transcodes but it seems like direct plays experience the trouble far more often. Rarely does a transcoding session buffer when this trouble is occurring.

It happens on multiple device types, Plex Web, Xbox One, iOS, Fire Stick etc...

It happens on streams local to my server and remote, I understand the media is always remote from the server unless it's a fresh download.

I checked the Plex service status and it's not reporting any instances of a slow db when the trouble occurred.

I thought Sonarr/Radarr etc... might be kicking off a scan causing API errors but I checked the metrics on my Google API dashboard and it shows no errors during tonight's trouble. I am also using my own Client ID instead of the default rclone one.

Server is hosted on an R710 running ESXi. VM has 12vCPUs and 16GB of RAM and is running on Ubuntu 18.04. Running the latest PlexPass release.The VM traffic is also traversing a 10Gb link from the R710 > LAN > Firewall (pfSense) where it then leaves on the 1Gb WAN connection.

Here is my rclone mount. Is there anything else I should be checking for?

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

[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/administrator/.config/rclone/rclone.conf
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount m_crypt: /mnt/m_crypt/
--allow-other
--buffer-size 128M
--dir-cache-time 1000h
--log-level INFO
--log-file /opt/rclone/logs/rclone.log
--poll-interval 15s
--timeout 1h
--umask 002
--rc
--rc-addr=127.0.0.1:5791
ExecStop=/bin/fusermount -uz /mnt/m_crypt/
Restart=on-failure
User=administrator

[Install]
WantedBy=multi-user.target

And here is the MergerFS mount

root@plex01:~# cat /etc/systemd/system/mediamount.service
[Unit]
Description = /media MergerFS mount
Requires=mcryptmount.service
After=mcryptmount.service
RequiresMountsFor=/mnt/VMdata/
RequiresMountsFor=/mnt/m_crypt/

[Service]
Type=forking
ExecStart=/usr/bin/mergerfs /mnt/VMdata/Downloads/TempMedia:/mnt/m_crypt/ /mnt/media -o rw,async_read=false,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=partial,dropcacheonclose=true
KillMode=process
Restart=on-failure

#[Mount]
#What = /mnt/VMdata/Downloads/TempMedia/:/mnt/m_crypt/
#Where = /mnt/media
#Type = fuse.mergerfs
#Options = async_read=false,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full

[Install]
WantedBy=multi-user.target

I do not have your answer, but I remember reading before about this error on a Plex site, and the solution for that person ended up not using Fuse and that some of the info on that configuration was troublesome.

They stated, and others that I have seen, that the directions here: Make a Plex Server were less troublesome.

If someone else finds your problem, then ignore this. Otherwise, maybe look into it. I tested it about a year ago, and it worked flawlessly.

That also uses rclone for the encryption, so having the mount and the encryption in the same app is one less step.

FYI: Who is hosting that for you? Or are you in a lucky area that gets high speed since you mention AT&T that you can host yourself?

Thanks.

I have the exact same issue, I'm not 100% sure but I'm pretty sure it only occurs with direct play. For me, it plays perfectly fine until it randomly starts buffering. At which point if I exit the stream and resume from where I left off it continues perfectly fine until the problem repeats itself.
I thought it might have something to do with mergerfs, so I just pointed my library directly to the rclone mount to eliminate that possibility, unfortunately the problem still persists.
I should try to stream a local (local to server) file and see how it behaves, maybe that will narrow down if the problem is from plex or rclone. Although I don't face this problem with my local server, just my remote server.

Not sure what that means not using "fuse". That would mean you don't use rclone and you don't use mergerfs are both are fuse based file systems.

Run rlcone with a debug log ( -vv) and share the log when the issue occurs.

I meant adding another application to the mix, MergerFS, as rclone handles it by itself, and it can handle the encryption, which can save ram and processing speed/time with fewer applications.

The instructions that were in the link I provided, explain the entire Plex process much better, and I would not claim to me more knowledgeable than they are. They use this startup for the mount command:

rclone mount \
    --read-only \
    --allow-non-empty \
    --allow-other \
    --max-read-ahead 2G \
    --acd-templink-threshold 0 \
    --checkers 16 \
    --quiet \
    --stats 0 \
dec-tv:/ /home/plex/tv-gd/&

Some of the flags, particularly the --max-read-ahead of 2 gigs may be of interest.

it does nothing unless you have a custom compiled kernel so you can remove it.

If for Amazon Cloud Drive so can be removed.

Does nothing on a mount.

Is generally bad as it allows for overmounting and hidings things.

I use mergerfs as well as that's only needed for me to write locally first and for symlink support locally. If you have no use case for it, I wouldn't use it as it's just another layer to add on top.

@ Animosity022, your usage Fuse systems is great to know, but off the topic of the question that was asked. I will keep you in mind, as I previously had need for a intense Fuse configuration for a client, and I contracted someone more knowledgeable on that subject than I.

You have more knowledge of the flags that I, because none of the info you mention is readily available, and some surprise me.

I just displayed the startup sequence from the instructions, for the Plex box, mentioned previously. No warranty.

Thanks for the info. I appreciate it.

@ g4m3r7ag, do you have that log with the -vvv as was mentioned?

I'm still not sure what you mean by fuse configuration for a client.

Are you referring to a Plex Client? A client is a customer? I just wanted to confirm as the person you asked gave you some incorrect information.

Live person - a business customer of mine. I manage Linux servers, generally for web hosting, and Fuse is not something I generally deal with in web hosting. From the way you wrote, it seems you are a coder of some type, one that uses MergeFS!

The rclone configuration was from here https://hoarding.me/rclone-scripts/, not a physical person.

Thanks.

I will modify my mount to have the debug flag and try to see what it shows the next time it happens. Thank you, hopefully I'll have something to report back in the next couple of days.

I tried adding --verbose=vv to my mount service file but tailing the log file didn't really show any additional information appearing then what normally does? I changed --log-level from INFO to DEBUG and tailing the log shows there is a ton more output. Is this what you would need?

Yes, sorry if I wasn't clear.

You can get debug on in two ways:

"-vv --log-file /tmp/somelog.log"

or
"--log-level=DEBUG --log-file /tmp/somelog.log"

Both would do the same thing.

Same issue here.

Seeing a bunch of these:

media.log (partial)
2019/11/03 18:39:18 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 339968 length 16384 chunkO$

2019/11/03 18:39:18 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 356352 length 32768 chunkO$

2019/11/03 18:39:18 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 389120 length 65536 chunkO$

2019/11/03 18:39:18 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 454656 length 131072 chunk$

2019/11/03 18:39:18 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 585728 length 262144 chunk$

2019/11/03 18:39:18 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:18 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=458752

2019/11/03 18:39:18 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 847872 length 524288 chunk$

2019/11/03 18:39:18 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:18 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=589824

2019/11/03 18:39:18 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:18 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=720896

2019/11/03 18:39:19 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 1372160 length 1048576 chu$

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=851968

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=983040

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=1114112

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=1245184

2019/11/03 18:39:19 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 2420736 length 1048576 chu$

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=1376256

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=1507328

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=1638400

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=1769472

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=1900544

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=2031616

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=2162688

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:19 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=2293760

2019/11/03 18:39:20 DEBUG : TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv: ChunkedReader.Read at 3469312 length 1048576 chu$

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=2424832

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=2555904

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=2686976

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: >Read: read=131072, err=<nil>

2019/11/03 18:39:20 DEBUG : &{TV Shows/Dynasty (2017)/Season 3/Dynasty.2017.S03E04.1080p.AMZN.WEBRip.DDP5.1.x264-KiNGS[rarbg].mkv (r)}: Read: len=131072, offset=2818048
media.service
[Unit]
Description=rclone media mount
After=network-online.target

[Service]
Type=notify
ExecStart=/usr/bin/rclone mount \
        --config=/home/pi/.config/rclone/rclone.conf \
        --allow-other \
        --dir-cache-time 48h \
        --vfs-cache-mode writes \
        --cache-dir=/mnt/4TB/rclone \
        --buffer-size 128M \
        -vv \
        --log-file /opt/media.log \
        --rc \
        media:/ /mnt/media
Restart=always
RestartSec=10
ExecStop=/bin/fusermount -u /mnt/media
User=pi
Group=pi

[Install]
WantedBy=multi-user.target

If anyone can help out, it'll be greatly appreciated.

I searched my log for partial for the last couple of days and got nothing. Anything else stand out?

This was buffering constantly tonight, Direct Play to a Roku. Log just shows this repeating along with the same for all the other streams that were active.

2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2210349056
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2210480128
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2210611200
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2210742272
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2210873344
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211004416
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211135488
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211266560
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv: ChunkedReader.Read at 2344525824 length 1048576 chunkOffset 2284761088 chunkSize 268435456
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211397632
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211528704
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211659776
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211790848
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2211921920
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212052992
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212184064
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212315136
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv: ChunkedReader.Read at 2345574400 length 1048576 chunkOffset 2284761088 chunkSize 268435456
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212446208
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212577280
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212708352
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212839424
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: Read: len=131072, offset=2212970496
2019/11/03 21:30:40 DEBUG : &{TVShows/Show/Season 03/Show (2005) - S03E15 - Episode - Bluray-1080p.mkv (r)}: >Read: read=131072, err=

That's a smooth rclone log with no errors. Next steps would be to check your server for any contention, the device (wifi or hardwired) or anything along the way.

It would not seem to be rclone as is causing the issue based on that log.

It's happening on my wired devices as well as remote networks so I believe the eliminates a network issue related to any of the client devices. I've increased the RAM and vCPUs on the VM in the last couple of weeks attempting to eliminate that as a cause.

The log looked normal to me as well so the only thing I have left is the network link for the server. Everything other than management is using a single 10Gb interface which I suspect should be enough unless something else is maxing the link out. As unlikely as that is I went ahead and ordered a couple of DACs to setup a second link from ESXi to my 10Gb Mikrotik switch for just the Plex VM and setup a second link from pfSense to the Mikrotik and LAGG them to see if that resolves the issue.

I think it may be a bad NIC. I experienced buffering this afternoon rclone log was normal, Mikrotik switch was not showing heavy utilization on any of the links but VCSA was also slow to respond when trying to look at performance monitors in it and it rides the same 10Gb interface as the rest of the VMs. My VMkernel adapter however is on a separate 1Gb NIC. The vSwitch for the VMs has a LAGG group of 1Gb NICs as standby with the 10Gb being active. I may pull the 10Gb connection and see if the trouble persists on the 1Gb NICs.

@Animosity022 I'm back to square one I believe, it was not a bad NIC as I just encountered the trouble again after a few days of the 10Gb NIC being removed from the equation and have narrowed it down to the file being on the Google Drive and am able to replicate it with a specific release, not sure if I'm allowed to post the name of the release or if I should to see if someone can replicate it.

It downloaded to the local temp directory yesterday and was uploaded to the Google Drive early this afternoon. Shortly after I tried to play it and it had nearly constant buffering. Client is an Xbox One X, and the file was direct play entirely (container/video/audio). Tailing the rclone debug log looked exactly as the one I posted above. I moved the file off the Google Drive and to the Temp local directory and started playing it again with the same client and it played just fine, not one instance of buffering beyond the initial start. In an attempt to try and cause the trouble with it playing from the local directory if it was a network related issue I started 7-8GB worth of downloads to try and congest the WAN connection or any of the LAN connections and the file continued to play without issues.

I uploaded the file back to the Google Drive, started playing it again and it once again had near constant buffering. The Xbox One X is a wired 1Gb connection. I switched to an Nvidia Shield that is also a 1Gb wired connection, on the same exact switch and TV as the Xbox One X and attempted to play the file. The Shield as expected Direct Played everything just like the Xbox One X however it played it seamlessly without buffering. I then played the file using my iPhone over Wi-Fi which was a full transcode and it also played without issue. I then played the file using the Win10 client on a machine wired to the same switch as the Xbox and Shield, it was a full direct play and played without issue. On the same machine I initiated the stream from Plex Web in Chrome which caused a container transcode and it played without issue. I tried playing it on a Roku Stick+ via Wi-Fi, which also was a full direct play and played without issue. Just to ensure the issue hadn't magically cleared, I started the stream on the Xbox One X again and it buffered nearly constantly.

To verify it wasn't a cache issue, I changed the cache size on my mount from 128M to 1G, rebooted the Plex server and rebooted the Xbox and the trouble remained.

All of this testing was within 30 minutes.

If it was a codec issue on the Xbox I believe it would have had the same trouble when the file was local instead of just when it is on the Google Drive. I have multiple users reporting issues with various files every week across various players. Xbox and Plex Web I can say for sure, I believe a Firestick and an Apple TV also had issues. I just happened to encounter the trouble on Xbox on a file I was trying to watch and could do more testing.

At this point I'm not sure what to try but it is becoming very annoying, I really would prefer to not have to switch back to local storage as the idea of decomissioning a 45-bay SuperMicro and not buying multiple hard drives every year is very enticing.

I think the XBox One X is just an awful Plex client from what I remember.

I stream with Apple TVs (both regular and a 4K) without any issues.

Plex generally expects local storage so not all players handle cloud files well as you are seeing.

You'd probably want to focus on the clients that work.

Direct Stream or Transocde tends to always work as it builds that on the Plex Server and buffers there.

Direct Play depends on the client and how the client buffers things. XBX has a tiny buffer and if I remember, opens and closes files a lot making it not a great client for Direct Playing with cloud storage.

My advice would be to not use the XBX :slight_smile: