Hello
Description
Playback randomly stops while enjoying Plex either over Web player (direct to server) or over the Kodi Plex Plugin. On the Web Player it’s usually sufficient to stop the playback and start it again, the Kodi plugin crashes Kodi (which is annoying) and I have to restart Kodi…
After restarting it usually works again for some time (~40mins) and then randomly crashes again, sometimes at shorter intervals, sometimes longer.
Needless to say this is a bit annoying. I’d love help in debugging this, please. Below I’ve tried to lay out my debugging steps…
My Setup
GCP (1 vCPU, 5.5 GB memory) host running Docker
Dockerized Plex (docker-compose file attached)
exposed via dockerized Nginx reverse proxy (for SSL, over port 443), nginx.conf attached
Playing on my laptop via Plex Web Player directly on server
or Playing via Kodi Plex Plugin on my home media center running on a Raspberry Pi 3B+
Debugging Steps
resources:
- checked resources on host and RPi, CPU is going at ~50% on server and 60-70% on RPi
- Memory is utilized to a low degree, a lot free
don’t think it’s a resource issue. also it happens when there files are streamed and played in original format, no transcoding required, another indication that it’s not about resources
then i had a look at the logs and isolated the recurring entries after grep-ing for error (full logs attached):
ERROR - ClientProfileExtra: missing protocol parameter
(Reddit - Dive into anything)
→ i don’t see messages popping up saying: “cannot convert item”, for me it plays and then randomly stops
ERROR - Unable to find client profile for device; platform=Kodi, platformVersion=18.6, device=RaspberryPi, model=Unknown
→ ignore
(“Unable to find client profile” errors on LG Smart TVs, Long Pause Before Playback)
ERROR - Unknown metadata type: folder
→ doesn’t bother me that much, i don’t see errors in the library views
(Plex Client issue: Unknown metadata type: folder)
ERROR - [Transcoder] [mp4 @ 0x2886700] Application provided duration: -8 / timestamp: 727028 is out of range for mov/mp4 format
only found a very old post PMS Error: "[FFMPEG] - Failed to create Direct3D device"
seems to me this is just an info that for this media the mov/mp4 is not the right transcoder… also, i’ve never had an issue with a file not playing, they just randomly stop
WARN - NAT: PMP, got an error: Not Supported by gateway.
this i’m unsure about, but i’m guessing that is normal since everything is exposed behind nginx over SSL and port 32400 is not publicly available
ERROR - EventSource: Retrying in 15 seconds.
→ ?
DEBUG - NotificationStream: Removing because of error
→ this is a debug message, i’m guessing one of the above messages is the cause?
This is as far as i’v gotten with debugging it. but none of my actions seemed to resolve the problem…
Hoping this is clear enough. Thank you very much in advance for any help!
i really enjoy the advantages of Plex, but these random stops can take the fun out of watching. i’d love to get that sorted…
logs are attached, there are a couple of server restarts and Docker restarts in there, which I did to be able to continue the playback
Note: i clearly set Plex Web — Debug – Debug Level : Disabled. but i still see Verbose entries in my logs… I didn’t change any default log levels, though.
PMS_logs.log (19.8 MB) docker-compose.yaml.txt (1.2 KB) nginx.conf.txt (2.7 KB)
Server Version#:
version=1.19.1.2645-ccb6eb67e
plex_build=linux-x86_64
plex_distro=debian
Player Version#:
Web-based over server IP
and latest official Kodi Plex Plugin (0.2.0) on Kodi, running on Raspberry Pi 3 B+