Server Version#:1.19.3.2793-36efde971
Hey guys… Today I attempted to update Plex, as I have many times in the past
wget https://downloads.plex.tv/plex-media-server-new/1.19.3.2793-36efde971/debian/plexmediaserver_1.19.3.2793-36efde971_amd64.deb
dpkg -i plexmediaserver_1.19.3.2793-36efde971_amd64.deb
When it attempts to install, I get the following:
# dpkg -i plexmediaserver_1.19.3.2793-36efde971_amd64.deb
Selecting previously unselected package plexmediaserver.
(Reading database ... 293250 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.19.3.2793-36efde971_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.19.3.2793-36efde971) ...
Setting up plexmediaserver (1.19.3.2793-36efde971) ...
PlexMediaServer install: PlexMediaServer-1.19.3.2793-36efde971 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: init
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Config file used: /etc/default/plexmediaserver
PlexMediaServer install: Transcoding HW: Not found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
dpkg: error processing package plexmediaserver (--install):
subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin (2.19-0ubuntu6.15) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Errors were encountered while processing:
plexmediaserver
I’ve tried suggestions that I’ve found in searching here, to no avail, including:
- uninstall / reinstall of plex (though I haven’t purged my library yet)
- apt-get -f (returns similar error)
- performed steps to fix corrupt DB (no change)
- ran udevadm control --reload-rules / udevadm trigger (no output / no change)
- Attempted to uninstall / reinstall using older build (same error)
Any help is greatly appreciated.
Need to know more info.
- Distro version?
- May I have the contents of the
/tmp/plexinstaller.log
file ?
- In a VM or Container?
FYI: There is a significant SYSV scripting bug fix coming in PMS 1.19.4. It impacts how PMS handles customization variables. (overrides)
I’m gunna take some heat for this one… Ubuntu 14.04 LTS, that said… PMS has been running there without issue up to the last version.
# Plex Media Server installation configuration info: Thu May 14 14:19:56 PDT 2020
Init=1
Systemd=0
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=1
OverrideFile="/etc/default/plexmediaserver"
PlexUser="plex"
PlexGroup="plex"
VideoGroup="video"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=0
HaveHardware=0
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=0
Errors=0
Warnings=0
Not in a VM.
Thanks for the help
What is in the override (/etc/default/plexmediaserver) please?
# default script for Plex Media Server
# the number of plugins that can run at the same time
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
# where the mediaserver should store the transcodes
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
# uncomment to set it to something else
# export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support"
# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library (match what is in /etc/passwd)
export PLEX_MEDIA_SERVER_USER=plex
# Uncomment this to use syslog for logging instead of
# sending logs to Plex Media Server.log
#export PLEX_MEDIA_SERVER_USE_SYSLOG=true
Ubuntu 14.04.
I’m seeing more and more of this.
DPKG in 14.04 has been coughing up errors for others too,
14.04 should be ‘dead’ due to the glibc 2.14.1 minimum version requirement but folks often update glibc.
More often than not they skip updating DPKG.
14.04 LTS is now a full year past “LTS” timestamp.
Nothing I can do here without you updating dpkg to current as well.
That’s unfortunate, but I understand. I’ll attempt to upgrade to 16.04 and will report back shortly
@ChuckPa
Well, it’s been a day over here, but I’m on 16.04 now, and the error I’m now getting when I attempt to install is:
Selecting previously unselected package plexmediaserver.
(Reading database ... 344872 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.19.3.2793-36efde971_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.19.3.2793-36efde971) ...
Setting up plexmediaserver (1.19.3.2793-36efde971) ...
PlexMediaServer install: PlexMediaServer-1.19.3.2793-36efde971 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Transcoding HW: Not found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
Failed to execute operation: File exists
dpkg: error processing package plexmediaserver (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Errors were encountered while processing:
plexmediaserver
You did an upgrade versus a clean install?
If so, which I think is what’s going on, something got missed.
I’ve not seen that since folks tried to upgrade from Upstart -> Systemd
Remove Plex completely from /var/lib/dpkg/info
(you’ll see all the phase files)
The goal here is to make Ubuntu forget it ever had Plex installed.
Yeah, I did an upgrade… I’m really trying to avoid a clean install if possible… I have a lot going on, on this server that would be rough to rebuild, but, that may happen.
I don’t see anything plex related in /var/lib/dpkg/info
.
Since my last post, I did a reboot, and now on install attempt I’m getting
Selecting previously unselected package plexmediaserver.
(Reading database ... 348710 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.19.3.2793-36efde971_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Unsupported init/systemd hybrid control configuration.
dpkg: error processing archive plexmediaserver_1.19.3.2793-36efde971_amd64.deb (--install):
subprocess new pre-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
plexmediaserver_1.19.3.2793-36efde971_amd64.deb
I can direct you on that one.
PlexMediaServer install: Unsupported init/systemd hybrid control configuration
Here’s the test. This trickery is a redirect to make it look like you have init when you don’t.
# If this looks like init, be careful of redirectioon
elif [ "$(cat /proc/1/comm)" = "init" ]; then
# Verify it's not a redirected init -> systemd
if [ "$(readlink /sbin/init)" = "" ]; then
Init=1
elif [ "$(readlink /sbin/init | grep systemd | wc -l)" -gt 0 ]; then
Systemd=1
else
Output "Unsupported init/systemd hybrid control configuration."
exit 1
fi
Track it down. if you really have init but it was relocated, simply move (copy) it.
I use this test to avoid getting caught by upstart upgrades. It’s a necessary evil.
Hmm, here’s what I’m getting:
# cat /proc/1/comm
init
# readlink /sbin/init
upstart
# readlink /sbin/init | grep systemd | wc -l
0
I’m not quite sure where to go from here, though
that’s what I was afraid of.
It claimed to give you 16 which is systemd based. You got upstart.
Do you have a /home
partition or is it all one file system?
OS wise it’s all on one file system. There are multiple HDD’s in there for data, though
what I’ve found to be very helpful over the years is to partition the boot drive.
Then, with a few shell scripts, you can capture your host config info and save it to /home.
When you install fresh with the next version, you copy the files back.
Doing it this way puts me back into full operation as fast as the packages load.
Do you think there’s any hope to revive Plex on my current installation?
Not without making it fully, or at least appear to be, fully systemd compliant.
Upstart was a failed experiment. It existed in Ubuntu 15.04 only.
When 16.04 came out, it was removed.
As is with all odd-numbered years, support for those years is ended by Canonical when the next even-numbered year is released. Thus, in the same turn, Ubuntu 19.x is now discontinued / unsupported. Whenever it breaks, it’s done too.
Not without making it fully, or at least appear to be, fully systemd compliant.
Do you have any advice or pointers on how to accomplish this? It will be a massive undertaking for me to complete a full rebuild of this server… I know it’s going to happen at some point, but as of this morning, everything -but- Plex is working for me on the upgrade.
Upstart was a failed experiment. It existed in Ubuntu 15.04 only.
When 16.04 came out, it was removed.
Weird that it would now be present on my system, as I skipped 15.4 and went from 14.04 → 16.04
@ChuckPa just following up on my last reply here… hoping you might have some tips to help me.
Thanks again
@ChuckPa Since it was the weekend, I’m guessing you didn’t see my followups, just wanted to try one more time. Any help you can offer is greatly appreciated.