Update to 1.15.3.835 on Ubuntu 18.04 Failure

Server Version#: Ubuntu 18.04
Player Version#: 3.93.1

Upgraded from a 1.14.x version to 1.15.3.835 today and now Plex won’t start. I looked through forums and found some references to permissions, etc, but can not fix the issue. Please help.
When running “service plexmediaserver start” I get the following error.
Job for plexmediaserver.service failed because the control process exited with error code.
See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.

Reviewing the 2 logs it states to check doesn’t provide much. Any help would be appreciated.

Did you customize your Plex install by editing /lib/systemd/system/plexmediaserver.service ?

Not that I’m aware of. I have a pretty basic install. When I built my latest server I did migrate my library (/var/lib/plexmediaserver/Library/Application Support) from a prior Ubuntu install that was migrated initially from a Ubuntu 14 build. Other than that I mostly let everything just run as is.

Here is my server’s /lib/systemd/system/plexmediaserver.service:
[Unit]
Description=Plex Media Server
After=network.target network-online.target

[Service]
Environment=“PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support”
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
ExecStartPre=/bin/sh -c ‘/usr/bin/test -d “{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}”’
ExecStart=/bin/sh -c ’
PLEX_MEDIA_SERVER_INFO_VENDOR="(grep ^NAME= /etc/os-release | awk -F= "{print \\$2}" | tr -d \\" )" \ PLEX_MEDIA_SERVER_INFO_DEVICE="PC" \ PLEX_MEDIA_SERVER_INFO_MODEL="(uname -m)"
PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release | awk -F= “{print \$2}” | tr -d \" )"
LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib
“/usr/lib/plexmediaserver/Plex Media Server”’
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

Does this look standard and if not what should I change?

I also have an issue with package updates. Everything I read said this would be resolved with the Plex 1.15 install.

Apt update:
W: Conflicting distribution: https://downloads.plex.tv/repo/deb public InRelease (expected public but got )

Because of this I manually installed 1.15.3.835 because the web app kept telling me there was a new version of Plex, but it wasn’t being picked up for whatever reason. But other than the manual install and a few things I did post install to try to troubleshoot the service not starting, my Plex build is unchanged from when it was running on 1.14.

As stated many places.

  1. The new respositories aren’t ready, hence the warning persists
  2. Ignore the warning because it’s only a warning and warns of a missing “Codename” value in the header file of the repo. Totally harmless because PMS doesn’t kick out with ERROR and it does run.

Regarding the failure to start, please report the following:

  1. grep plex /etc/passwd
  2. ls -la /var/lib/plexmediaserver

grep plex /etc/passwd:
plex:x:111:118::/var/lib/plexmediaserver:/bin/bash
plexpy:x:112:65534::/home/plexpy:/bin/false

ls -la /var/lib/plexmediaserver:
total 12
drwxr-xr-x 3 plex plex 4096 Mar 30 14:04 .
drwxr-xr-x 46 root root 4096 Aug 15 2018 …
drwxr-xr-x 3 plex plex 4096 Mar 30 16:15 Library

Yes, I saw those warning to ignore but from what I recall those were from Feb and most said it was going to be fixed shortly. Do we have an ETA on when that will be fixed or do I need to modify the repository to look elsewhere?

I don’t have an ETA (unfortunately).
The repository work became single-threaded and is in the hands of the one team member who can finish it.

Modify to look elsewhere? Where else would you look? There is only one Plex repository and only one plex.tv/downloads site

I never saw a response to my other inquiry, where you asked me to give the results of those 2 commands.

grep plex /etc/passwd:
plex:x:111:118::/var/lib/plexmediaserver:/bin/bash
plexpy:x:112:65534::/home/plexpy:/bin/false

ls -la /var/lib/plexmediaserver:
total 12
drwxr-xr-x 3 plex plex 4096 Mar 30 14:04 .
drwxr-xr-x 46 root root 4096 Aug 15 2018 …
drwxr-xr-x 3 plex plex 4096 Mar 30 16:15 Library

Let’s start this by hand and see what comes up

  1. Assign a temporary password to user plex
  2. Assign /bin/sh as the shell for plex (default is /sbin/nologin)
  3. Execute this manual start (su plex first to run as user plex )
#!/bin/sh
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"



export LD_LIBRARY_PATH="/usr/lib/plexmediaserver/lib"
export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"

echo $PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS $PLEX_MEDIA_SERVER_MAX_STACK_SIZE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR


(cd /usr/lib/plexmediaserver; ./Plex\ Media\ Server)
1 Like
1 Like

ChuckPA, here are the results. I think I did this correctly. FYI, my Plex user was already assigned to /bin/sh.

Results:

su plex
$ #!/bin/sh
$ export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
$ export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
$ export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
$ export PLEX_MEDIA_SERVER_TMPDIR=/tmp
$ export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
$ export LD_LIBRARY_PATH="/usr/lib/plexmediaserver/lib"
$ export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"
$ echo $PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS $PLEX_MEDIA_SERVER_MAX_STACK_SIZE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
6 3000 /var/lib/plexmediaserver/Library/Application Support
$ (cd /usr/lib/plexmediaserver; ./Plex\ Media\ Server)
sh: 11: ./Plex Media Server: not found

Thanks! My repo works now. So if only I can get Plex working…

It would only show “not found” if there is NOEXEC preventing execution.

What extra info is missing?

:man_facepalming: I looked right at it too and missed it

Change:

cd /usr/lib/plexmediaserver
 ./Plex\ Media\ Server

Invoking a sub-shell ( ), returns you to your $HOME directory. “Plex Media Server” isn’t there.

Here is exactly what I put in and the results. After the last command what should happen? I’m not familiar with these steps so I’m literally copying and pasting into an SSH session. Am I missing something?

su plex
Password:
$ #!/bin/sh
$ export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
$ export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
$ export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
$ export PLEX_MEDIA_SERVER_TMPDIR=/tmp
$ export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
$ export LD_LIBRARY_PATH="/usr/lib/plexmediaserver/lib"
$ export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"
$ echo $PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS $PLEX_MEDIA_SERVER_MAX_STACK_SIZE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
6 3000 /var/lib/plexmediaserver/Library/Application Support
$ cd /usr/lib/plexmediaserver ./Plex\ Media\ Server

I checked Plex after these commands and it was still not running. I also tried to start Plex manually and it prompted me for my main user password, which I put in but still it did not start.

Moderator Edit: Triple backtick for legibility

Your last line should be broken into two lines.

cd /usr/lib/plexmediaserver
./Plex\ Media\ Server

Ok. Here are the results.

su plex
Password:
$ #!/bin/sh
$ export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
$ export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
$ export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
$ export PLEX_MEDIA_SERVER_TMPDIR=/tmp
$ export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
$ export LD_LIBRARY_PATH="/usr/lib/plexmediaserver/lib"
$ export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"
$ echo $PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS $PLEX_MEDIA_SERVER_MAX_STACK_SIZE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
6 3000 /var/lib/plexmediaserver/Library/Application Support
$ cd /usr/lib/plexmediaserver
$ ./Plex\ Media\ Server
sh: 11: ./Plex Media Server: not found

Moderator edit for legibility

Chuck, any other suggestions?

I just wanted to pop in here to mention I’m having similar problems. Upgrade from a working 1.14 to a 1.15 and the server doesn’t start.

Running 18.04 but on a 386.

I’ve downgraded back to 1.14.