Plex not starting after upgrade from 1.18.6 to 1.19.1

@ChuckPa as per yesterday’s conversation here are my details.
(Link to yesterday coversation: Libraries and settings gone after upgrade to 1.19)

Upgraded from; plexmediaserver_1.18.6.2368-97add474d_amd64.deb
To; plexmediaserver_1.19.1.2589-2de7f3266_amd64.deb

And plex server will not start.

Matt.

sudo dpkg -i plexmediaserver_1.19.1.2589-2de7f3266_amd64.deb

(Reading database ... 119237 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.19.1.2589-2de7f3266_amd64.deb ...
plexmediaserver stop/waiting
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.19.1.2589-2de7f3266) over (1.18.6.2368-97add474d) ...
Setting up plexmediaserver (1.19.1.2589-2de7f3266) ...
PlexMediaServer install: PlexMediaServer-1.19.1.2589-2de7f3266 - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
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: Completing final configuration.
 System start/stop links for /etc/init.d/plexmediaserver already exist.
PlexMediaServer install: PlexMediaServer-1.19.1.2589-2de7f3266 - Installation successful.
Starting Plex Media Server. 
Processing triggers for libc-bin (2.19-0ubuntu6.15) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
matthew@thebed:~/plex_update_downloads$ cat /etc/default/plexmediaserver

cat /tmp/plexinstaller.log

# Plex Media Server installation configuration info:  Sat Apr  4 13:16:46 AEDT 2020
Init=1
Systemd=0
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=1
OverrideFile="/etc/default/plexmediaserver"
PlexUser="plex"
PlexGroup="plex"
VideoGroup="video"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=11806
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=1
Errors=0
Warnings=0

NOTE: I changed the value for PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR while I was testing this issue, can’t remember the default value it was now.
cat /etc/default/plexmediaserver

# default script for Plex Media Server

# the number of plugins that can run at the same time
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000

# where the mediaserver should store the transcodes
export PLEX_MEDIA_SERVER_TMPDIR=/tmp

# uncomment to set it to something else
#export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"

# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library (match what is in /etc/passwd)
export PLEX_MEDIA_SERVER_USER=plex

# Uncomment this to use syslog for logging instead of
# sending logs to Plex Media Server.log
#export PLEX_MEDIA_SERVER_USE_SYSLOG=true

uname -v

#88~14.04.1-Ubuntu SMP Fri Jan 13 14:54:07 UTC 2017

cat /var/log/dpkg.log

2020-04-04 13:16:40 startup archives install
2020-04-04 13:16:44 upgrade plexmediaserver:amd64 1.18.6.2368-97add474d 1.19.1.2589-2de7f3266
2020-04-04 13:16:44 status triggers-pending libc-bin:amd64 2.19-0ubuntu6.152020-04-04 13:16:44 status half-configured plexmediaserver:amd64 1.18.6.2368-97add474d2020-04-04 13:16:45 status unpacked plexmediaserver:amd64 1.18.6.2368-97add474d2020-04-04 13:16:45 status half-installed plexmediaserver:amd64 1.18.6.2368-97add474d
2020-04-04 13:16:58 status triggers-pending mime-support:all 3.54ubuntu1.1
2020-04-04 13:16:59 status half-installed plexmediaserver:amd64 1.18.6.2368-97add474d
2020-04-04 13:17:00 status unpacked plexmediaserver:amd64 1.19.1.2589-2de7f3266
2020-04-04 13:17:00 status unpacked plexmediaserver:amd64 1.19.1.2589-2de7f3266
2020-04-04 13:17:01 configure plexmediaserver:amd64 1.19.1.2589-2de7f3266 1.19.1.2589-2de7f3266
2020-04-04 13:17:01 status unpacked plexmediaserver:amd64 1.19.1.2589-2de7f3266
2020-04-04 13:17:01 status unpacked plexmediaserver:amd64 1.19.1.2589-2de7f3266
2020-04-04 13:17:01 status half-configured plexmediaserver:amd64 1.19.1.2589-2de7f3266
2020-04-04 13:17:08 status installed plexmediaserver:amd64 1.19.1.2589-2de7f3266
2020-04-04 13:17:09 trigproc libc-bin:amd64 2.19-0ubuntu6.15 2.19-0ubuntu6.15
2020-04-04 13:17:09 status half-configured libc-bin:amd64 2.19-0ubuntu6.15
2020-04-04 13:17:10 status installed libc-bin:amd64 2.19-0ubuntu6.15
2020-04-04 13:17:10 trigproc mime-support:all 3.54ubuntu1.1 3.54ubuntu1.1
2020-04-04 13:17:10 status half-configured mime-support:all 3.54ubuntu1.1
2020-04-04 13:17:11 status installed mime-support:all 3.54ubuntu1.1

