Ubuntu server does not start

Server Version#: Latest
Player Version#:

Suddenly the media server disappeared from the network.
It is not listed in system monitor.
I have tried the command “service plexmediaserver start” with and whitout sudo.
Reply I got was:
Job for plexmediaserver.service failed because the control process exited with error code.
See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.

What do I do now?

do just what it says. Those two commands are the two best starting points.

Right!

plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-04-08 20:35:27 CEST; 25min ago
Process: 9513 ExecStart=/bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/
Process: 9501 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}”
Main PID: 9513 (code=exited, status=255)

april 08 20:35:27 raymond systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling
april 08 20:35:27 raymond systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is
april 08 20:35:27 raymond systemd[1]: Stopped Plex Media Server for Linux.
april 08 20:35:27 raymond systemd[1]: plexmediaserver.service: Start request repeated too quickly.
april 08 20:35:27 raymond systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
april 08 20:35:27 raymond systemd[1]: Failed to start Plex Media Server for Linux.

Track down the systemd file for Plex. A recent update wiped mine out and I had to add the details back in. https://www.reddit.com/r/linux/comments/2y4pwm/ubuntu_to_switch_to_systemd_next_monday_brace_for/cp75472
You may need to change user to whatever user you run Plex on.

This advice:

“Pop this is /etc/systemd/system/ as plexmediaserver.service then do a systemctl daemon-reload and systemctl enable plexmediaserver … You may need to alter paths if the ubuntu deb has things in different places.”

Is 100% WRONG. It is also 3 years old.

Never put overrides or a service file in /etc/systemd/system. This completely violates how Units and Services work with Systemd

To do a proper override, the procedure is documented here in my How-To.

To explain why it is unsafe to copy the entire service file:

Look here (from your copy/paste): LD_LIBRARY_PATH=/usr/lib/plexmediaserver

Now examine what is in the update (1.15.0 and above) service file LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib

This is why it fails.

We needed to move the LD_LIBRARY_PATH.
We took care of it in the as-distributed service file.
Files in /etc are outside the package manager’s control.

Ubuntu erred early on with Systemd and put them in /etc. This was wrong and later corrected.

You call that a how-to??

Must be a pretty damn esoteric one…
Got anything for more ordinary users? :slight_smile:

1 Like

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