Plex - Buffering issue hetzner | PlexGuide.com

Plex Buffering issue hetzner

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

TheCrank

Citizen+
Original poster
Apr 15, 2018
22
5
Hi guys.

I have issue with my server, suddenly (without any changes) started to have buffer issues.
I think the issue is related to my tdrive somehow, but im not sure how to find the error.

The reason i think its tdrive releated is that i have tried to copy some TV Shows, to the HDD of my hetzner server, and they play without issues. Only the stuff from google has issues.

So i really hope someone, can point me in the direction i need to go to find the error..

I'm using PG Blitz unencrypted & Hetzner dedicated server.

Help is much appreciated! :)
 

doob

Administrator
Project Manager
Jun 7, 2020
851
448
well done have fun ;)
Code:
sudo apt-get update -yqq
sudo apt-get upgrade -yqq
sudo apt-get autoremove -yqq
sudo apt-get autoclean -yqq
sudo apt-get install ethtool -yqq
sudo ethtool -K  $(ifconfig | grep -E 'eno1|enp|ens5' | awk '{print $1}' | sed -e 's/://g') tso off tx off
 

Edrock200

MVP
Staff
Nov 17, 2019
545
195
Couple of things:
Are you using CDN (shouldn't matter if it plays local content fine but just curious)

Was your server downloading or uploading content at the same time? E.g. were you copying your tv libraries to it while doing your test or scanning in libraries from Google drive? That may have limited the servers ability to pull content from Google fast enough.

If no,
Try this:
sudo pg
PG clone
rclone settings
Set VFS chunk size to 32M and max chunk size to 512M. See if that offers any relief. Should also make for faster zap time. While you are in their recommend setting did cache time to 7200 although that shouldn't be related to playback issues.
 

TheCrank

Citizen+
Original poster
Apr 15, 2018
22
5
Did you check whether its an I/O ban from google?

Det er sket før nemlig ;)
Like i said, im not sure where to check for this? :)

well done have fun ;)
Code:
sudo apt-get update -yqq
sudo apt-get upgrade -yqq
sudo apt-get autoremove -yqq
sudo apt-get autoclean -yqq
sudo apt-get install ethtool -yqq
sudo ethtool -K  $(ifconfig | grep -E 'eno1|enp|ens5' | awk '{print $1}' | sed -e 's/://g') tso off tx off
Can you explain this further? :)

Couple of things:
Are you using CDN (shouldn't matter if it plays local content fine but just curious)

Was your server downloading or uploading content at the same time? E.g. were you copying your tv libraries to it while doing your test or scanning in libraries from Google drive? That may have limited the servers ability to pull content from Google fast enough.

If no,
Try this:
sudo pg
PG clone
rclone settings
Set VFS chunk size to 32M and max chunk size to 512M. See if that offers any relief. Should also make for faster zap time. While you are in their recommend setting did cache time to 7200 although that shouldn't be related to playback issues.
"CDN" ? Tested with some local content, which played just fine. Its only sometimes also that stuff from google starts to buffer.

Server is also handling torrent files, but all upload & download speed is capped to 25 MiB/s, and this has never caused any issues. So i dont think this is the problem.

Currently:
VFS Chunk Size: 64

Max chunk, what are you reffering to here? Drive-Chunk-Size [currently: 64M] or VFS-Read-Chunk-Size-Limit [currently: 2048M]
cache time, also here is unclear which option you are referring to.

Heres a copy paste of rclone settings, but this has been running with these setting for multiple months whitout issues.

⏫ Upload Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1] BW Limit [25M]
[2] Drive-Chunk-Size 64M [64M]
[3] Transfers 8 [8]
[4] Max-Transfer 750G [750G]

⏬ Download Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[5] Buffer-Size 16M [16M]
[6] VFS-Read-Chunk-Size 64M [32M]
[7] VFS-Read-Chunk-Size-Limit 1024M [2048M]

 VFS Cache Mode Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[8] VFS-Cache-Mode writes [off]
[9] VFS-Cache-Max-Age 1h [1h]
[10] VFS-Cache-Max-Size 100G [off]

 Misc Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[11] Dir-Cache-Time 5m [5m]
