Error installing latest release version on Ubuntu 18.04 LTS

Hi

Got the email about upgrading from 1.10 so I downloaded the latest deb files for Ubuntu 18.04 LTS. Installation failed around 16%. This is the command line error message? Any suggestions? TIA

PlexMediaServer install: Pre-installation Validation complete.
dpkg: error processing archive plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb (–install):
new plexmediaserver package pre-installation script subprocess returned error exit status 1
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /etc/systemd/system/plexmediaserver.service.
Processing triggers for libc-bin (2.27-3ubuntu1.2) …
Errors were encountered while processing:
plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb

Is your system fully upgraded? I ask because a script processing failure in the pre-installation phase is a bad indication of system health.

You might still have a file named /tmp/plexinstaller.log . May I see it please ?

If need be, I can share the bare script and you can run it from the command line to see where it’s failing. From there, we can figure out why

No .log file, not even when I reran the installer manually.

Took your advice regarding system health. Did a reformat and clean minimal install of Ubuntu 20.04 LTS. The system is a six year old Asus Chromebox whose only task is to run Plex Media Server and Transmission 24/7 with all libraries located on a NAS. The PMS 1.19 now installed without any issues.

Thanks.

I’m glad you resolved it. It’s unfortunate that you had to rebuild it.

Exact same issue with it failing at 16%. I hadn’t considered running the update from command line, but gave that a try and get the identical error. I used to use this machine for Plex and a website, but now it’s just for plex. Maybe I need to bite the bullet and reinstall too.

@wwarren

BEFORE you do anything hasty, would you like the plexmediaserver.preinst script, external from the package, so we can figure out what’s happening?

Here is the preinstall script.

  1. extract
  2. run as root (sudo)

PlexPreInstall.tar.gz (6.9 KB)

If Ubuntu 18.04 is having the same downstream problems as Debian 9 & 10 have then I have the solution for this already in the queue but we can work something out until it gets released by Engineering.

Sure, I’ll give it a try and let you know what happens.

Thanks.

If it runs, it will produce the file /tmp/plexinstaller.log.
I’d like to see that too please.

It did not produce the log file.

PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Systemd configuration error detected:
PlexMediaServer install: File “/etc/systemd/system/plexmediaserver.service” is leftover from an earlier Debian/Ubuntu bug.
PlexMediaServer install: Please transfer any customizations (APP_DIR, User, Group, TMPDIR, and/or UMask) to a proper “/override.conf”
PlexMediaServer install: and reinstall.
PlexMediaServer install: Unit override “/etc/systemd/system/plexmediaserver.service” found.
PlexMediaServer install: Only “/etc/systemd/system/plexmediaserver.service.d/override.conf” is supported.
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation failed.
PlexMediaServer install: Configuration information discovered:
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: Found
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete.
walter@Latitude:~/Desktop$

Thank you.

Notice the error text? It should be self explanatory.

PlexMediaServer install: Only “/etc/systemd/system/plexmediaserver.service.d/override.conf” is supported.

You have the file /etc/systemd/system/plexmediaserver.service which you customized at some point or is this residual from sometime early in Ubuntu 16’s existence when they put the files in the wrong place. (systemd default is in /lib/systemd/system/plexmediaserver.service)

The easy solution here is just as I report in the error text.

If you have any customizations for the runtime Environment you wish to keep, create the file /etc/systemd/system/plexmediaserver.service.d/override.conf and place those singular items (User, Group, APP_SUPP_DIR, TMPDIR, and/o UMask) in the override.conf

What’s important here is that you allow the service to run as I configured it to work with systemd. You’re completely free to specify (override) the default variable values for the rest.

If you need help figuring out what to keep,

Scroll down to “Overriding the Environment” and remember you can specify User= and Group= as well.

If you need help customizing, please show me what you have and I’ll write it for you.

I started using Plex at least 6-7 years ago, so I’m not sure what I would have customized. From what I’m seeing in my file, the only thing I can think I might have ever customized was “User=plex” and “Group=plex”. What would a clean install look like for this file?

If you look in /usr/lib/plexmediaserver/lib, you will find a set of default text files along side the binary libraries. I include them for reference.

File /lib/systemd/system/plexmediaserver.service is overwritten with each installation. It is the master service file.

You can reference either location and see default configuration.

My 18.04 system had been upgraded from an original 16.04 clean reinstall. Apart from some third party plugin installs (most now obsolete) I made no modifications. So files in the wrong place from that setup may indeed have broken the 1.19 PMS install.

Ubuntu 16.04 , the initial release, is where the deviation (error) from systemd standard occurred.

They corrected it in the first update but for those who had already installed Plex – the damage was done.

Lets go through what was reported.

  1. The installation environment it reported is:
  1. This all looks to be standard – No customization , Is this correct ?

It appeared that I had no actual customizations. Upon deleting the file, it installed without problem. Thanks for walking me through it!

Good to hear.

Everything is up and running ok?

For reference, you can look at file /tmp/plexinstaller.log. (presuming you haven’t rebooted yet)

In there you will find everything the installer gathered about the system during installation. It’s a nice summary for you and a great debugging tool for me if things ever fail miserably.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.