Plex not working after upgrade

refused to connect

Will you send me your server login details through PM as I have little to work with. I can see what it is first hand.

I have logged into your server and can see that you are running default OVH kernel with grsec compiled. We have a very bold notice within our Readme that these kernels do not work well with these types of solutions/custom panels.

###Quick Advisory Notice(s) on QuickBox

:rotating_light: Heads Up!

grsec is built into OVH’s custom kernel and it absolutely wrecks havoc when using these panels where we depend on the ability for one user (www-data) to see the processes of another running user ($username).

This can be seen clearly by using a task manager such as h/top.

With grsec enabled you can only see the processes owned by your user unless you run htop as root. As such, it is highly recommended to use the stock kernel for your distribution or at the very least installing an OVH kernel that is not compiled with grsec

If you are using So You Start (SYS) as a host, you should opt to use the distribution kernel. You will see this as a checkbox option when installing your server.

I am going to update your kernel for you and put you on something without grsec. Your server will reboot within the next 5 minutes… it’s just me updating your system :slight_smile:

Message sent

You. Are. Awesome!

Did youfigure out what the problem was?

The solution above outlines part of the problem. The other half was to update your Plex with this method:

wget https://downloads.plex.tv/plex-media-server/1.0.2.2413-7caf41d/plexmediaserver_1.0.2.2413-7caf41d_amd64.deb
mkdir -p plex-tmp
mv plexmediaserver_*.deb plex-tmp/plexmediaserver_*.deb
cd plex-tmp
dpkg -i plexmediaserver_*.deb
..
rm -rf plex-tmp
service plexmediaserver restart

###Archived version can be found here.

wget -q https://downloads.plex.tv/plex-media-server/0.9.12.19.1537-f38ac80/plexmediaserver_0.9.12.19.1537-f38ac80_amd64.deb
mkdir -p plex-tmp
mv plexmediaserver_*.deb plex-tmp/plexmediaserver_*.deb
cd plex-tmp
dpkg -i plexmediaserver_*.deb
..
rm -rf plex-tmp
service plexmediaserver restart

Why would I need an archived version?

Plex recently released an update that interferes with how we reverse proxy plex to be connectable without the need of an ssh tunnel. In the meantime, you may opt to use this stable archive version … at least until Plex resolves this issue and a proper update is released… at which point you can type upgradePlex to update to the latest version. At any time, you may additionally fall back to this version.


This then set your plex to read from the proper systemd template. Additionally, your plex.conf template was blank. I am assuming that after the update it imported the template from the repo, but for some reason imported it as blank. So it was a matter of the proxy not reading the forward.

Hello, i’m having problems to set up Plex too

[quote=systemctl status plexmediaserver]
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled)
Active: failed (Result: start-limit) since Sat 2016-07-30 09:29:04 CEST; 3min 9s ago
Process: 20172 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || / bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=1/FAILURE)

Jul 30 09:28:59 DZGD1464 systemd[1]: Failed to start Plex Media Server for Linux.
Jul 30 09:28:59 DZGD1464 systemd[1]: Unit plexmediaserver.service entered failed state. [/quote]

@Grayman, we will need more details before we can help.

  1. What OS are you on
  2. What version of QuickBox
  3. Is this after an update… etc

@JMSolo
Hello,
Debian 8.5 (jessie), quickbox version 2.4.4.
Had to do a fresh installation due hard drive failure, with previous version everything was working fine

If you are on a fresh install, we can try this the easy way. Yesterday I pushed a dynamic update package for upgrading Plex… let’s see if this fixes things.

In ssh as root, type: upgradePlex

It’s possible that it will not update and say your version matches, I only want to be certain before moving forward. Jackett had these same anomalous issues wherein an update was wanted by the application, and thus without updating… it crashed every 10 seconds. It’s possible Plex expressing the same unusual behavior.

Errors were encountered while processing:
plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
Job for plexmediaserver.service failed. See ‘systemctl status plexmediaserver.service’ and ‘journalctl -xn’ for details.

Ah, there’s a clue.

What does apt -y update && apt -y upgrade return?

The following packages will be upgraded:
plexmediaserver
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 99.8 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://shell.ninthgate.se/packages/debian/ jessie/main plexmediaserver amd 64 1.0.3.2461-35f0caa [99.8 MB]
Fetched 99.8 MB in 2s (43.9 MB/s)
Reading changelogs… Done
(Reading database … 77757 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.0.3.2461-35f0caa_amd64.deb …
Removed symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.serv ice.
Unpacking plexmediaserver (1.0.3.2461-35f0caa) over (1.0.2.2413-7caf41d) …
Processing triggers for systemd (215-17+deb8u4) …
Processing triggers for mime-support (3.58) …
Setting up plexmediaserver (1.0.3.2461-35f0caa) …
Job for plexmediaserver.service failed. See ‘systemctl status plexmediaserver.service’ and ‘journalctl -xn’ for details.
dpkg: error processing package plexmediaserver (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ok, let’s try to uninstall and reinstall.

removepackage-plex
apt-get autoremove
apt-get autoclean
installpackage-plex

Same situation as before

[quote=systemctl status plexmediaserver]
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled)
Active: failed (Result: start-limit) since Sat 2016-07-30 09:29:04 CEST; 3min 9s ago
Process: 20172 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || / bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=1/FAILURE)

Jul 30 09:28:59 DZGD1464 systemd[1]: Failed to start Plex Media Server for Linux.
Jul 30 09:28:59 DZGD1464 systemd[1]: Unit plexmediaserver.service entered failed state. [/quote]

Are you ok with shooting me a PM so I can login and take a look. It’s possible you have some conflict within your sources.list. There are several variables at play and it’s easier to check hands on.

Hey @JMSolo

just came back from vacation and gonna jump in on this …tried a

update of QB and then

apt-get update && apt-get -V upgrade

Here´s a log view:

Calculating upgrade... The following package was automatically installed and is            no longer required:
   avahi-utils (0.6.31-5)
Use 'apt-get autoremove' to remove it.
Done
The following packages will be upgraded:
   debhelper (9.20150101 => 9.20150101+deb8u2)
   libapache2-mod-php7.0 (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   libdbd-mysql-perl (4.028-2+b1 => 4.028-2+deb8u1)
   libgd3 (2.1.0-5+deb8u4 => 2.1.0-5+deb8u6)
   libmysqlclient18 (5.5.49-0+deb8u1 => 5.5.50-0+deb8u1)
   libperl5.20 (5.20.2-3+deb8u5 => 5.20.2-3+deb8u6)
   mysql-common (5.5.49-0+deb8u1 => 5.5.50-0+deb8u1)
   openssh-client (6.7p1-5+deb8u2 => 6.7p1-5+deb8u3)
   openssh-server (6.7p1-5+deb8u2 => 6.7p1-5+deb8u3)
   openssh-sftp-server (6.7p1-5+deb8u2 => 6.7p1-5+deb8u3)
   perl (5.20.2-3+deb8u5 => 5.20.2-3+deb8u6)
   perl-base (5.20.2-3+deb8u5 => 5.20.2-3+deb8u6)
   perl-modules (5.20.2-3+deb8u5 => 5.20.2-3+deb8u6)
   php5-cli (5.6.23+dfsg-0+deb8u1 => 5.6.24+dfsg-0+deb8u1)
   php5-common (5.6.23+dfsg-0+deb8u1 => 5.6.24+dfsg-0+deb8u1)
   php5-readline (5.6.23+dfsg-0+deb8u1 => 5.6.24+dfsg-0+deb8u1)
   php7.0 (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-cli (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-common (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-curl (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-dev (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-fpm (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-gd (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-json (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-mcrypt (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-mysql (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-opcache (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-readline (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-xml (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   php7.0-xmlrpc (7.0.8-1~dotdeb+8.1 => 7.0.9-1~dotdeb+8.1)
   plexmediaserver (1.0.0.2261-a17e99e-debian => 1.0.3.2461-35f0caa)
   syncthing (0.14.0 => 0.14.3)

Said yes to keep config file /etc/php/7.0/cli/php.ini as it wanted to overwrite it.
Said yes to keep Configuration file ‘/etc/init/plexmediaserver.conf’

Plex is now dead here as well…

What does systemctl status plexmediaserver show?

TheBox:~# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server for Linux
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled)
   Active: failed (Result: start-limit) since Sat 2016-07-30 15:33:50 CEST; 42min ago
  Process: 12303 ExecStart=/bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver /usr/lib/plexmediaserver/Plex\ Media\ Server (code=exited, status=1/FAILURE)
  Process: 12300 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
 Main PID: 12303 (code=exited, status=1/FAILURE)

Jul 30 15:33:45 TheBox systemd[1]: Unit plexmediaserver.service entered failed state.
Jul 30 15:33:50 TheBox systemd[1]: plexmediaserver.service holdoff time over, schedul...rt.
Jul 30 15:33:50 TheBox systemd[1]: Stopping Plex Media Server for Linux...
Jul 30 15:33:50 TheBox systemd[1]: Starting Plex Media Server for Linux...
Jul 30 15:33:50 TheBox systemd[1]: plexmediaserver.service start request repeated too...rt.
Jul 30 15:33:50 TheBox systemd[1]: Failed to start Plex Media Server for Linux.
Jul 30 15:33:50 TheBox systemd[1]: Unit plexmediaserver.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

What does the new command version of upgradePlex return? I wonder if you’re having the same issues as @Grayman. If so, something with Plex isn’t writing the proper permissions on the /var/lib/plexmediaserver for upgrading.