Plex Media server is inaccessible - Latest Plex version

Hi,

since few minutes, my Plex Media server is inaccessible. I tried to add a movie and it was scanning the library forever. I stop the scan and reran it. No changes.

I tried to restart my computer and the Plex Media Server wasn’t accessible anymore.
I tried to restart the service, no changes.
However, the “plexmediaserver” service is active though and getting an error “ERR_CONNECTION_REFUSED” when trying to access it via Chrome.

From Plex clients, the server is inaccessible too.

I will attach here all the logs.

I have Elementary OS Loki

Regards.

Logs.zip (2.2 MB)

PMS is running.
Did you set Secure Connections to REQUIRED?

No I did not. All settings are by default.
All I did was to restart my computer because the library scan was taking forever after adding a movie to the movie plex folder.

Regards

Your logs show a normal shutdown (Signal 15)

It does not show that it came back up after that.

Did you enable PMS to autostart at system boot?

ep 14, 2018 19:51:31.920 [0x7f6b2afff700] DEBUG - Completed: [127.0.0.1:59244] 200 GET /:/timeline?ratingKey=9388&key=%2Flibrary%2Fmetadata%2F9388&playQueueItemID=66107&state=paused&hasMDE=1&time=66000&duration=3031000 (8 live) GZIP 16ms 490 bytes (pipelined: 4)
Sep 14, 2018 19:51:32.634 [0x7f6b3aab7800] DEBUG - Shutting down with signal 15
Sep 14, 2018 19:51:32.634 [0x7f6b3aab7800] DEBUG - Ordered to stop server.
Sep 14, 2018 19:51:32.635 [0x7f6b257ff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex DLNA Server' exit code for process 1679 is -15 (signal: Terminated)
Sep 14, 2018 19:51:32.635 [0x7f6b0abff700] DEBUG - Plex DLNA Server exited.
Sep 14, 2018 19:51:32.636 [0x7f6b257ff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 18319 is -15 (signal: Terminated)
Sep 14, 2018 19:51:32.638 [0x7f6b3aab7800] WARN - Timed out waiting for server to finish.
Sep 14, 2018 19:51:32.640 [0x7f6b257ff700] DEBUG - Collections: Found 2 collections tags in section 1.
Sep 14, 2018 19:51:32.640 [0x7f6b257ff700] DEBUG - Collections: We had 2 collections in the library already.
Sep 14, 2018 19:51:32.640 [0x7f6b257ff700] DEBUG - Collections: Synced tags in section 1 in 0ms.
Sep 14, 2018 19:51:32.647 [0x7f6b3aab7800] DEBUG - Stopping server...
Sep 14, 2018 19:51:32.647 [0x7f6b3aab7800] DEBUG - HttpServer: Stopping server.
Sep 14, 2018 19:51:32.648 [0x7f6b1e3ff700] DEBUG - MetadataItemClusterRequestHandler: a shutdown event has been received
Sep 14, 2018 19:51:32.648 [0x7f6b1e3ff700] DEBUG - TranscodeJobManager: [Running] onServerShutdown
Sep 14, 2018 19:51:32.648 [0x7f6b1e3ff700] DEBUG - TranscodeJobManager: [Running] -> [Shutdown]
Sep 14, 2018 19:51:32.650 [0x7f6b3aab7800] DEBUG - Server stopped.
Sep 14, 2018 19:51:32.652 [0x7f6b257ff700] DEBUG - Collections: Refreshed attributes for 2 collections in section 1 in 11ms.
Sep 14, 2018 19:51:32.654 [0x7f6b257ff700] DEBUG - Collection: Refreshed visibility in section 1 in 2ms.
Sep 14, 2018 19:51:32.655 [0x7f6b3aab7800] DEBUG - Server is already in shutdown mode, ignoring this signal...
Sep 14, 2018 19:51:32.655 [0x7f6b3aab7800] DEBUG - NetworkService: Stopping advertisement.
Sep 14, 2018 19:51:32.655 [0x7f6b267ff700] DEBUG - Activity: registered new activity 4a83add1-64c7-4375-91ed-54369a00dc83 - Processing subscriptions
Sep 14, 2018 19:51:32.655 [0x7f6b213ff700] ERROR - Network Service: Error in advertiser handle read: 125 (Operation canceled) socket=-1
Sep 14, 2018 19:51:32.657 [0x7f6b133fd700] WARN - SLOW QUERY: It took 352070.000000 ms to retrieve 0 items.
Sep 14, 2018 19:51:32.660 [0x7f6b133fd700] DEBUG - Activity: registered new activity 88136e9b-c926-47ce-89d1-d0a66814994c - Processing subscriptions
Sep 14, 2018 19:51:32.660 [0x7f6b133fd700] DEBUG - DVR:Subscription: Scheduling subscriptions.
Sep 14, 2018 19:51:32.662 [0x7f6b133fd700] DEBUG - DVR:Subscription: Initialized 0 schedulers.
Sep 14, 2018 19:51:32.662 [0x7f6b133fd700] DEBUG - DVR:Subscription: Starting with 0 grabs, scheduled 0 active ones preemptively.
Sep 14, 2018 19:51:32.663 [0x7f6b133fd700] DEBUG - DVR:Subscription: Scheduled all subscriptions in 2 ms.
Sep 14, 2018 19:51:32.663 [0x7f6b133fd700] DEBUG - Activity: Ended activity 88136e9b-c926-47ce-89d1-d0a66814994c.
Sep 14, 2018 19:51:32.663 [0x7f6b133fd700] DEBUG - DVR:Subscription: There are 0 active grabs at the end.
Sep 14, 2018 19:51:32.663 [0x7f6b133fd700] DEBUG - Activity: Ended activity 4a83add1-64c7-4375-91ed-54369a00dc83.
Sep 14, 2018 19:51:32.663 [0x7f6b133fd700] DEBUG - DVR:Subscription: Refreshed all content in 7 ms.
Sep 14, 2018 19:51:32.663 [0x7f6b257ff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 32652 is -15 (signal: Terminated)
Sep 14, 2018 19:51:32.665 [0x7f6b3aab7800] DEBUG - Killing plug-ins.
Sep 14, 2018 19:51:32.665 [0x7f6b3aab7800] DEBUG - [com.plexapp.system] Killing.
Sep 14, 2018 19:51:32.665 [0x7f6b3aab7800] DEBUG - Waiting for Plex DLNA Server to exit.
Sep 14, 2018 19:51:32.727 [0x7f6b257ff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Tuner Service' exit code for process 3022 is 0 (success)
Sep 14, 2018 19:51:32.727 [0x7f6b1f3ff700] DEBUG - Plex Tuner Service exited.
Sep 14, 2018 19:51:32.735 [0x7f6b3aab7800] DEBUG - Waiting for Plex Tuner Service to exit.
Sep 14, 2018 19:51:32.755 [0x7f6b213ff700] INFO - Network Service: Abandoning advertise socket, it was closed.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Killing job.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Signalling job ID 18319 with 9
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Database: Shutting down.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 0.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 1.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 2.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 3.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 4.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 5.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 6.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 7.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 8.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 9.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 10.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 11.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 12.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 13.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 14.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 15.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 16.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 17.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 18.
Sep 14, 2018 19:51:32.829 [0x7f6b3aab7800] DEBUG - Captured session 19.
Sep 14, 2018 19:51:32.846 [0x7f6b3aab7800] DEBUG - Database: Shutting down.
Sep 14, 2018 19:51:32.846 [0x7f6b3aab7800] DEBUG - Captured session 0.
Sep 14, 2018 19:51:32.846 [0x7f6b3aab7800] DEBUG - Captured session 1.

The PlexMediaServer service autostart at reboot if it is your question.
Just so you know, there were no changes in the logs since I sent you the logs.
Last logs I’m seeing are the same ones at 19:51.

Regards

Do the standard ps -ef | grep -i plex to see if the processes are running.

If they are not, sudo journalctl -xe | grep -i plex and see what the most recent plex-related error is (if any).

Here are the results.

ps -ef | grep -i plex :

“plex 7285 1 0 21:44 ? 00:00:00 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver “/usr/lib/plexmediaserver/Plex Media Server”
plex 7290 7285 0 21:44 ? 00:00:00 /usr/lib/plexmediaserver/Plex Media Server
root 9610 6834 0 23:10 pts/0 00:00:00 grep --color=auto -i plex”

sudo journalctl -xe | grep -i plex :

“sep 14 23:10:33 server sudo[9632]: root : TTY=pts/0 ; PWD=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs ; USER=root ; COMMAND=/bin/journalctl -xe
sep 14 23:10:38 server sudo[9643]: root : TTY=pts/0 ; PWD=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs ; USER=root ; COMMAND=/bin/journalctl -xe
sep 14 23:11:02 server sudo[9654]: root : TTY=pts/0 ; PWD=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs ; USER=root ; COMMAND=/bin/journalctl -xe”

Regards

None of the services are coming up., Specifically Plex Script Host.

Uninstall the binaries and reinstall (your library is safe – do not ‘purge’).

Be advised, we’re getting near the end of what I can do. Elementary is not a supported (or even tested) OS distro. I have no idea what the revision level of the distro’s libraries are.

Okay.

What’s the right procedure for this uninstall & reinstall?

My server was running for over a year without major problem and it is the first time I get this one.

Regards

The normal package uninstall procedure for your system.

Ubuntu systems have a ‘purge’ option. I am only warning you not to invoke a ‘purge’ if it exists on yours.

Okay. Just did it but no changes. Same problem.

Then that’s all I can recommend and help with.

Sorry.

Okay.

Is Ubuntu tested with Plex? Because Elementary is based on Ubuntu and works pretty the same.

Regards

Ubunutu 16+ is supported, as is Fedora, Centos 7+, and Debian 8+.

Elementary is not supported, neither is Arch.

If I want to swtich to Ubuntu, which files from Plex do I need to transfer to not lose the Library metadata, etc?

Regards

Here is the how-to I’ve put together.

You want the “Backup, Restore or Clone” instructions.

Short version: Make a tarball of /var/lib/plexmediaserver and keep it safe. Restore it, then fix UID/GID to match the new system

Hi @ChuckPa ,

Just so you know I got it working with help of a friend.

All I did was rename Preferences.xml and reinstall plexmediaserver over it and it fix it.

I restarted to confirm and was working great!

Thank you for your time.

Regards,

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