and syslog after trying to start the plexmediaserver service…
tail /var/log/syslog | grep -i plex

Apr  4 13:25:55 thebed kernel: [89524.183762] init: plexmediaserver main process (18003) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.183778] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.190117] init: plexmediaserver main process (18006) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.190131] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.195768] init: plexmediaserver main process (18009) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.195781] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.201209] init: plexmediaserver main process (18012) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.201221] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.206083] init: plexmediaserver main process (18015) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.206096] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.211714] init: plexmediaserver main process (18018) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.211727] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.217466] init: plexmediaserver main process (18021) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.217478] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.223042] init: plexmediaserver main process (18024) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.223054] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.228576] init: plexmediaserver main process (18028) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.228588] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.233961] init: plexmediaserver main process (18031) terminated with status 2
Apr  4 13:25:55 thebed kernel: [89524.233973] init: plexmediaserver main process ended, respawning
Apr  4 13:25:55 thebed kernel: [89524.239626] init: plexmediaserver main process (18034) terminated with status 2Apr  4 13:25:55 thebed kernel: [89524.239637] init: plexmediaserver respawning too fast, stopped

According to your post of yesterday:

PlexMediaServer install: Metadata Dir: /Library/Application Support

If this is a parsing error, it is the first one I’ve ever encountered in all the testing we’ve done and all the systems currently using it. So if a valid error, I want to find out why.

You do state now you changed it. No matter at this point. Let’s get it working again.

It won’t start?

What do the PMS logs show?

To cross reference error codes:

Error 2 =

[chuck@lizum ~.31]$ perror 2
Exit code(2): error "No such file or directory"
[chuck@lizum ~.32]$

I definitely don’t like the “half-configured” status of plexmediaserver.

Re-installing 1.18 works fine and starts back up. Results of that install below.

sudo dpkg -i plexmediaserver_1.18.6.2368-97add474d_amd64.deb

