Plugin crashed on PMS on ubuntu 18.04

Server Version#: Version 1.13.9.5439
Player Version#:

when looking at the status it says running but i can not connect to it. When i try rebooting it it gets stuck at trying to stop a job from plex. Can this be the fault of the new function of on demand subtitle search as you can see here:

● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-10-10 06:28:49 UTC; 1 day 9h ago
Main PID: 9164 (sh)
Tasks: 202 (limit: 4661)
CGroup: /system.slice/plexmediaserver.service
├─ 9164 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver “/usr/lib/plexmediaserver/Plex Media Server”
├─ 9165 /usr/lib/plexmediaserver/Plex Media Server
├─ 9261 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/System.bundle
├─ 9378 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.13.9.5439-7303bc002 32600 /waitmutex
├─ 9684 Plex Plug-in [com.plexapp.plugins.WebTools] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundl
├─ 9721 Plex Plug-in [com.plexapp.agents.subzero] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle
├─29906 Plex Plug-in [com.plexapp.agents.opensubtitles] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/OpenSubtitles.bundle
├─29932 Plex Plug-in [com.plexapp.agents.podnapisi] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/PodnapisiSubti
├─29956 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/TheMovieDB.bundle
├─30036 Plex Plug-in [com.plexapp.agents.thetvdb] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/TheTVDB.bundle
├─30141 Plex Plug-in [com.plexapp.agents.plexthememusic] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/PlexThemeMusic.bundle
├─30174 Plex Plug-in [com.plexapp.agents.fanarttv] /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.9.5439-7303bc002 /usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Fanart-TV.bundle
├─30231 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:localhost:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/relayHostKey.txt -o NoneSwitch=yes -o NoneEnabled=yes -o LogLevel=VERBOSE -o PreferredAuthentications=p
├─30233 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:localhost:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/relayHostKey.txt -o NoneSwitch=yes -o NoneEnabled=yes -o LogLevel=VERBOSE -o PreferredAuthentications=p
├─30234 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:localhost:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/relayHostKey.txt -o NoneSwitch=yes -o NoneEnabled=yes -o LogLevel=VERBOSE -o PreferredAuthentications=p
└─30235 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:localhost:32401 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/relayHostKey.txt -o NoneSwitch=yes -o NoneEnabled=yes -o LogLevel=VERBOSE -o PreferredAuthentications=p

Oct 11 15:15:19 netplex sh[9164]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 416, in _call_chain
Oct 11 15:15:19 netplex sh[9164]: result = func(*args)
Oct 11 15:15:19 netplex sh[9164]: File “/usr/lib/plexmediaserver/Resources/Plug-ins-7303bc002/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 565, in http_error_default
Oct 11 15:15:19 netplex sh[9164]: raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
Oct 11 15:15:19 netplex sh[9164]: HTTPError: HTTP Error 415: UNSUPPORTED MEDIA TYPE
Oct 11 15:15:19 netplex sh[9164]: 2018-10-11 15:15:19,260 - com.plexapp.agents.podnapisi (7f9a7a7fc700) : DEBUG (model:229) - Serializing to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/c44dd87ab0c4d8577bc6bab6e1f1b1e6bc969d3.bundle/Contents/com.plexapp.agents.podna
Oct 11 15:15:19 netplex sh[9164]: 2018-10-11 15:15:19,261 - com.plexapp.agents.podnapisi (7f9a7a7fc700) : DEBUG (runtime:88) - Sending packed state data (109 bytes)
Oct 11 15:15:19 netplex sh[9164]: 2018-10-11 15:15:19,262 - com.plexapp.agents.podnapisi (7f9a7a7fc700) : DEBUG (runtime:924) - Response: [200] str, 16 bytes
Oct 11 15:17:52 netplex sh[9164]: GUI: Requesting metadata for ‘The Gift’
Oct 11 15:17:52 netplex sh[9164]: GUI: Requesting metadata for ‘Hardhome’

I’m sorry, I cannot debug an inline fragment such as that from systemctl.

DEBUG log files are what I need.

Settings - Server - Help - Download Logs
Attach the ZIP file it gives you.

I’m curious if this is similar to what I experienced last night with my server (Losing connection to PMS)

It’s also on Ubuntu 18.04 (via Linux Mint 19)

Without seeing your logs too, all I can do is :man_shrugging: :slight_smile:

1 Like

Logs are attached to my thread if you’re interested in peeking =) @ChuckPa

Moderator edit: Linked logs here for thread continuity. Chasing the same issue in two threads is counterproductive.

Plex Logs

Hello ChuckPA,

Here are the logs. Plex Media Server Logs_2018-10-11_16-19-56.zip (2.8 MB)

@Niovanni
Looking at your logs shows another user (remote) is streamimg to their Samsung and using a plug-in.
I see the transcoder running for a while and then encountering an error in the data stream.
Does this match what your report?

Yes it does. Could you see what kind of plugin? I suspect the podnapisi subtitle searcher?

I am seeing the podnapsi plugin being stopped because you’ve exceeded the default limit of 6 active plug-ins.

Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTUKczQKNTMwNXM4CnBhcmVudElEczQ3CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMzUwMDY4LzEvMz9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGJzMTMKcHJpbWFyeV9hZ2VudHM0CjU1OTdzMgppZHIwCg__ (23 live) GZIP Signed-in Token (Niovanni)
Oct 11, 2018 15:14:55.493 [0x7f88e8bfe700] DEBUG - Starting file watcher for com.plexapp.agents.opensubtitles
Oct 11, 2018 15:14:55.493 [0x7f88e8bfe700] DEBUG - Plug-in limit of 6 exceeded.
Oct 11, 2018 15:14:55.493 [0x7f88e8bfe700] DEBUG -  * Bringing down the older plug-in: com.plexapp.agents.podnapisi.
Oct 11, 2018 15:14:55.493 [0x7f88e8bfe700] DEBUG - Stopping [com.plexapp.agents.podnapisi].
Oct 11, 2018 15:14:55.493 [0x7f88e8bfe700] DEBUG - [com.plexapp.agents.podnapisi] Killing.
Oct 11, 2018 15:14:55.494 [0x7f88e8bfe700] DEBUG - Spawned plug-in com.plexapp.agents.opensubtitles with PID 29906
Oct 11, 2018 15:14:55.494 [0x7f88e8bfe700] DEBUG - [com.plexapp.agents.opensubtitles] Sending command: GET /:/prefixes
Oct 11, 2018 15:14:55.510 [0x7f88debfb700] DEBUG - Transcoder segment range: 0 - 614
Oct 11, 2018 15:14:55.652 [0x7f88ebbfc700] DEBUG - Transcoder segment range: 0 - 615
Oct 11, 2018 15:14:55.776 [0x7f88f9ffc700] DEBUG - Transcoder segment range: 0 - 616

You can change this (up to 10 maximum) by creating an Environment variable override.

/etc/systemd/system/plexmediaserver.service.d/overide.conf

[Service]
Environment="PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=9"

Execute:

sudo systemctl daemon-reload
sudo systemct restart plexmediaserver

PMS will use more memory and have 3 more active Plex Script Host processes.

If I may advise, This is not a “Crash” of PMS. It’s a Plug-in fault. Would you consider editing the title?

Thank you i will try this. I have changed the title

I made a typing error.

Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=9

Don’t use the quotes.

1 Like

Hello Chuck,

Could you help with setting up the variable?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.