[12] Log-Level NOTICE [NOTICE]
[13] User Agent [thisisjustsomethingelse]

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 

Edrock200

MVP
Staff
Nov 17, 2019
545
195
You definitely don't want your VFS Cache Mode set to off. Set it to either minimal, although I recommend writes. Would also lower VFS Read chunk size limit to 512M or 1024M. The other item I was referring to was #6, but you already have it set at 32M.

Unrelated, I would up #11 to the max, 7200 I think.

For API hits, go to console.developers.google.com and login with your gsuite. Your initial project dashboard should show API and project hit counts.

Although 250mbs throttling should not be impacting your streaming, the # of connections might be, although I doubt it. But for a test I would try stopping your torrent container. Also, did you setup VPN with torrents, if so, is your plex container running through the VPN too? That may impact.

CDN is cloudflare proxy but if local content plays fine, it's most likely not going to help.

Did you by chance install the netdata container? If so, does it show significant download bandwidth occuring? If you go to the PG menu, and tools I think, theres some speedtests and benchmarks, and in the pgclone menu, theres a rclone/gdrive speedtest option to. I would recommend doing those as well to see how your speed to/from google is. Last, set your host DNS servers to google public DNS to ensure you are getting the closest google drive node.
 

TheCrank

Citizen+
Original poster
Apr 15, 2018
22
5
You definitely don't want your VFS Cache Mode set to off. Set it to either minimal, although I recommend writes. Would also lower VFS Read chunk size limit to 512M or 1024M. The other item I was referring to was #6, but you already have it set at 32M.

Unrelated, I would up #11 to the max, 7200 I think.

For API hits, go to console.developers.google.com and login with your gsuite. Your initial project dashboard should show API and project hit counts.

Although 250mbs throttling should not be impacting your streaming, the # of connections might be, although I doubt it. But for a test I would try stopping your torrent container. Also, did you setup VPN with torrents, if so, is your plex container running through the VPN too? That may impact.

CDN is cloudflare proxy but if local content plays fine, it's most likely not going to help.

Did you by chance install the netdata container? If so, does it show significant download bandwidth occuring? If you go to the PG menu, and tools I think, theres some speedtests and benchmarks, and in the pgclone menu, theres a rclone/gdrive speedtest option to. I would recommend doing those as well to see how your speed to/from google is. Last, set your host DNS servers to google public DNS to ensure you are getting the closest google drive node.
I have changed VFS Cache mode to write. Lowered VFS Read Chunk Size to 512M. Also upped #11 to 7620 which is max. But dosent this get slow updates when sonarr/radarr adds new content to plex?

API HIts from google shows currently 1.601.052 (30 days) and 274.066 for 7 days.

I will try in a sec to stop my torrent container, but i really doubt this, since its not many days ago since i've cleared all torrent from the program.
No VPN is being used, so this dosent have an impact.

Netdata container is installed, but nothing strange here.

DNS is set to google

RCLONE SPEEDTEST (from pgclone menu) result:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏩ Running RClone speed test
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Allocating 4G test file...
Starting upload to gdrive...
Transferred: 4G / 4 GBytes, 100%, 51.282 MBytes/s, ETA 0s
Errors: 0
Checks: 0 / 0, -
Transferred: 1 / 1, 100%
Elapsed time: 1m19.8s

Upload complete, deleting local file...
Starting download from gdrive...
Transferred: 4G / 4 GBytes, 100%, 91.135 MBytes/s, ETA 0s
Errors: 0
Checks: 0 / 0, -
Transferred: 1 / 1, 100%
Elapsed time: 44.9s

Download complete, deleting remote file...

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✔ Completed RClone speed test
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

SIMPLE SPEED TEST:

Hosted by ANTEC Servicepool GmbH (Hannover) [120.85 km]: 13.527 ms
Testing download speed................................................................................
Download: 589.61 Mbit/s
Testing upload speed................................................................................................
Upload: 438.21 Mbit/s

[2] System & Network Benchmark - Advanced

