I followed the steps, selected a movie, got info, and a Media Info box pops up. However the address in the web browser does not change. I tried different browsers and a different computer. Nothing about tokens shows up.
Just a quick update from my side. Upgraded again yesterday and surprisingly it worked this time and it hasn’t ‘crashed’ yet. Not sure what caused the problems before, unless there are a several background processes that needs to be completed and take time? I noticed that the web service is not available during the library scan for example that happens 5-10 minutes after plex has been upgraded.
May be there is an easier way to find the server token
Get to the plex web page that allows you to download the logs
hover with the mouse on the Download Logs button
Right click and select copy link
paste it into a text file
and extract the X-Plex-Token=xxxxxxxxxxxxxxx string from it so you can use it this browser request when access to the server locks out http://127.0.0.1:32400/connections?X-Plex-Token=xxxxxxxxxxxxxxxxx
Be careful you do not paste the token into your posts
Spoke to early. I got the same problem as before (which I don’t have in the previous version). After some time I get 503 error. A Ongoing streams will continue, but others cannot browse. At this point I cannot quit PMS either, I have to force quit it. Here are my logs Plex Media Server.zip (3.7 MB)
I hope it helps. I leave it running a bit more, but if continues I will downgrade again until it’s fixed.
Ok. I got it now. The server has actually been up and running since yesterday. I am still concerned that it will continue with the same issues if I have to restart my computer or the server for some reason since restarting caused the problems to re-emerge last time.
If there is another lock out I will send the tokens.
Thanks for the logs. The 503 responses get returned when the number of queued requests reaches a very high level. This followed a deadlock situation where a thread locked out other threads within the Plex Media Server. This happened around 8:55 pm
Deadlock investigations require a process dump as well as the logs and the output from a specific request that one can make in a browser to get the list of the connections.
Please follow the following steps to capture diagnostics for the next deadlock
Diagnostics for a deadlock / lockout (MacOS)
Prepare yourself by finding the server security token string as it will be needed for the connections list request. To find the token string, see this support article https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
(You can also find out by hovering mouse on the Download Logs button within Help and right clicking and selecting Copy Link and pasting the url in a text file and extracting the X-Plex-Token= string from it to use later
When the problem occurs (and please wait for sufficient time before capturing diagnostics eg 10 minutes of requests to the server not getting through) , get the output from a specific browser request on the server. In a browser, go to this url http://localhost:32400/connections?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxx where you put the server token string instead of the xxxxxxxxxxxxxxxx. Copy the displayed output to a text file and save
Thank you very much. Good diagnostics.
I have checked it and passed it on to the development team
The lockouts started at about 23:47 after running for over 48 hours and built up until 503s started to be returned when over 1000 requests got queued up. The 503s started at 06:15
After steps 2 and 3 (for connections and process sample), wait 5 minutes and then repeat steps 2 and 3 - so we have two sets of connections list and two sets of process samples and then proceed to step 4
This is to ensure if we suspect a thread to be hung, it would be confirmed by the 2nd sample
Just upgraded to 5339. Time the upgrade went smooth with the service being available almost instantly after the upgrade (which was not the case with 5291).
Should I encounter another deadlock I will collect the diagnostics…