PMS 1.18.5.2309-f5213a238 won't upgrade

Server Version#: 1.18.3.2156-349e9837e
Player Version#: N/A

Upgrading via apt from plexmediaserver_1.18.3.2156-349e9837e to plexmediaserver_1.18.5.2309-f5213a238

Official Deb upgrade (Stable)
Preparing to unpack …/plexmediaserver_1.18.5.2309-f5213a238_amd64.deb …
Removed symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
PlexMediaServer install: Pre-installation Validation.
grep: Users: No such file or directory
PlexMediaServer install: Error: Unknown username ‘Domain Users’ used in /etc/systemd/system/plexmediaserver.service.d/override.conf.
dpkg: error processing archive /var/cache/apt/archives/plexmediaserver_1.18.5.2309-f5213a238_amd64.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Created symlink from /etc/systemd/system/multi-user.target.wants/plexmediaserver.service to /lib/systemd/system/plexmediaserver.service.
Processing triggers for libc-bin (2.23-0ubuntu11) …
Errors were encountered while processing:
/var/cache/apt/archives/plexmediaserver_1.18.5.2309-f5213a238_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This issue seems to be because my plex user’s default group is ‘Domain Users’. The deb script doesn’t enclose the user’s group name in double quotes so the grep statement is seeing the group as two grep arguments. This wasn’t an issue in 1.18.3.2156-349e9837e. This looks like a regression bug.

Which version are you upgrading from?

I ask because of:

and the companion thread for reporting issues.

I’ll get it figured out but genuinely curious how it got there.
When was the value become “Domain User” ?

I cite POSIX:

4 Answers. Group and user names aren’t allowed to contain the space character on POSIX-style systems; see Command line login failed with two strings ID in Debian Stretch for references (the restrictions apply to groups as well as users).Nov 1, 2017

Please read the original post…

While I get that spaces shouldn’t be in posix user and group names, but this happens all the time in the real world. Any linux machine integrates with Active Directory is going to have this case. I happen to have an LDAP directory that also integrates with Windows (aka old style SAMBA).

Another note, the systemd plexmediaserver.service file doesn’t honor /etc/default/plexmediaserver settings.

It has been that way since I first installed PMS, back in the early Ubuntu 14.04 days.

I’m sorry. Today has been my day as “the fish in the barrel”.

I’m rebuilding my entire environment from scratch on a new distro.
It seems my previous distro & version lost their sense of config management.

They seem to think kernel 5.4.17 will work just fine with kernel-headers 5.4.7.
Try telling that to anything which inspects those things (like VMware)

As the packaging stands now,

  1. It was written to be POSIX compliant.
  2. The PlexPass version has corrections for some of what you’re seeing (LDAP naming) which public (2309) does not.

I’ve spoken with other members of the team.

In consideration of being more tolerant of such cases, I am already preparing an update which will solve this permanently.

I am making extensive use of " even where POSIX says they’re not needed / allowed because the intent here is to install properly and run on “just about anything”.

If you don’t mind uninstalling, going back to 1.18.3, and waiting until the next PlexPass update from Engineering, the changes I’m making now will be included.

If you’d like, I’m willing to work with you to test out the new changes as soon as I have a new DEB in hand. (I can’t even build my own locally at this point – no VMs)

Sure, I’ll do some testing.

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