Linux Server wont upgrade v 1.19

Server Version#: 1.18.4.2171

trying to upgrade to 1.19.1.2645

I stayed away from 1.18 on linux after lots of reports of broken upgrades, reading the posts I thought it best wait till 1.19 when these upgrades could be fixed (or at least a working solution)

Any help is appreciated

My flavor of linux is

NAME=“Ubuntu”
VERSION=“16.04.6 LTS (Xenial Xerus)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 16.04.6 LTS”

plexmediaserver stop/waiting
(Reading database … 199247 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.19.1.2645-ccb6eb67e_amd64.deb …
stop: Unknown instance:
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Unsupported init/systemd hybrid control configuration.
dpkg: error processing archive /tmp/plexmediaserver_1.19.1.2645-ccb6eb67e_amd64.deb (–install):
subprocess new pre-installation script returned error exit status 1
plexmediaserver start/running, process 26118
Processing triggers for libc-bin (2.23-0ubuntu11) …
Errors were encountered while processing:
/tmp/plexmediaserver_1.19.1.2645-ccb6eb67e_amd64.deb

Please tell me more about your 18.04 installation.

The test which determines whether systemd or SYSV-init is solid.
If the script cannot identify one of those two, and it’s not a recognized container, it will flag as an unsupported init/systemd hybrid.

This will happen if the system is still using upstart (from Ubuntu 15).

What is the origin of this installation (original Ubuntu version installed)?
What does cat /proc/1/comm return?
what does which systemd and which init return?
Lastly, when you evaluate each of the two paths (for systemd and init) with readlink <pathname> what do they return?

the same issue here
running PMS 1.18.6.2348 on ubuntu server 19.10, original Ubuntu version installed 18.04 LTS

cat /proc/1/comm
systemd

which systemd
/bin/systemd

which init
/sbin/init

readlink /bin/systemd
/lib/systemd/systemd

readlink /sbin/init
/lib/systemd/systemd

I am running currently on Ubuntu 19.10

Here’s the actual detection code.

Something isn’t right.

# Let's see what we can learn from this system
  # Detect true control program (init or systemd)
  if [ "$(cat /proc/1/comm)" = "systemd" ]; then

    # If systemctl exists,  we're doing ok so far
    if [ "$(which systemctl)" != "" ]; then
      Systemd=1
    fi


  # 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


detection code can not running . maybe something wrong with the format?

explain please? I’m not understanding.

If the preinstall code were not running, you wouldn’t get the message

What is the origin of this installation (original Ubuntu version installed)?
Originally Upgraded from 15 I believe

What does cat /proc/1/comm return?
init

which systemd
/bin/systemd

which init
/sbin/init

readlink /sbin/init
upstart

readlink /bin/systemd
/lib/systemd/systemd

@wopag

please do a cat /etc/os-release and share here please.

Everything you show me indicates it’s still Ubuntu 15.
Ubuntu 15 and Upstart support was discontinued by Canonical when 16.04 was released. (it’s how they do the even/odd year thing). Because of that, I can’t support any of the odd-numbered years either.

I paste the detection code in plex.sh file and run it that I newly created.
I got error message
-bash: plex.sh: line 12: syntax error near unexpected token `elif’

'bash: plex.sh: line 12: ` elif [ “$(cat /proc/1/comm)” = “init” ]; then

where did plex.sh come from?

There is no file by that name in the DEB distribution package.

My mistake lol, I got it wrong.
I just want to know how to upgrade to 19.x base on the info I provided.
Is there anything else I should put here

cat /proc/1/comm
systemd

which systemd
/bin/systemd

which init
/sbin/init

readlink /bin/systemd
/lib/systemd/systemd

readlink /sbin/init
/lib/systemd/systemd

Typos included… :wink:

[chuck@lizum lib.416]$ cat /proc/1/comm
systemd
[chuck@lizum lib.417]$ which systemd
/bin/systemd
[chuck@lizum lib.418]$ which init
/sbin/init
[chuck@lizum lib.419]$ readlink /bin/systemd
/lib/systemd/systemd
[chuck@lizum lib.420]$ which /bin/init
/bin/init: Command not found.
[chuck@lizum lib.421]$ which /sbin/init
/sbin/init
[chuck@lizum lib.422]$ 

Again, Where did plex.sh (your reference) come from.

Here is an in-process thread with updates I’ve made which are targeted for
PMS 1.19.3.

I invite you to give it a try.

https://forums.plex.tv/t/upgrade-to-1-19-1-removes-usr-sbin-start-pms/568627/34

plex.sh is that I created. I thought the code is something need to run on the ubuntu server.
I will try the new package. thanks.

After install plexmediaserver_1.19.2.2670-40c2bd5e0_amd64.deb

root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl stop plexmediaserverroot@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl stat plexmediaserver
Unknown operation stat.
root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl start plexmediaserver
root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: activating (auto-restart) (Result: core-dump) since Tue 2020-04-21 15:26:37 UTC; 2s ago
  Process: 14492 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_D
  Process: 14494 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-r
 Main PID: 14494 (code=dumped, signal=ABRT)

root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: activating (auto-restart) (Result: core-dump) since Tue 2020-04-21 15:26:42 UTC; 3s ago
  Process: 14520 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_D
  Process: 14529 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-r
 Main PID: 14529 (code=dumped, signal=ABRT)

root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: active (running) since Tue 2020-04-21 15:26:47 UTC; 139ms ago
  Process: 14543 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_D
 Main PID: 14552 (Plex Media Serv)
    Tasks: 1 (limit: 4915)
   Memory: 5.8M
   CGroup: /system.slice/plexmediaserver.service
           └─14552 /usr/lib/plexmediaserver/Plex Media Server

Apr 21 15:26:47 aria2-server systemd[1]: Starting Plex Media Server...
Apr 21 15:26:47 aria2-server systemd[1]: Started Plex Media Server.
Apr 21 15:26:47 aria2-server Plex Media Server[14552]: terminate called after throwing an instance o
Apr 21 15:26:47 aria2-server Plex Media Server[14552]:   what():  locale::facet::_S_create_c_locale 

root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: activating (auto-restart) (Result: core-dump) since Tue 2020-04-21 15:26:48 UTC; 1s ago
  Process: 14543 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_D
  Process: 14552 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-r
 Main PID: 14552 (code=dumped, signal=ABRT)

root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: activating (auto-restart) (Result: core-dump) since Tue 2020-04-21 15:26:48 UTC; 2s ago
  Process: 14543 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_D
  Process: 14552 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-r
 Main PID: 14552 (code=dumped, signal=ABRT)

root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: failed (Result: core-dump) since Tue 2020-04-21 15:26:53 UTC; 1s ago
  Process: 14543 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_D
  Process: 14552 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-r
 Main PID: 14552 (code=dumped, signal=ABRT)

Apr 21 15:26:53 aria2-server systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, sch
Apr 21 15:26:53 aria2-server systemd[1]: plexmediaserver.service: Scheduled restart job, restart cou
Apr 21 15:26:53 aria2-server systemd[1]: Stopped Plex Media Server.
Apr 21 15:26:53 aria2-server systemd[1]: plexmediaserver.service: Start request repeated too quickly
Apr 21 15:26:53 aria2-server systemd[1]: plexmediaserver.service: Failed with result 'core-dump'.
Apr 21 15:26:53 aria2-server systemd[1]: Failed to start Plex Media Server.

my override.conf

root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# cat override.conf 
#
# Customize Plex's config
#
# Identify this as a service override
[Service]
#
#  Move the data directory
#Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
#
#  These values are only needed if you wish to change user & group
#User=plex
#Group=plex
#
# This is needed to change the default umask     
UMask=0002    # this must be octal    - See warning below
root@aria2-server:/etc/systemd/system/plexmediaserver.service.d# cat override.conf 
#
# Customize Plex's config
#
# Identify this as a service override
[Service]
#
#  Move the data directory
#Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
#
#  These values are only needed if you wish to change user & group
#User=plex
#Group=plex
#
# This is needed to change the default umask     
UMask=0002    # this must be octal    - See warning below

Help me out?
I’m not following. Seeing only the service status doesn’t tell me anything.

/tmp/plexinstaller.log please?

root@aria2-server:/home/HDTV# cat /tmp/plexinstaller.log
# Plex Media Server installation configuration info:  Tue 21 Apr 2020 03:22:35 PM UTC
Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=1
OverrideFile="/etc/systemd/system/plexmediaserver.service.d/override.conf"
PlexUser="plex"
PlexGroup="plex"
VideoGroup="video"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=11802
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=0
Errors=0
Warnings=0
Platform="VMware Virtual Platform"
Processor="Intel(R) Xeon(R) CPU E7-4830 v2 @ 2.20GHz"
Distro="Ubuntu 19.10"
Kernel="Linux aria2-server 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux"
Memory="16034 529 12257"

Thanks. That helps a great deal.
Would you please make a tar.gz of the Plex Logs directory and attach it as well?

This is showing me successful upgrade from 1.18.02
with the only customization being a change in UMask.
Correct?

I use the previous article that you posted about override.conf.
just comment out something. no change didi in Umask

plexlog.tar.gz (853.5 KB)
As for the log file, I am not sure I did it the right way. if not plz let me know

@kingzleshe_sina_com

I have moved our conversation back over here .

That thread is about SYSV-init and the start_pms script.

Your issue isn’t related. The two conversations would get confusing very quickly.

@ChuckPa
I see, I just upload my log. plz check it out .