Plex not starting after upgrade

Server Version#: 1.20.4.3517

Upgraded from; plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb
To; plexmediaserver_(1.20.4.3517-ab5e1197c_amd64.deb

And plex server will not start.

 apt-get upgrade
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Calcolo dell'aggiornamento... Fatto
I seguenti pacchetti saranno aggiornati:
  plexmediaserver
1 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
È necessario scaricare 0 B/81,1 MB di archivi.
Dopo quest'operazione, verranno occupati 3.439 kB di spazio su disco.
N: Viene ignorato il file "10-amule.list.old" nella directory "/etc/apt/sources.list.d/" poiché ha un'estensione non valida
Continuare? [S/n] S
Lettura dei changelog... Fatto
N: Viene ignorato il file "10-amule.list.old" nella directory "/etc/apt/sources.list.d/" poiché ha un'estensione non valida
(Lettura del database... 262554 file e directory attualmente installati.)
Preparativi per estrarre .../plexmediaserver_1.20.4.3517-ab5e1197c_amd64.deb...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Estrazione di plexmediaserver (1.20.4.3517-ab5e1197c) su (1.19.5.3112-b23ab3896)...
Configurazione di plexmediaserver (1.20.4.3517-ab5e1197c)...
PlexMediaServer install: PlexMediaServer-1.20.4.3517-ab5e1197c - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
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/plex  (set in Preferences.xml)
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Transcoding HW:      Not found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: PlexMediaServer-1.20.4.3517-ab5e1197c - Installation successful.  Errors: 0, Warnings: 0
Elaborazione dei trigger per mime-support (3.62)...
Elaborazione dei trigger per libc-bin (2.28-10)...
Elaborazione dei trigger per desktop-file-utils (0.23-4)...
root@homeserver:/usr/lib/plexmediaserver/Resources# systemctl status plexmediaserver

● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: deactivating (stop-sigterm) (Result: signal) since Fri 2020-11-13 22:50:48 CET; 51s ago
  Process: 3880 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
  Process: 3882 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )";  export PLEX_MEDIA_SERVER_INFO_DEVICE="PC";  export PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)";  export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )";  export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib;   exec "/usr/lib/plexmediaserver/Plex Media Server" (code=killed, signal=SEGV)
Main PID: 3882 (code=killed, signal=SEGV)
    Tasks: 53 (limit: 4915)
   Memory: 149.7M
   CGroup: /system.slice/plexmediaserver.service
           ├─4032 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.20.4.3517-ab5e1197c /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/System.bundle
           ├─4130 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.20.4.3517-ab5e1197c 32600 /waitmutex
           ├─4169 Plex Plug-in [com.plexapp.agents.movieposterdb] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.20.4.3517-ab5e1197c /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/TheMovieDB.bundle
           ├─4173 Plex Plug-in [com.plexapp.agents.localmedia] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.20.4.3517-ab5e1197c /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/MoviePosterDB.bundle
           └─4174 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.20.4.3517-ab5e1197c /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/LocalMedia.bundle

nov 13 22:50:39 homeserver systemd[1]: Starting Plex Media Server...
nov 13 22:50:39 homeserver systemd[1]: Started Plex Media Server.
nov 13 22:50:48 homeserver Plex Media Server[3882]: ****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.20.4.3517-ab5e1197c/PLEX MEDIA SERVER/7206ca0b-380c-b088-4166e0cc-49647ff7.dmp

nov 13 22:50:48 homeserver systemd[1]: plexmediaserver.service: Main process exited, code=killed, status=11/SEGV
nov 13 22:50:48 homeserver Plex Media Server[3882]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/MoviePosterDB.bundle.
nov 13 22:50:49 homeserver Plex Media Server[3882]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/TheMovieDB.bundle.
nov 13 22:50:49 homeserver Plex Media Server[3882]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-ab5e1197c/LocalMedia.bundle.

uname -v

#1 SMP Debian 4.19.152-1 (2020-10-18)

cat /tmp/plexinstaller.log

