Upgrading PMS to 1.19.5 on Linux

Good afternoon all

I am having the same issue as above (never had the issue over the last 4 years until this version) and I don’t understand the solutions as the Plex server was built for me and all I do everytime a new version needs installing is this:

sudo wget https://downloads.plex.tv/plex-media-server-new/1.19.5.3112-b23ab3896/debian/plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb

sudo dpkg -i /home/wayne/plexmediaserver_ 1.19.5.3112-b23ab3896 _amd64.deb

sudo reboot

Can someone help, it needs to be idiot proof for me to be able to update my PLex going forward.

Thanks

Wayne

@Wootton-Warrior

Wayne,
I’m going to need more information than what you provided. There were a few issues in the thread you had posted in – all of which were resolved.

I moved you here to avoid further disturbing an already-solved thread.

I understand you didn’t build your PMS system. This is going to be difficult because Linux is not a forgiving OS and our time to teach / support basic Linux admin is very limited.

Please tell me / show me what is happening as best you can. If there’s a /tmp/plexinstaller.log file, please include it here for me to review.

Hi ChuckPa

This is the message when i try to update plex via Putty:

Preparing to unpack …/plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: ERROR: Environment variable “PLEX_MEDIA_SERVER_TMPDIR” is no longer allowed in “/etc/default/plexmediaserver”. Please remove.
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation failed.
PlexMediaServer install: Configuration information discovered:
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: Found
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete. Errors: 1, Warnings: 0
dpkg: error processing archive /home/wayne/plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb (–install):
subprocess new pre-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.15) …
Errors were encountered while processing:

does this helps?

Thanks

Wayne

Thanks for sharing the console output. You need to change exactly what the output shows.

In the thread you first posted, PLEX_MEDIA_SERVER_TMPDIR was a mistake I had made very early in the development of the Linux packaging support. I had included one variable name which wasn’t supported by Engineering in PMS itself.

The solution for you is to edit /etc/default/plexmediaserver (notice it’s listed as the “Config file used”)

Change that variable from PLEX_MEDIA_SERVER_TMPDIR to be (your choice of) TMPDIR, TEMP, or TMP as the variable name to use.

Now, when you install PMS, it will accept the variable name you’re using in your configuration and show that targeted temporary directory as intended.

Sorry I don’t understand, normally i log into plex via Putty and type

sudo wget https://downloads.plex.tv/plex-media-server-new/1.19.5.3112-b23ab3896/debian/plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb

once this has done its things I type, which unpacks the new version and installs it.

sudo dpkg -i /home/wayne/plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb

Then type

sudo reboot

That’s all I do, so I don’t understand what i need to change and where in reagrds to your guidance, sorry

You need to edit the configuration file.

If you’re unable to do it then you need help from the person who set it up for you.

Once you show him/her the error, it will be trivial to change.

Hi ChuckPa

I hope you’re well, I have now edited the information you recommended, the latest Plex would not download still so I also updated the Ubuntu software to:

Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-112-generic x86_64)

and try to update my Plex system again after and got this:

2020-08-28 12:54:10 (41.4 MB/s) - ‘plexmediaserver_1.20.1.3252-a78fef9a9_amd64.d eb.1’ saved [80217064/80217064]

wayne@plexserver:~$ sudo dpkg -i /home/wayne/plexmediaserver_1.20.1.3252-a78fef9 a9_amd64.deb
(Reading database … 1013062 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.20.1.3252-a78fef9a9_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Systemd configuration error detected:
PlexMediaServer install: File “/etc/systemd/system/plexmediaserver.service” is l eftover from an earlier Debian/Ubuntu bug.
PlexMediaServer install: Please transfer any customizations (APP_DIR, User, Gro up, TMPDIR, and/or UMask) to a proper “/override.conf”
PlexMediaServer install: and reinstall.
PlexMediaServer install: Unit override “/etc/systemd/system/plexmediaserver.serv ice” found.
PlexMediaServer install: Only “/etc/systemd/system/plexmediaserver.service.d/ove rride.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.
dpkg: error processing archive /home/wayne/plexmediaserver_1.20.1.3252-a78fef9a9 _amd64.deb (–install):
new plexmediaserver package pre-installation script subprocess returned error e xit status 1
Processing triggers for libc-bin (2.27-3ubuntu1.2) …
Errors were encountered while processing:
/home/wayne/plexmediaserver_1.20.1.3252-a78fef9a9_amd64.deb

As you can see I now have other error messages, can you help. Also i have lost all access to my files via Plex now. :frowning:

Thanks

Wayne

Wayne,
The error message itself is telling you what the problem is .

  1. There exists a file plexmediaserver.service in /etc/systemd/system
  2. It’s left over from when Ubuntu made the mistake of placing them there.
  3. The correct location should be /lib/systemd/system (systemd standard)

The installer detected it, might contain customizations, and because it’s in the wrong location (not-maintainable), is pointing out the misconfiguration.

This new installer we’ve moved to is intelligent. It’s purpose is to spot and report errors to you so you can fix them. The goal is to always guarantee PMS has a valid host configuration.

To resolve this:

  1. Compare the file /etc/systemd/system/plexmediaserver.service with the master copy in /lib/systemd/system/plexmediaserver.service
  2. If you find any differences in the Environment variables which are customizations for your installation, transfer those customizations to /etc/systemd/system/plexmediaserver.service.d/override.conf
  3. After transferring the customizations, remove the old file from /etc/systemd/system.
1 Like

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