Benchmark started on 22-Jul-2020 17:46:43

## System Information

OS Name : Ubuntu 18.04.4 LTS (64 bit)
Kernel : Dedicated / 4.15.0-112-generic
Hostname : Ubuntu-1804-bionic-64-minimal
CPU Model : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
CPU Cores : 8 cores @ 4137.722 MHz
CPU Cache : 8192 KB
Total RAM : 64207 MiB (Free 62009 MiB)
Total SWAP : 65471 MiB (Free 65471MiB)
df: /mnt/tdrive: Transport endpoint is not connected
Total Space : 1.1PB (1% used)
Running for : 19 minutes 18 seconds


## CDN Speedtest

CacheFly : 95.60 MiB/s | 764.82 Mbps | ping 4.946ms
CDN.net :ping: 219848522.r.worldcdn.net: Name or service not known
0 B/s | N/A | ping error!

## North America Speedtest

Softlayer, Washington, USA : 2.58 MiB/s | 20.63 Mbps | ping 91.551ms
SoftLayer, San Jose, USA : 677.00 KiB/s | 5.29 Mbps | ping 155.708ms
SoftLayer, Dallas, USA : 0 B/s | N/A | ping error!
Vultr, New Jersey, USA : 27.06 MiB/s | 216.45 Mbps | ping 80.857ms
Vultr, Seattle, USA : 12.16 MiB/s | 97.25 Mbps | ping 146.280ms
Vultr, Dallas, USA : 15.13 MiB/s | 121.04 Mbps | ping 127.819ms
Vultr, Los Angeles, USA : 11.06 MiB/s | 88.46 Mbps | ping 150.476ms
Ramnode, New York, USA : 25.12 MiB/s | 200.99 Mbps | ping 91.812ms
Ramnode, Atlanta, USA : 21.70 MiB/s | 173.64 Mbps | ping 102.836ms
OVH, Beauharnois, Canada : 2.20 MiB/s | 17.63 Mbps | ping 95.445ms


## Europe Speedtest

Vultr, London, UK : 83.26 MiB/s | 666.11 Mbps | ping 19.723ms
LeaseWeb, Frankfurt, Germany : 101.35 MiB/s | 810.78 Mbps | ping 5.257ms
Hetzner, Germany : 98.62 MiB/s | 788.95 Mbps | ping 2.526ms
Ramnode, Alblasserdam, NL : 92.41 MiB/s | 739.28 Mbps | ping 13.123ms
Vultr, Amsterdam, NL : 96.06 MiB/s | 768.49 Mbps | ping 11.312ms
EDIS, Stockholm, Sweden : 1.32 KiB/s | 0.01 Mbps | ping 37.240ms
OVH, Roubaix, France : 81.10 MiB/s | 648.82 Mbps | ping 13.048ms
Online, France : 57.76 MiB/s | 462.11 Mbps | ping 17.267ms
Prometeus, Milan, Italy : 5.84 KiB/s | 0.05 Mbps | ping 14.100ms


## Exotic Speedtest

Sydney, Australia : 1.87 MiB/s | 14.97 Mbps | ping 304.751ms
Lagoon, New Caledonia : 0 B/s | N/A | ping error!
Hosteasy, Moldova : 42.54 MiB/s | 340.28 Mbps | ping 40.885ms
Prima, Argentina : 235.08 KiB/s | 1.84 Mbps | ping error!


## Asia Speedtest

SoftLayer, Singapore : 380.06 KiB/s | 2.97 Mbps | ping 175.215ms
Linode, Tokyo, Japan :ping: speedtest.tokyo.linode.com: Name or service not known
0 B/s | N/A | ping error!
Linode, Singapore : 4.65 MiB/s | 37.21 Mbps | ping 170.834ms
Vultr, Tokyo, Japan : 4.82 MiB/s | 38.53 Mbps | ping 247.672ms


## IO Test

CPU Speed:
bzip2 512MB - 153 MB/s
sha256 512MB - 239 MB/s
md5sum 512MB - 704 MB/s

Disk Speed (512MB):
I/O Speed - 2.8 GB/s
I/O Direct - 142 MB/s

