Upgrade to 1.19.5.3112-b23ab3896 fails on .DEB based non-systemd Linux

Server Version#: 1.19.5.3112-b23ab3896
Player Version#: N/A

# dpkg -i plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb
(Reading database ... 99282 files and directories currently installed.)
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 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.24-11+deb9u4) ...
Errors were encountered while processing:
 plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb

I should note that I already read Customizing your Plex configuration, but I cannot find an equivalent for non-systemd-based systems.

The variable name is TMPDIR not PLEX_MEDIA_SERVER_TMPDIR.

I do support:

    # Check TempDir
    Candidate=""
    # Be generous with TEMP DIR specification
    if [ "$TMPDIR" != "" ]; then
      Candidate="$TMPDIR"

    elif [ "$TEMP" != "" ]; then
      Candidate="$TEMP"

    elif [ "$TMP" != "" ] && [ -d "$TMP" ]; then
      Candidate="$TMP"
    fi

When I did the initial draft, I accidentally and erroneously included “PLEX_MEDIA_SERVER_TEMPDIR”.

It was never connected to PMS internally so I was forced to remove it.

I do support variations on TEMP (TMPDIR and TMP) per the Linux standard.

you can find this in /usr/lib/plexmediaserver/lib/plexmediaserver.init (the backup copy I bring with PMS).

I don’t overwrite or edit an existing /etc/default in any way as that would be overstepping.

2 Likes

That was the information I needed, thank you.

Suffered the same error at install of 1.19.5.1132, solved it renaming the variable in my systemd override to simply TMPDIR.
Thx @ChuckPa!

Supplemental to all:

In /usr/lib/plexmediaserver/lib, I provide backups (pristine copies) of the key files.

  1. plexmediaserver.service – Default service file (in case you edited the /lib version – which you shouldn’t – and break it.
  2. plexmediaserver.default - Default /etc/default/plexmediaserver (init systems only)
  3. plexmediaserver.init - Default /etc/init.d/plexmediaserver (init systems only)

In all cases, /lib/systemd/system/plexmediaserver.service and /etc/init.d/plexmediaserver are forcibly overwritten when the package is updated or re-installed.

I provide the files for you to use should you wish the reference for overrides or other purposes.

1 Like

A post was split to a new topic: Upgrading PMS to 1.19.5 on Linux

Im sorry guys, Im a newbie. How exactly do I fix this error? How do I change it to TMPDIR

Update: Nevermind, figured it out!

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