Plex stops running on QNap

Server Version#: 1.24.5.5173
Player Version#: Any

Lately, Plex stops running on my QNap NAS. I have to go to the NAS interface, stop Plex and restart it. I’m not sure when it started or with what version of server software. Any insights into how to keep the server running?

2 Likes

Logs ZIP please ?

Hi
I don’t mean to hyjack this conversation, but I have just had the same issue just over the last couple of days, @ChuckPa What logs do you need and how do I get them?
It has just has a plex server update on monday PlexMediaServer-1.24.5.5173-8dcc73a59-x86_64 and I’m wondering if this is part of the issue?
TIA

https://support.plex.tv/articles/200250417-plex-media-server-log-files/

Thanks dane22, I’ve got the logs zipped up ready but unsure these are secure on a live forum how do I (from an old chuck post ) “Check your PM. You may attach your logs there”? not sure what this means. Sorry in advance :slight_smile:

@Soulman247

Upper right corner – Green dot – Your PM from me :sunglasses:

1 Like

I have the same issue, I keep seeing a cannot connect page.


Logs: Plex Media Server Logs_2021-11-05_12-13-37.zip (7.0 MB)

I’m experiencing the same issue. Just noticed today Plex Server 1.24.5 was no longer running on my QNAP NAS on firmware v.5.0.0.1828

I’ve stopped and restarted the server, it seemed to hang, but now the activity monitor is refreshing data so fingers crossed its a one off.

@sayermd

Are you :

  1. Signed out of Plex/web -or- using an incognito window
  2. Opening http://192.168.0.23:32400/web ?

I am asking because the server is running (based on the logs) and listening at that LAN adapter address

I am having the same “cannot connect” problem as @sayermd.

PMS stopped working after I installed the last (or second to last) QTS.

I tried to start PMS from a remote ssh terminal: went to “/etc/init.d/”, and from there ran “sudo ./plex.sh start”, but a few seconds after the “Starting Plex Media Server…” message, I got an error saying “./plex.sh: line 195: ./Plex Media Server: is a directory”.

I am running PMS 1.24.5 on QTS 5.0.0.1828.

What could be going wrong?

@savarese

the correct start procedure:

SSH into the unit as admin (not an ‘administrative’ user - Yes, I know what QNAP is telling folks to do)

cd  /share/*/.qpkg/PlexMediaServer
./plex.sh start

To create the back door / permanent access for you (or any permitted username) to grab the logs from the GUI.

  1. Create a Shared Folder named (exact capitalization) PlexData
  2. Stop & Restart Plex (attempt)
  3. Stop after 30 seconds if it does start
  4. FileStation → PlexData → Plex Media Server
  5. Assign access permissions you wish as you create the shared folder.
  6. You will now see the internals of the QPKG directory.
  7. Right-click Logs → Compress
  8. Download the ZIP file

Attach that ZIP file here. These are the logs

This has been an ongoing issue for me for at least a year. I try to stay updates on PMS, and somewhat slower on QTS (Because Plex devs are more trustworthy than QNAP in my experience :wink:) I’d just have to log in to QTS and stop/start service after power cycle- annoying, but no big deal. Didn’t feel like creating scripts to solve, and assumed it would eventually get fixed by a Plex or QNAP update.

Since upgrade to QTS 5 it’s gone from only being unresponsive after NAS reboot, to happening randomly throughout the day with or without power cycle. Multiple users contacted me over the last 24 hours about it being down.

If the service actually stopped, or any alert trigger could be configured- cool, I’ll just manually kick the daemon, but it’s more like a hang, which is not really as [easily] detectable.

QNAP Model TS-563
QTS v5.0.0.1837 (Installed 11/2/21)
PMS v 1.24.5.5173 (Installed 11/2/21)
QTS resources appear to be reasonable:

@ChuckPa please PM me and I’ll upload logs in case they’re helpful.

Nothing in the logs jumps out to me, but I don’t look at PMS logs as much as I do others; I’m happy to use my server as a debug for solving this for everyone- we can do evil to it as necessary :nerd_face:

Thank you for the fast response!

I tried doing what you suggested but got the same result, unfortunately.

Second one I think, just let Plex sign in automatically, I don’t sign out.
Since I posted Plex has behaved itself.

pms_logs.zip (3.5 MB)
I already had the PlexData folder created, so I am attaching the logs from the last time PMS worked.

I hope it helps!

@savarese

The server isn’t starting.

It was last shut down 20-Oct-2021

Oct 20, 2021 21:23:01.602 [0x7fd12b28c780] DEBUG - Captured session 17.
Oct 20, 2021 21:23:01.602 [0x7fd12b28c780] DEBUG - Captured session 18.
Oct 20, 2021 21:23:01.602 [0x7fd12b28c780] DEBUG - Captured session 19.
Oct 20, 2021 21:23:02.713 [0x7fd12b28c780] DEBUG - Database: Shutting down.
Oct 20, 2021 21:23:02.713 [0x7fd12b28c780] DEBUG - Captured session 0.
Oct 20, 2021 21:23:02.713 [0x7fd12b28c780] DEBUG - Captured session 1.

Let’s see what is happening.

  1. SSH into the QNAP as admin (not an administrative account)
  2. cd /share/*/.qpkg/PlexMediaServer
  3. ./plex.sh start
  4. Copy/paste the console output here.
[~] # cd /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ./plex.sh start
Starting Plex Media Server...
./plex.sh: line 195: ./Plex Media Server: is a directory
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] #

These are the contents of the directory:

# ls                                                                                                                                                 
CrashUploader*	lib/	  Plex Commercial Skipper*  Plex Media Fingerprinter*  Plex Media Server@	 Plex Relay*	    plex.sh*	  Plex Transcoder*     @Recently-Snapshot/
etc/		Library/  Plex DLNA Server*	    Plex Media Scanner*        Plex Media Server Tests*  Plex Script Host*  Plex SQLite*  Plex Tuner Service*  Resources/

And regarding the “Plex Media Server” file:

lrwxrwxrwx  1 admin administrators       69 2021-10-28 15:50 Plex Media Server -> /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/

“Plex Media Server” points to a directory instead of to an executable file, in a kind of circular reference.

This is supposed to be a directory.

Please observe here.

[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ls -la
total 25592
drwxr-xr-x  5 admin administrators     4096 2021-11-01 11:34 ./
drwxrwxrwx 14 admin administrators     4096 2021-11-03 16:10 ../
-rwxr-xr-x  1 admin administrators   706368 2021-10-22 12:54 CrashUploader*
drwxr-xr-x  3 admin administrators     4096 2021-10-22 12:59 lib/
drwxr-xr-x  4 admin administrators     4096 2021-07-07 13:39 Library/
-rw-r--r--  1 admin administrators   199269 2021-11-01 11:34 .list
-rwxr-xr-x  1 admin administrators   256360 2021-10-22 12:34 Plex Commercial Skipper*
-rwxr-xr-x  1 admin administrators  2630288 2021-10-22 12:52 Plex DLNA Server*
-rwxr-xr-x  1 admin administrators   108928 2021-10-22 12:34 Plex Media Fingerprinter*
-rwxr-xr-x  1 admin administrators  3856856 2021-10-22 12:54 Plex Media Scanner*
-rwxr-xr-x  1 admin administrators 14952536 2021-10-22 12:59 Plex Media Server*
-rwxr-xr-x  1 admin administrators   605120 2021-10-22 12:34 Plex Relay*
-rwxr-xr-x  1 admin administrators    10872 2021-10-22 12:34 Plex Script Host*
-rwxr-xr-x  1 admin administrators     7171 2021-10-22 13:21 plex.sh*
-rwxr-xr-x  1 admin administrators    10624 2021-10-22 12:34 Plex SQLite*
-rwxr-xr-x  1 admin administrators   268656 2021-10-22 12:34 Plex Transcoder*
-rwxr-xr-x  1 admin administrators  2524544 2021-10-22 12:34 Plex Tuner Service*
-rw-r--r--  1 admin administrators     5254 2021-10-22 13:21 .qpkg_icon_80.gif
-rw-r--r--  1 admin administrators     4468 2021-10-22 13:21 .qpkg_icon.gif
-rw-r--r--  1 admin administrators     3138 2021-10-22 13:21 .qpkg_icon_gray.gif
drwxr-xr-x 10 admin administrators     4096 2021-10-22 13:22 Resources/
-rwxr-xr-x  1 admin administrators      826 2021-11-01 11:34 .uninstall.sh*
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # cd Library/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library] # ls -la
total 16
drwxr-xr-x  4 admin administrators 4096 2021-07-07 13:39 ./
drwxr-xr-x  5 admin administrators 4096 2021-11-01 11:34 ../
drwxr-xr-x 11 admin administrators 4096 2021-11-08 15:09 Plex Media Server/
drwxr-xr-x  5 admin administrators 4096 2021-11-04 02:04 tmp/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library] #
  1. In /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer is the “Plex Media Server” executable adjacent to everything else
  2. The “Library” directory (where the metadata is kept) is also here.
  3. cd Library reveals the “Plex Media Server” directory just as it should

What I’m concerned about is what’s wrong with your plex.sh file and possibly directory structure.

Would you please show me a directory listing just as I’ve shown above ?

Here it is:

[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ls -la
total 32640
drwxr-xr-x  8 admin administrators     4096 2021-11-05 16:47 ./
drwxrwxrwx 32 admin administrators     4096 2021-11-08 07:05 ../
-rwxr-xr-x  1 admin administrators   688712 2021-10-22 13:58 CrashUploader*
drwxr-xr-x  2 admin administrators     4096 2021-10-22 14:23 etc/
drwxr-xr-x  4 admin administrators     4096 2021-10-28 15:50 lib/
drwxrwxr-x  4 admin administrators     4096 2017-06-07 11:55 Library/
-rw-r--r--  1 admin administrators   199495 2021-10-28 15:50 .list
-rwxr-xr-x  1 admin administrators   267256 2021-10-22 13:34 Plex Commercial Skipper*
-rwxr-xr-x  1 admin administrators  2621312 2021-10-22 13:55 Plex DLNA Server*
-rwxr-xr-x  1 admin administrators   113600 2021-10-22 13:34 Plex Media Fingerprinter*
-rwxr-xr-x  1 admin administrators  3835072 2021-10-22 13:58 Plex Media Scanner*
lrwxrwxrwx  1 admin administrators       69 2021-10-28 15:50 Plex Media Server -> /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/
-rwxrwxr-x  1 admin administrators 22063512 2018-08-18 01:17 Plex Media Server Tests*
-rwxr-xr-x  1 admin administrators   651064 2021-10-22 13:34 Plex Relay*
-rwxr-xr-x  1 admin administrators    11008 2021-10-22 13:34 Plex Script Host*
-rwxr-xr-x  1 admin administrators     7171 2021-10-22 14:23 plex.sh*
-rwxr-xr-x  1 admin administrators    10680 2021-10-22 13:34 Plex SQLite*
-rwxr-xr-x  1 admin administrators   302992 2021-10-22 13:34 Plex Transcoder*
-rwxr-xr-x  1 admin administrators  2561088 2021-10-22 13:34 Plex Tuner Service*
-rw-r--r--  1 admin administrators     5254 2021-10-22 14:21 .qpkg_icon_80.gif
-rw-r--r--  1 admin administrators     4468 2021-10-22 14:21 .qpkg_icon.gif
-rw-r--r--  1 admin administrators     3138 2021-10-22 14:21 .qpkg_icon_gray.gif
drwxr-xr-x  2 admin administrators     4096 2021-10-14 21:17 @Recently-Snapshot/
drwxr-xr-x 10 admin administrators     4096 2021-10-22 14:23 Resources/
drwxrwxrwx  2 admin administrators     4096 2021-11-05 16:47 .@__thumb/
-rwxr-xr-x  1 admin administrators      826 2021-10-28 15:50 .uninstall.sh*
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # cd  Library/                                                                                                                                       
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library] # ls -la      
total 20
drwxrwxr-x  4 admin administrators 4096 2017-06-07 11:55 ./
drwxr-xr-x  8 admin administrators 4096 2021-11-05 16:47 ../
drwxr-xr-x 11 admin administrators 4096 2021-10-20 21:23 Plex Media Server/
drwxrwxr-x 66 admin administrators 4096 2021-10-20 21:23 tmp/