# Plex Media Server installation configuration info:  ven 13 nov 2020, 22.17.43, CET
Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="video"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp/plex"
LangEncoding="en_US.UTF-8"
ExistingVersion=11905
HaveHardware=0
HaveTranscoderPref=1
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=0
Errors=0
Warnings=0
Platform="PowerEdge T110 II"
Processor="Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz"
Distro="Debian GNU/Linux 10 (buster)"
Kernel="Linux homeserver 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux"
Memory="16010 3391 5487"

cat /var/log/dpkg.log | grep plex

2020-11-13 22:17:43 upgrade plexmediaserver:amd64 1.19.5.3112-b23ab3896 1.20.4.3517-ab5e1197c
2020-11-13 22:17:43 status half-configured plexmediaserver:amd64 1.19.5.3112-b23ab3896
2020-11-13 22:17:43 status unpacked plexmediaserver:amd64 1.19.5.3112-b23ab3896
2020-11-13 22:17:43 status half-installed plexmediaserver:amd64 1.19.5.3112-b23ab3896
2020-11-13 22:17:52 status unpacked plexmediaserver:amd64 1.20.4.3517-ab5e1197c
2020-11-13 22:17:52 configure plexmediaserver:amd64 1.20.4.3517-ab5e1197c <nessuna>
2020-11-13 22:17:52 status unpacked plexmediaserver:amd64 1.20.4.3517-ab5e1197c
2020-11-13 22:17:52 status half-configured plexmediaserver:amd64 1.20.4.3517-ab5e1197c
2020-11-13 22:17:53 status installed plexmediaserver:amd64 1.20.4.3517-ab5e1197c

Yesterday I tried to go back to the previous version and now the service works correctly.

dpkg -i plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb

systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2020-11-15 13:50:28 CET; 1 day 5h ago
 Main PID: 18984 (Plex Media Serv)
    Tasks: 81 (limit: 4915)
   Memory: 1.2G
   CGroup: /system.slice/plexmediaserver.service
           ├─18984 /usr/lib/plexmediaserver/Plex Media Server
           ├─19012 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-b23ab3896/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.5.311
           ├─19072 Plex Plug-in [com.plexapp.agents.hama] /usr/lib/plexmediaserver/Resources/Plug-ins-b23ab3896/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.
           ├─19084 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.19.5.3112-b23ab3896 32600 /waitmutex
           ├─19396 Plex Plug-in [com.plexapp.agents.hama] /usr/lib/plexmediaserver/Resources/Plug-ins-b23ab3896/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.19.
           └─25241 Plex Plug-in [com.plexapp.agents.subzero] /usr/lib/plexmediaserver/Resources/Plug-ins-b23ab3896/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.

nov 15 13:50:28 homeserver systemd[1]: Starting Plex Media Server...
nov 15 13:50:28 homeserver systemd[1]: Started Plex Media Server.

Can anyone help me understand why the new version doesn’t work?

Thanks

Sorry for the delay getting to this thread (been a LOOOOOOONG weekend)

May I have the log files captured by:

  1. Restart PMS as it is now,
  2. Let run 2 minutes.
  3. Stop
  4. Install the failing version
  5. Attempt to start
  6. wait 2 more minutes / recreate failure
  7. Download the logs . ( it will have both sessions )
  8. Attach the ZIP file here please.

Good evening, no problem, here is the update process:

 apt-get upgrade
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Calcolo dell'aggiornamento... Fatto
I seguenti pacchetti saranno aggiornati:
  plexmediaserver
