No access to plex since Debian updated to 10.10

Server Version#: 1.23.3.4707-ebb5fe9f3 & 1.23.4.4712-1f0ed4aea
Player Version#:
Hello,

Since the latest update of Debian from 10.9 to 10.10, I can no longer have access to Plex.
My error is now :

# Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

I’ve tried with both version linked before.

 cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
service plexmediaserver status
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2021-06-22 21:25:29 CEST; 13h ago
  Process: 2907 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: 2909 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 \" )";  exec "/usr/lib/plexmediaserver/Plex Media Server" (code=exited, status=255/EXCEPTION)
 Main PID: 2909 (code=exited, status=255/EXCEPTION)

juin 22 21:25:29 haswell systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling restart.
juin 22 21:25:29 haswell systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
juin 22 21:25:29 haswell systemd[1]: Stopped Plex Media Server.
juin 22 21:25:29 haswell systemd[1]: plexmediaserver.service: Start request repeated too quickly.
juin 22 21:25:29 haswell systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
juin 22 21:25:29 haswell systemd[1]: Failed to start Plex Media Server.

User Plex is existing
Group Plex is existing
/var/lib/plexmediaserver is owned by plex:plex

Can you help me ?

There is another update of linux-image but even after a restart, problem still persist

  1. Stop Plex
  2. Manually make a tar.gz of the “Logs” directory and attach please

logs.tar.gz (1,6 Mo)
Hello, here are the full logs
Plex is not running so I didn’t have to stop it

Today I’ve backed up my DBs in order to try to repair.
I’ve followed Repair a Corrupted Database | Plex Support instructions.
But the issue is still the same at the exact same line

Jun 25, 2021 18:21:16.055 [0x7f1cf9e0fb38] INFO - Plex Media Server v1.23.4.4712-1f0ed4aea - Debian GNU/Linux PC x86_64 - build: linux-x86_64 debian - GMT 02:00
Jun 25, 2021 18:21:16.055 [0x7f1cf9e0fb38] INFO - Linux version: 10 (buster), language: en-US
Jun 25, 2021 18:21:16.055 [0x7f1cf9e0fb38] INFO - Processor Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Jun 25, 2021 18:21:16.055 [0x7f1cf9e0fb38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Jun 25, 2021 18:21:16.055 [0x7f1cf9e0fb38] INFO - /usr/lib/plexmediaserver/Plex Media Server
Jun 25, 2021 18:21:16.055 [0x7f1cfcc8ac40] DEBUG - BPQ: [Idle] -> [Starting]
Jun 25, 2021 18:21:16.056 [0x7f1cfcc8ac40] DEBUG - FeatureManager: Using cached data for features list
Jun 25, 2021 18:21:16.056 [0x7f1cfcc8ac40] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Jun 25, 2021 18:21:16.084 [0x7f1cfcc8ac40] DEBUG - Running migrations. (EPG 0)
Jun 25, 2021 18:21:16.114 [0x7f1cfcc8ac40] ERROR - SQLITE3:0x80000001, 11, database corruption at line 88814 of [1b256d97b5]
Jun 25, 2021 18:21:16.114 [0x7f1cfcc8ac40] ERROR - SQLITE3:0x80000001, 11, statement aborts at 4: [select max(max(metadata_items.changed_at),max(metadata_items.resources_changed_at)) from metadata_items] database disk image is malformed
Jun 25, 2021 18:21:16.114 [0x7f1cfcc8ac40] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database disk image is malformed
Jun 25, 2021 18:21:16.114 [0x7f1cfcc8ac40] ERROR - Error: Unable to set up server: sqlite3_statement_backend::loadOne: database disk image is malformed (N4soci10soci_errorE)

Any Idea ?

OK I’ve solved this myself.

Here what i’ve done

mv com.plexapp.plugins.library.db com.plexapp.plugins.library.db.BACKUP
mv com.plexapp.plugins.library.blobs.db com.plexapp.plugins.library.blobs.db.BACKUP

mv com.plexapp.plugins.library.db-2021-06-20 com.plexapp.plugins.library.db
mv com.plexapp.plugins.library.blobs.db-2021-06-20 com.plexapp.plugins.library.blobs.db

I’ve just restored the previous DB and it works.

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