RAM Speed (1024MB):
Avg. write - 5427.2 MB/s
Avg. read - 10171.7 MB/s

Benchmark finished in 98 seconds
 

Edrock200

MVP
Staff
Nov 17, 2019
545
195
I have changed VFS Cache mode to write. Lowered VFS Read Chunk Size to 512M. Also upped #11 to 7620 which is max. But dosent this get slow updates when sonarr/radarr adds new content to plex?
Your stats all look good. However, I had mentioned setting VFS Read Chunk Size LIMIT to 512, not VFS Read Chunk Size (without Limit on the end.) That should remain at 32M, although you can test it at 128M as well.

I don't see any reason for your setup to be buffering on you. You can also try playing with the buffer setting. Some people have better results setting it to 0, some setting it to 32 or 64.

What are the characteristics of the test files you are using, e.g. 1080p mkv movie, 10GB is size, etc.
 

TheCrank

Citizen+
Original poster
Apr 15, 2018
22
5
Your stats all look good. However, I had mentioned setting VFS Read Chunk Size LIMIT to 512, not VFS Read Chunk Size (without Limit on the end.) That should remain at 32M, although you can test it at 128M as well.

I don't see any reason for your setup to be buffering on you. You can also try playing with the buffer setting. Some people have better results setting it to 0, some setting it to 32 or 64.

What are the characteristics of the test files you are using, e.g. 1080p mkv movie, 10GB is size, etc.
Sure, my writing mistake. Settings for rclone is now:

⏫ Upload Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1] BW Limit [25M]
[2] Drive-Chunk-Size 64M [64M]
[3] Transfers 8 [8]
[4] Max-Transfer 750G [750G]

⏬ Download Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[5] Buffer-Size 16M [16M]
[6] VFS-Read-Chunk-Size 64M [32M]
[7] VFS-Read-Chunk-Size-Limit 1024M [512M]

 VFS Cache Mode Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[8] VFS-Cache-Mode writes [writes]
[9] VFS-Cache-Max-Age 1h [1h]
[10] VFS-Cache-Max-Size 100G [off]

 Misc Settings Default Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[11] Dir-Cache-Time 5m [7620m]
[12] Log-Level NOTICE [NOTICE]
[13] User Agent [thisisjustsomethingelse]

So there shouldnt be any problems.

For testing i have tried different files. A simple TV Episode 720p with 2-4 GB in size also buffers. And this is still the issues after the changes. Its almost like Plex the server dosent grab the file from google and then playing it. Nothing want to play on my server, its just standing "Buffering"
 

doob

Administrator
Project Manager
Jun 7, 2020
851
448
[[[

See this line ;)

}}}}

df: /mnt/tdrive: Transport endpoint is not connected

]]]]]

Here my rclone.env

Code:
cat rclone.env
uagent=[[[masked]]]
vfs_ll=ERROR
vfs_bs=16M
vfs_rcs=64M
vfs_rcsl=2048M
vfs_cm=writes
vfs_cma=1h
vfs_cms=40G                                                    vfs_dct=5m
And I can play 4K without any problem or buffer issues
 

gocartman

Citizen+
Feb 4, 2018
15
1
I have also started having buffering issues with my server since a couple days ago. One thing that really stands out is that Plex have HUGE problems with direct playing .SRT files now. Which really should not be a problem. Even infuse on my ATV4K can't play my video files right now. It must be something going on with google I think. I also tried disable CDN (Cloudflar) on my plex domain but with no luck.

Im using these rclone settings:

Code:
⏫ Upload Settings            Default  Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1]  BW Limit  [80M]
[2]  Drive-Chunk-Size          64M     [64M]
[3]  Transfers                 8       [8]
[4]  Max-Transfer              750G    [750G]

⏬ Download Settings          Default  Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[5]  Buffer-Size               16M     [16M]
[6]  VFS-Read-Chunk-Size       64M     [64M]
[7]  VFS-Read-Chunk-Size-Limit 1024M   [1024M]

