When I cycle the Plex Process in QNAP - I have to reboot QNAP to get Plex to respond

Environment:
QNAP TVS-873 (16Gb RAM)

Plex Package last installed: PlexMediaServer_1.10.0.4523-648bc61d4_x86_64

Plex Firmware:

this evening I was showing 7 active streams and in checking them all it appeared they were all hung, so I was going to cycle the server service on the QNAP to clear those sessions. I shut the server service off, waited for it to finish, then restarted. it seems to restart normally and but I can’t access plex.

here is the process screen:

As soon as I restart my entire NAS, Plex will return and be fine…but that can’t be ‘normal’ can it??

-Thanks
Papahood

after rebooting my NAS, everything is working again…here is the screenshot of the services:

If you are faced with some processes been hung, then sadly disable/enable PMS from QTS will sometimes fail :frowning:

To fix, disable PMS, and then open up a terminal, and type:

ps aux|grep Plex

The output might be something like:

6495 admin 50280 S ./Plex Media Server

6516 admin 48200 S N Plex Plug-in [com.plexapp.system] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-1d469a53c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.10.1.4534-1d469a53c /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-1d469a53c/System.bundle

Then nuke all the listed processes by typing:

  • kill 6495
  • kill 6516

Then try and enable PMS again in the QTS

/Tommy

Thanks Tommy ( @dane22 ) I appreciate the feedback and will try that the next time I need to restart PMS without restarting the entire NAS.

So the larger issue is that it happens every time…PMS could be humming along just happy as a clam (although I’m not sure Clams are happy, but let’s just make an assumption they are :smiley: ) and if I stop the PMS in App center it stops…then I choose start, it acts like it starts, looks like it starts, but never gives access. so I’m thinking something in the PMS package or QTS is messed up and when you choose start via the app center it really doesn’t start all the right services.

Just a thought…

Jerry (Papahood)

The ps.... command will show the threads hanging, so post those next time it happens

will do, thanks!

Folks: I keep running into this lately. What happens is i’m trying to stream an episode from remote via iPhone or iPad… everything quits, and the plex server dies. When I get home i try to stop plex and it never really stops.

ps aux|grep Plex – shows everything. True to form when you kill everything and restart Plex service it works fine. I was having to reboot the entire QNAP before discovering this.

The better question is why is it crashing and why doesn’t the stop truly stop everything. Perhaps the way it is crashing?

Prior to killing processes I grabbed the processes:

[~] # ps aux|grep Plex
13298 admin 45752 S Plex Plug-in [com.plexapp.agents.thetvdb] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.11.0.4666-fc63598ba /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/TheTVDB.bundle
13330 admin 42908 S Plex Plug-in [com.plexapp.agents.localmedia] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.11.0.4666-fc63598ba /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/LocalMedia.bundle
13402 admin 35472 S Plex Plug-in [com.plexapp.agents.plexthememusic] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.11.0.4666-fc63598ba /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/PlexThemeMusic.bundle
23448 admin 964 S grep Plex
23827 admin 225420 S N Plex Plug-in [com.plexapp.system] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.11.0.4666-fc63598ba /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/System.bundle
23935 admin 6432 S /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Tuner Service /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Private /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Shared 1.11.0.4666-fc63598ba 32600 /waitmutex
29456 admin 61072 S /share/CACHEDEV1_DATA/.qpkg/PlexPy/bin/python PlexPy.py --daemon --port=8659 --datadir=/share/CACHEDEV1_DATA/.qpkg/PlexPy/DATADIR --config=/share/CACHEDEV1_DATA/.qpkg/PlexPy/CONFIG/plexpy.conf
30270 admin 100500 S Plex Plug-in [com.plexapp.agents.subzero] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-fc63598ba/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.11.0.4666-fc63598ba /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle
31411 admin 2592 S Plex EAE Service

I then stopped Plex and Plexpy and killed all Plex* processes.

I then started Plex and it works fine.

I would be glad to grab log files to try to figure out why it is crashing, and why the stop/start doesn’t work.

Thanks,
Skip

p.s. i can start a new thread - but this matches exactly the same issue i’m having.

It does indeed match, so no worries here :wink:

Here’s the problem:

The plex.sh script kills the pms process, and that’s supposed to take down every child process, but sadly fails here :frowning:

As you see, PMS is indeed down, yet has a lot of runaway threads humming along as happy as ever :frowning:

As such, I would like for you to reproduce, and then post details about your QNAP, QTS as well as logs in debug mode, so I can feed Plex with this

/T

with recent updates, it looks like this behavior has gone away. thanks for all the assistance!

Hello, if I may chime in here, I appear to be having the exact same issue; however the recent update has not fixed it for me. Should I start anther thread, or can we keep this one open?

@Mick. When you post in someone’s thread the OP gets notified of that. I would say that threads where the OP clearly said “it’s solved” should not be used to post other people’s problems. But this is not the case of this thread, so you may post here.

This issue appears to be a symptom rather than a problem.
In my case I found an issue with a photo library, that would not sync or update (linked with android device for uploading). Removing the library has solved this issue for me.

I have exactly the same Problem mentioned here on my TS-677.
I this caused by PMS or QTS?

Found Solution for me.
Also a Library that was „broken“.
Deleted and rebuild the library, now everything is fine again.