1 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
È necessario scaricare 0 B/80,6 MB di archivi.
Dopo quest'operazione, verranno occupati 5.555 kB di spazio su disco.
N: Viene ignorato il file "10-amule.list.old" nella directory "/etc/apt/sources.list.d/" poiché ha un'estensione non valida
Continuare? [S/n] S
Lettura dei changelog... Fatto
N: Viene ignorato il file "10-amule.list.old" nella directory "/etc/apt/sources.list.d/" poiché ha un'estensione non valida
dpkg: attenzione: file con l'elenco dei file del pacchetto "desktop-file-utils" mancante, il pacchetto viene considerato senza alcun file attualmente installato
(Lettura del database... 262537 file e directory attualmente installati.)
Preparativi per estrarre .../plexmediaserver_1.20.5.3600-47c0d9038_amd64.deb...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Estrazione di plexmediaserver (1.20.5.3600-47c0d9038) su (1.19.5.3112-b23ab3896)...
Configurazione di plexmediaserver (1.20.5.3600-47c0d9038)...
PlexMediaServer install: PlexMediaServer-1.20.5.3600-47c0d9038 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
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/plex  (set in Preferences.xml)
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Transcoding HW:      Not found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: PlexMediaServer-1.20.5.3600-47c0d9038 - Installation successful.  Errors: 0, Warnings: 0

I also attach the logs
download-2020.11.17_20.55.31-root-(homeserver).tar.gz (163.2 KB)

Thanks

would you repeat please?

The server was still running when you gathered the logs for me.

I stopped the service (version 1.19.5.3112-b23ab3896)

systemctl stop plexmediaserver

, I renamed the log folder.
I started the service for 2 minutes, as requested.

systemctl start plexmediaserver

I stopped the service

systemctl stop plexmediaserver

and I did the update with:

apt-get upgrade

which installed version 1.20.5.3600-47c0d9038, not version 1.20.4.3517-ab5e1197c that I had reported at the beginning of the thread.
I started the service again for 2 minutes

systemctl start plexmediaserver

and then I stopped it

systemctl stop plexmediaserver

I collected the entire log folder that he recreated new and uploaded it here.

I apologize for the English, but the google translator has its limitations :stuck_out_tongue: :smiley:

Today I tried again and I let more time pass.

download-2020.11.21_10.33.36-root-(homeserver).tar.gz (175.2 KB)

There is a very basic, fundamental, problem.

User plex does not have read/write access to its files

What did you change from the defaults?

Nov 21, 2020 10:10:21.016 [0x7fc5c93c4e80] DEBUG - Captured session 1.
Nov 21, 2020 10:10:21.016 [0x7fc5c93c4e80] ERROR - SQLITE3:(nil), 8, statement aborts at 1: [BEGIN IMMEDIATE] attempt to write a readonly database
Nov 21, 2020 10:10:21.016 [0x7fc5c93c4e80] ERROR - Failed to begin transaction (../Library/DatabaseMigrations.cpp:175) (tries=1): Cannot begin transaction. attempt to write a readonly database
Nov 21, 2020 10:10:21.282 [0x7fc5c93c4e80] ERROR - SQLITE3:(nil), 8, statement aborts at 1: [BEGIN IMMEDIATE] attempt to write a readonly database
Nov 21, 2020 10:10:21.282 [0x7fc5c93c4e80] ERROR - Failed to begin transaction (../Library/DatabaseMigrations.cpp:175) (tries=2): Cannot begin transaction. attempt to write a readonly database
Nov 21, 2020 10:10:21.814 [0x7fc5c93c4e80] ERROR - SQLITE3:(nil), 8, statement aborts at 1: [BEGIN IMMEDIATE] attempt to write a readonly database
Nov 21, 2020 10:10:21.814 [0x7fc5c93c4e80] ERROR - Failed to begin transaction (../Library/DatabaseMigrations.cpp:175) (tries=3): Cannot begin transaction. attempt to write a readonly database
Nov 21, 2020 10:10:22.879 [0x7fc5c93c4e80] ERROR - SQLITE3:(nil), 8, statement aborts at 1: [BEGIN IMMEDIATE] attempt to write a readonly database
Nov 21, 2020 10:10:22.879 [0x7fc5c93c4e80] ERROR - Failed to begin transaction (../Library/DatabaseMigrations.cpp:175) (tries=4): Cannot begin transaction. attempt to write a readonly database

I haven’t changed anything. At least I think so. The server has been installed since late 2018 and I have always kept it up to date, as I have always kept Debian up to date where it is installed.
I also tried running the command:

chown plex:plex Library -R

then I tried to install the latest version again, but the result doesn’t change.
Thanks!

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