Since I cannot connect normally some of the details are hard to provide like server versionbut it is running the latest version from QNAP Apps.
Plex has been running great without fail for many months on my QNAP NAS. I run the approved version from the QNAP appstore.
Yesterday I noticed that my players cannot connect. I connect to QNAP console, and all looks good and it says Plex is running. Connecting to Plex is says my server required a secure connection …And then it goes offline. I have the setting to make that optional on the local network (Allow insecure on local network only) and I am local. I do not connect from outside my home network to any of my QNAP/plex services.
If I reboot my NAS and Restart plex. I connect to the local server successfully for about 30 seconds then it displays the security setting locking me out. I have read the older posts on this and how Plex was fixing issues similar…most seem from a few years back so I would think that it was fixed.
QNAP did have a firmware update recently but it seemed to work just fine and everything seemed to comeback…then this issue that may or may not be related.
No other changes.
Thanks in advance and I apologize for the limited technical info . I will try to figure out how to get some if needed.
Thank you for the response. I can access my shares where the move, music and TV shows reside, but I will need to search around the QNAP utility if it resides somewhere else. I will look it up where it may reside but if you know in plex on QNAP it would save some time. Once again, Thank you for taking the time to respond. If I find the logs should post them here?
This is awesome. I will try once I am out of a couple of meetings. I just wanted to drop a big Thank you and to let you know why I had not done this already…Thanks again
Sorry this took so long . I have created the PlexData folder and then zipped up the past few days of logs where i was trying to access. Plex Crash Uploader.zip (85.5 KB)
I really appreciate you taking the time to assist. BTW: The PlexData feature is genius! Provides great assistance for QNAP users. Thank you)
There is a hung process somewhere which is not letting go of port 32400 (which PMS needs).
The “Stop” scripting should be taking care of it.
I did have to rewrite the start-stop scripting for QNAP because of changes in the QTS firmware.
I’m wondering if that older version pre-dates the change.
If you’d like, and you’re comfortable at the command line, I can give you the current plex.sh script for you to try with this problem.
PS: The PlexData share will always track where the data actually is. When I created this, I modeled this feature after the original PMSLibShare package with the exception that this shared folder will maintain the correct location even when you use the App Center ‘Migrate To’ function. It updates the linkage every time PMS starts.
I will happily try the stop script. If you dont mind how do i run that on a qnap qts system.
I took some time this evening and learned how to SSH and telnet to my QNAP NAS from my chomebook. I am ahppy to try your script with some instruction.
Thank you for your willingness to help.
One thing I would like to mention in case it give you more info is that when I stop plex(using QTS) and then restart the qnap nas then when it come back on I restart plex using qts . I can go into my plex server and see the library for about 10 seconds. then it pops up the information about secure connection and ask me if I want to allow insecure from inside my network. if I click on yes to allow it just “spins” forever…maybe that it what hangs the 32400 port?
The production PMS scripts are the ones I updated.
You can confirm this by examinine /etc/init.d/plex.sh ,
which is a symlink to /share/*/.qpkg/PlexMediaServer/plex.sh
The current (production) stop code is:
stop)
if [ -f "$PID_FILE" ]; then
logMsg="Stopping Plex Media Server..."
echo $logMsg
/sbin/log_tool -t 0 -a "$logMsg"
kill -15 $(cat "$PID_FILE")
sleep 5
# Make sure no stray processes
Pids="$(ps -ef | grep qpkg/Plex | grep -v grep | grep -v plex.sh | awk '{print $1}')"
if [ "$Pids" != "" ]; then
kill -9 $Pids
fi
# Check again
Pids="$(ps -ef | grep qpkg/Plex | grep -v grep | grep -v plex.sh | awk '{print $1}')"
if [ "$Pids" != "" ]; then
kill -11 $Pids
fi
# Add special case for Plex EAE Service
Pids="$(ps -ef | grep "Plex EAE" | grep -v grep | awk '{print $1}')"
if [ "$Pids" != "" ]; then
kill -11 $Pids
fi
# If pid file is a leftover from not shutting down properly, remove it now.
if [ -f "$PID_FILE" ]; then
rm "$PID_FILE"
fi
If there are residual processes then my best recommendation is to simply update your server from its current 1.23.4 version (which is quite old and predates all the improvements) to 1.27.2 (current Plex Pass download)
HOWEVER,
Let’s review and discuss first AFTER I see what you have.