dpkg: warning: downgrading plexmediaserver from 1.19.1.2589-2de7f3266 to 1.18.6.2368-97add474d
(Reading database ... 119229 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.18.6.2368-97add474d_amd64.deb ...
stop: Unknown instance: 
Plex Media Server is not running.
PlexMediaServer install: Pre-installation Validation.  
PlexMediaServer install: Pre-installation Validation complete.  
Unpacking plexmediaserver (1.18.6.2368-97add474d) over (1.19.1.2589-2de7f3266) ...
Setting up plexmediaserver (1.18.6.2368-97add474d) ...
PlexMediaServer install:    
PlexMediaServer install: Now installing based on:  
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:   HW transcoding:     Found  
PlexMediaServer install:    
PlexMediaServer install: Completing final configuration.  
 System start/stop links for /etc/init.d/plexmediaserver already exist.
PlexMediaServer install: PlexMediaServer-1.18.6.2368-97add474d - Installation successful.  
Processing triggers for libc-bin (2.19-0ubuntu6.15) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...

cat /tmp/plexinstaller.log

# Plex Media Server installation configuration info:  Sat Apr 4 14:11:42 AEDT 2020
Init=1
Systemd=0
LinuxContainer=0
NewInstall=0
HaveOverride=1
OverrideFile="/etc/default/plexmediaserver"
PlexUser="plex"
PlexGroup="plex"
VideoGroup="video"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=11901
HaveHardware=1
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=1

cat /etc/default/plexmediaserver # default script for Plex Media Server

# the number of plugins that can run at the same time
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6

# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000

# where the mediaserver should store the transcodes
export PLEX_MEDIA_SERVER_TMPDIR=/tmp

# uncomment to set it to something else
#export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"

# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library (match what is in /etc/passwd)
export PLEX_MEDIA_SERVER_USER=plex

# Uncomment this to use syslog for logging instead of
# sending logs to Plex Media Server.log
#export PLEX_MEDIA_SERVER_USE_SYSLOG=true

Do me a favor? Go look in /root see if you see any Plex directories there?

If so, that’s the result of the $HOME timing bug we found with /etc/init.d/plexmediaserver in PMS 1.19.1

Continuing on this same hypothesis, a tweak to /etc/init.d/plexmediaserver will remedy the bug for now.

I also have a candidate complete replacement for /etc/init.d/plexmediaserver which I want to put into PMS 1.19.2 for everyone but it does need more testing than my limited regression tests here

Nothing in the PMS log, doesn’t even start logging.

The service plexmediaserver.prev does run, just plexmediaserver doesn’t

I assume I am doing this correctly.

sudo su
root@thebed:/Library/Application Support/Plex Media Server# cd /root
root@thebed:~# ls -a
.  ..  .aptitude  .bash_history  .bashrc  .cache  .profile  .ssh
root@thebed:~# 

Error 2 =

OS error code   2:  No such file or directory

what is root’s home directory on your system?

Is it / or /root ?

If it’s /, then /Library makes sense.

${HOME}/Library/Application Support/Plex Media Server
would evaluate as
//Library/Application Support/Plex Media Server (the // gets folded into 1)

This is why ::

Plex home = /var/lib/plexmediaserver
results in
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server

sorry misunderstood.

matthew@thebed:~$ ls -ah /
.   bin   dev  home        initrd.img.old  lib64    lost+found  mnt  persist  root  sbin  sys  usr  vmlinuz
..  boot  etc  initrd.img  lib             Library  media       opt  proc     run   srv   tmp  var  vmlinuz.old

and

matthew@thebed:~$ ls -lah Library/Application\ Support/Plex\ Media\ Server/
total 40K
drwxrwxr-x 9 matthew matthew 4.0K Apr  4 14:40 .
drwxrwxr-x 3 matthew matthew 4.0K Nov 11  2015 ..
drwxrwxr-x 3 plex    plex    4.0K Apr  4 14:37 Cache
drwxrwxr-x 3 plex    plex    4.0K Apr  3 12:07 Codecs
drwxrwxr-x 3 matthew matthew 4.0K Apr  3 12:07 Crash Reports
drwxrwxr-x 3 plex    plex    4.0K Apr  4 14:37 Logs
drwxr-xr-x 3 root    root    4.0K Apr  3 12:48 Plug-ins
drwxrwxr-x 7 matthew matthew 4.0K Apr  3 12:47 Plug-in Support
-rw-r--r-- 1 root    root     310 Apr  3 12:47 Preferences.xml
drwxrwxr-x 2 matthew matthew 4.0K Nov 11  2015 Scanners

and the other one. Main one?

ls -lah /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/
total 56K
drwxr-xr-x 13 plex plex 4.0K Apr  4 14:37 .
drwxr-xr-x  3 plex plex 4.0K Nov  6  2015 ..
drwxr-xr-x  7 plex plex 4.0K Apr  4 14:35 Cache
drwxr-xr-x  4 plex plex 4.0K Feb  7 18:09 Codecs
drwxr-xr-x 51 plex plex 4.0K Feb  7 18:05 Crash Reports
drwxr-xr-x  2 plex plex 4.0K Jun  1  2018 Diagnostics
drwxr-xr-x  3 plex plex 4.0K Apr  4 14:12 Logs
drwxr-xr-x  3 plex plex 4.0K Nov  6  2015 Media
drwxr-xr-x  7 plex plex 4.0K Sep 11  2018 Metadata
drwxr-xr-x  7 plex plex 4.0K Dec 16  2018 Plug-ins
drwxr-xr-x  7 plex plex 4.0K Nov  6  2015 Plug-in Support
-rw-------  1 plex plex 1.9K Apr  4 14:12 Preferences.xml
drwxr-xr-x  2 plex plex 4.0K Nov  6  2015 Scanners
drwxr-xr-x  3 plex plex 4.0K Nov  6  2015 Thumbnails

Bingo! $HOME bug.

Want to run the new init script?

ok.

just download it, chmod + x and then run it? I assume.

Are you looking at what I posted in the other thread?

I can post here for you if you wish.

ok, simpler instructions would be handy, I know a little linux, but not enough of the terminologies. If it is just download, make executable and run script i have it on my server ready to go.

sudo ./plexmediaserver-init-v1.5.sh

But if I need to do anything else let me know.

To use that as your main /etc/init.d/plexmediaserver

  1. sudo cp ./plexmediserver-init-v1.5.sh /etc/init.d
  2. cd /etc/init.d
  3. sudo mv plexmediaserver plexmediaserver.orig
  4. sudo mv plexmediaserver-init-v1.5.sh plexmediaserver
  5. sudo chmod +x plexmediaserver

what I did.

  1. copied the new script into /etc/init.d
  2. Got into /etc/init.d
  3. Renamed the distribution copy to .orig
  4. Renamed the new one to take its place
  5. Gave it execute permission.

Now it’s set to use normally.

If you install PMS 1.19.1, you can use this same procedure above to use this new plexmediaserver with PMS 1.19.1`

You’ll need clean up the residual /Library after the 1.19.1 installer exits. Sorry about that.

nope, same issue. in syslog status 2

matthew@thebed:/etc/init.d$ ls -lah plex*
-rwxr-xr-x 1 root root 6.2K Apr  4 15:14 plexmediaserver
-rwxr-xr-x 1 root root 3.3K Apr  4 14:37 plexmediaserver.orig
-rwxr-xr-x 1 root root 1.7K Apr  4 14:11 plexmediaserver.prev

syslog


awning
Apr  4 15:15:59 thebed kernel: [96130.296483] init: plexmediaserver main process (22473) ter
minated with status 2
Apr  4 15:15:59 thebed kernel: [96130.296495] init: plexmediaserver main process ended, resp
awning
Apr  4 15:15:59 thebed kernel: [96130.302084] init: plexmediaserver main process (22476) ter
minated with status 2
Apr  4 15:15:59 thebed kernel: [96130.302095] init: plexmediaserver respawning too fast, sto
pped

Check your PM

Still nothing in the PM log. Last updated over an hour ago.

matthew@thebed:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs

rw-r--r--  1 plex plex 9.3K Apr  4 14:37 Plex Media Server.log
drwxr-xr-x 13 plex plex 4.0K Apr  4 14:37

Please check your PMs. (the green dot in the upper right corner)

Writing a followup here.

Root cause analysis revealed:

  1. Ubuntu 14
  2. glibc was updated but service and dpkg were not.
  3. Resulted in PMS being left in an ‘rc’ state.

Actions taken

  1. Manually cleared the hung state
  2. Installed 1.18.6
  3. Removed 1.18.6
  4. Installed 1.19.1
  5. Installed updated /etc/init.d/plexmediaerver v1.5
  6. System operational normally.

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