Ubuntu 18.04.1 issues with upgrade of plex server > 1.14

I’ve read a bunch of topics, but nothing is working out for me. I’m a bit of a linux noob. This is a VM running 18.04 LTS, upgrade as some point in the past from 16.04 LTS.

Issue: Upgrading past 1.14.x results in no more server settings page or media matching.

Something seems odd from my setup trying to follow the instructions elsewhere to put user customizations in /etc/systemd/system/plexmediaserver.service.d/override.conf

plex@plex:~$ sudo dpkg -r plexmediaserver
(Reading database ... 143368 files and directories currently installed.)
Removing plexmediaserver (1.16.6.1592-b9d49bdb7) ...
Removed /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
plex@plex:~$ sudo dpkg -i plexmediaserver_1.16.6.1592-b9d49bdb7_amd64.deb
Selecting previously unselected package plexmediaserver.
(Reading database ... 140265 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.16.6.1592-b9d49bdb7_amd64.deb ...
Unpacking plexmediaserver (1.16.6.1592-b9d49bdb7) ...
Setting up plexmediaserver (1.16.6.1592-b9d49bdb7) ...
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service â /lib/systemd/system/plexmediaserver.service.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...

My results are different:

locate plexmediaserver.service
/etc/systemd/system/plexmediaserver.service.prev
/etc/systemd/system/multi-user.target.wants/plexmediaserver.service
/lib/systemd/system/plexmediaserver.service

A bit lost, and not sure where to go now or what info is needed to troubleshoot/resolve.

Go and manually grab the Logs directory as a .tar.gz and attach it please.

I’ll be able to look at it and see what it doesn’t like.

Logs attached (I hope)Logs.tar.gz (4.1 MB)

The server is running.
It is authenticating

  1. sign your web browser out of Plex/tv
  2. Open an incognito window
  3. Now open http://ip.addr.of.vm:32400/web
  4. Sign in there.

Well, the local address redirects to https://app.plex.tv/auth

Upon login, it redirects back. Once the dashboard loads up, I select my server, settings, triangle-! “Server settings are unavailable.”

Tried a few browsers/machines too.

Then it is no longer singed into your account.

Open a SSH-tunnel to it.

ssh -L 8888:127.0.0.1:32400 ip.addr.of.vm

open http://127.0.0.1:8888/web in your browser.

Now sign it into your account again.

Same redirect, but after login (with email/UN) I get:

image

Seemed stuck in a loop for a while, but after a few tries and/or clicks of the “Sign In” button it loads. No change, no settings.

There’s also an nVidia Shield on my LAN running a server (for 4k) but this issue predates it. Been stuck on 1.14 since later was released as a workaround.

go into the VM.

stop plex
rename Preferences.xml to Preferences.xml.old
start plex

while in the VM’s browser: open http://127.0.0.1:32400/web
sign in,
claim it
begin setup EXCEPT Do not create new library sections. We are only resetting ownership.

Now exit the VM

Settings - Devices - Servers - delete the old instance name

Now it should open if the VM is working correctly.
If not, there are networking problems beyond what PMS can see & report.

VM is headless, but renamed and tried again with the SSH method. Same result. From your mention of networking I double-checked firewall stuff. Seems something is different with current releases from whatever guide I read years-past. Setup UFW and applied all the rules…

Got to the setup screen this time! “Please wait a moment while Plex starts.”
Then:
“A problem has been detected with a core component of Plex Media Server.
Please visit the forums and provide your logs, as described here.”

The SSH method is now displaying some XML-type file.

Updated logs in case: Logs.tar.gz (3.9 MB)

Add the /web to the end of that. http://127.0.0.1:32400/web

As for the “problem detected”… If you attempt too soon or CPU too slow, it will do that. It’s not fully ready for you to access it.

Clear the page and try again.

Well, I can consistently access the setup page now. No luck getting past “problem detected” though. Waited minutes at each page for anything to catch up, monitored “top”, ect.

Lots of these pop into the logs when it gets stuck:

Sep 12, 2019 09:53:51.221 [0x7f3e617fa700] DEBUG - Request: [192.168.1.250:26959 (Subnet)] GET /system/agents (7 live) GZIP
Sep 12, 2019 09:53:51.221 [0x7f3ef21bd700] DEBUG - Completed: [192.168.1.250:26959] 404 GET /system/agents (7 live) GZIP 0ms 379 bytes (pipelined: 124)

Uninstall the package.
Restart the host
Reinstall the package.

For some reason I do not yet understand, it is not finding the agents which are in /usr/lib/plexmediaserver

sudo dpkg -r plexmediaserver 
(Reading database ... 143458 files and directories currently installed.)
Removing plexmediaserver (1.16.6.1592-b9d49bdb7) ...
Removed /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
plex@plex:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ sudo shutdown -r now
...
sudo dpkg -i plexmediaserver_1.16.6.1592-b9d49bdb7_amd64.deb 
Selecting previously unselected package plexmediaserver.
(Reading database ... 140355 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.16.6.1592-b9d49bdb7_amd64.deb ...
Unpacking plexmediaserver (1.16.6.1592-b9d49bdb7) ...
Setting up plexmediaserver (1.16.6.1592-b9d49bdb7) ...
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
ls /usr/lib/plexmediaserver/ -l
total 46024
-rwxr-xr-x  1 root root  1636904 Aug 27 18:07  CrashUploader
drwxr-xr-x  3 root root     4096 Sep 12 12:56  lib
-rwxr-xr-x  1 root root   407920 Aug 27 18:07 'Plex Commercial Skipper'
-rwxr-xr-x  1 root root  4852064 Aug 27 18:07 'Plex DLNA Server'
-rwxr-xr-x  1 root root  6867128 Aug 27 18:07 'Plex Media Scanner'
-rwxr-xr-x  1 root root 26593024 Aug 27 18:07 'Plex Media Server'
-rwxr-xr-x  1 root root   717784 Aug 27 18:07 'Plex Relay'
-rwxr-xr-x  1 root root    12824 Aug 27 18:07 'Plex Script Host'
-rwxr-xr-x  1 root root   263264 Aug 27 18:07 'Plex Transcoder'
-rwxr-xr-x  1 root root  5744520 Aug 27 18:07 'Plex Tuner Service'
drwxr-xr-x 10 root root     4096 Sep 12 12:56  Resources

No change :frowning:

go into your /var/lib/plexmediaserver directory and down to Plug-ins.

See if a System.bundle is there. This is part of what manages agents.
ls -la that directory if it is there.

plex@plex:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins$ ls -la
total 8
drwxr-xr-x  2 plex plex 4096 Sep 12 09:12 .
drwxr-xr-x 13 plex plex 4096 Sep 12 12:57 ..

(Libary is the only thing under /var/lib/plexmediaserver/)

Looked through an older backup and found a Services.bundle, put it back, restarted service, no change.

I’m quite mystified how I got this so out of sorts.

  1. Stop Plex
  2. do the following
sudo sh
systemctl stop plexmediaserver
cd /var/lib/plexmediaserver
mv Library Library.old
systemctl start plexmediaserver
  1. Now open the server itself via the loopback address (http://127.0.0.1:32400/web)
  2. Setup a new TEST server. **BE CERTAIN: Give this a ‘TEST’ name to avoid colliding with the real name (hostname is used by default.
  3. If this completes successfully then there is a corruption deep in your existing installation. The next steps will include transferring any data, deleting it, then renaming the new instance (the test one) to have the name of the old.
WARN - Warning: ex: boost::filesystem::last_write_time: No such file or directory: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins", couldn't check file: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins"

The plugin folder didn’t get recreated when it rebuilt Library down it seems.

plex@plex:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ ls -al
total 36
drwxr-xr-x 7 plex plex 4096 Sep 12 14:40  .
drwxr-xr-x 3 plex plex 4096 Sep 12 14:37  ..
drwxr-xr-x 3 plex plex 4096 Sep 12 14:40  Cache
drwxr-xr-x 3 plex plex 4096 Sep 12 14:37  Codecs
drwxr-xr-x 3 plex plex 4096 Sep 12 14:37 'Crash Reports'
drwxr-xr-x 2 plex plex 4096 Sep 12 14:40  Logs
-rw-r--r-- 1 plex plex    4 Sep 12 14:40  plexmediaserver.pid
drwxr-xr-x 4 plex plex 4096 Sep 12 14:37 'Plug-in Support'
-rw------- 1 plex plex  310 Sep 12 14:38  Preferences.xml

How many VCPUs are in this VM.

All indications are there isn’t enough CPU power being given.
What is the host for this VM?

Been running 1.14 or lower for several years without much issue. Seen it pulling of ~6 transcodes at a time.
ESXi 6.7 U2 virtual machine
Has access to 6 logical of an i7-5820K


Are you using their current emulation or have you backed it off to 13.x (something ??)
There was a major Ubuntu compatibility problem IIRC which made PMS go nuts.