🔄 VFS Cache Mode Settings    Default  Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[8]  VFS-Cache-Mode            writes  [writes]
[9]  VFS-Cache-Max-Age         1h      [1h]
[10] VFS-Cache-Max-Size        100G    [off]

🔣 Misc Settings              Default  Current
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[11] Dir-Cache-Time            5m      [5m]
[12] Log-Level                 NOTICE  [NOTICE]
[13] User Agent [rclone/v1.48]
 

doob

Administrator
Project Manager
Jun 7, 2020
851
448
well done have fun ;)
Code:
sudo apt-get update -yqq
sudo apt-get upgrade -yqq
sudo apt-get autoremove -yqq
sudo apt-get autoclean -yqq
sudo apt-get install ethtool -yqq
sudo ethtool -K  $(ifconfig | grep -E 'eno1|enp|ens5' | awk '{print $1}' | sed -e 's/://g') tso off tx off

This one is a network patch, so you can use the 100% of the network
 

TheCrank

Citizen+
Original poster
Apr 15, 2018
22
5
[[[

See this line ;)

}}}}

df: /mnt/tdrive: Transport endpoint is not connected

]]]]]

Here my rclone.env

Code:
cat rclone.env
uagent=[[[masked]]]
vfs_ll=ERROR
vfs_bs=16M
vfs_rcs=64M
vfs_rcsl=2048M
vfs_cm=writes
vfs_cma=1h
vfs_cms=40G                                                    vfs_dct=5m
And I can play 4K without any problem or buffer issues
Restart helped on that problem. But problems is still there :(
Post automatically merged:

This one is a network patch, so you can use the 100% of the network
Didnt help either :(
 

doob

Administrator
Project Manager
Jun 7, 2020
851
448
Is this the same as the network optimizer in the PG Tools menu or different? Thanks again for the helpful tips!
Its the same ;)
[ NOTE ]
I made the network patch and logrotate for round about 1.5 year ;)
 
  • Like
Reactions: 1 user

Edrock200

MVP
Staff
Nov 17, 2019
545
195
Its the same ;)
[ NOTE ]
I made the network patch and logrotate for round about 1.5 year ;)
haha of course you did ;-) Thanks! I already implemented that one :) quick q though, applying that doesn't require remounts/restarts, correct? or no? I just remembered I didn't enable that on a friends setup.
 

Edrock200

MVP
Staff
Nov 17, 2019
545
195
Restart helped on that problem. But problems is still there :(
Post automatically merged:



Didnt help either :(
Well now you've definitely got my curiosity up. I'll send you a DM with some speedtest links and such to try.
 

doob

Administrator
Project Manager
Jun 7, 2020
851
448
first stop hammering the api
You need to wait until each edit
Its not instant the edits

The cache and the dir-cacbe need some time.
Stop plex refreshing per media butler
Use plexautoscan ;) for drive-montorring.

Update mergefs and rclone to the latest versions
PG v8.7 5 used an old version of rclone and megerfs.
 

Edrock200

MVP
Staff
Nov 17, 2019
545
195
first stop hammering the api
You need to wait until each edit
Its not instant the edits

The cache and the dir-cacbe need some time.
Stop plex refreshing per media butler
Use plexautoscan ;) for drive-montorring.

Update mergefs and rclone to the latest versions
PG v8.7 5 used an old version of rclone and megerfs.
And just a heads up to Doobs recommendations (which are good ones) is be aware if you go into the pg clone menu after upgrading rclone, it will rever rclone back to 1.48, so keep that in mind, as you will need to re-upgrade each time you do this, especially if you are dependent on features in the newer version like following Google Drive shortcuts.
 

Edrock200

MVP
Staff
Nov 17, 2019
545
195
I have also started having buffering issues with my server since a couple days ago. One thing that really stands out is that Plex have HUGE problems with direct playing .SRT files now. Which really should not be a problem. Even infuse on my ATV4K can't play my video files right now. It must be something going on with google I think. I also tried disable CDN (Cloudflar) on my plex domain but with no luck.
Your settings look good. I would change the user agent string but that shouldn't be causing the buffering. What happens when you try playback on a web browser, same thing?
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending