Plex not working after upgrade

plexmediaserver.service - LSB: Plex Media Server
Loaded: loaded (/etc/init.d/plexmediaserver)
Active: active (exited) since Thu 2016-07-28 06:45:37 EDT; 6h ago
Process: 787 ExecStart=/etc/init.d/plexmediaserver start (code=exited, status=0/SUCCESS)

Ok… and when you navigate to http://yourserverip:31400/web/ can you login? That statement says Plex is indeed running.

I am not sure what you mean by:

Refused to connect

Do service apache2 restart

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.