Latest server update (1.30.2.6563) crashes on launch

Server Version#: 1.30.2.6563-3d4dc0cce
Player Version#:

My Plex Media Server performed an auto update last night and now it is crashing when trying to launch. I get an immediate prompt saying: Plex Media Server quit unexpectedly.

In the report details it says:

Crashed Thread:        50  PMS MPM SendMap

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called

This is reproducible and happens every time I start the media server app.

I am running the server on a 2018 MacBook Air (1.6 GHz Dual-Core Intel Core i5) with MacOS 13.0.1 (Ventura).

The previous version installed was 1.30.1.6550-d1e0b951e that had no issues.

I was able to manually rollback to version 1.30.1.6562-915986d62 and when it ran the first time, it took a long time running a database migration, and then launched successfully.

When I try reinstalling the latest version (1.30.2.6563-3d4dc0cce), it also runs a database migration, and then it crashes immediately.

Let me know if I should provide more details.

Your server logs might help.
If the Plex Media Server won’t start and doesn’t even get to the stage where it’ll be writing to the server logs, you can attempt the following procedure to see if there’s any error messages on the OS level:

  1. Open Finder and navigate to /Applications
  2. Select Show Content from the context menu of the Plex Media Server.app item
  3. Navigate to Contents/MacOS
  4. Open the Terminal app
  5. Drag the Plex Media Server executable from the Finder window (#3) into the Terminal Window and press Return to execute it

This is no different from running the app, so it won’t succeed – but you should get a more specific error message about what’s causing it to fail starting.

Thanks for your help! Here is what is returned when running the app from the command line:

libc++abi: terminating with uncaught exception of type std::bad_cast: std::bad_cast

****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: CCE0AF44-39C9-44DC-B962-8B4533D2D7C8

Abort trap: 6

Marks-MacBook-Air:~ mark$ Error starting framework core for /Applications/Plex Media Server.app/Contents/Resources/Plug-ins-3d4dc0cce/PlexSeries.bundle.

Error starting framework core for /Applications/Plex Media Server.app/Contents/Resources/Plug-ins-3d4dc0cce/PlexMusic.bundle.

Error starting framework core for /Applications/Plex Media Server.app/Contents/Resources/Plug-ins-3d4dc0cce/OpenSubtitles.bundle.

And the server logs show that an error is occurring during one of the migrations. Do I have a DB issue?

Jan 11, 2023 16:04:12.147 [0x70000611e000] INFO - Plex Media Server v1.30.2.6563-3d4dc0cce - Apple MacBookAir8,1 x86_64 - build: darwin-x86_64 macos - GMT -08:00
Jan 11, 2023 16:04:12.148 [0x70000611e000] INFO - MacOSX version: 13.0.1, language: en-CA
Jan 11, 2023 16:04:12.148 [0x70000611e000] INFO - Processor: 4-core Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
Jan 11, 2023 16:04:12.148 [0x70000611e000] INFO - Compiler is - Clang 11.0.1 (https://plex.tv b587490162c22e078c314e3f7dc560c691d126aa)
Jan 11, 2023 16:04:12.148 [0x70000611e000] INFO - /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
Jan 11, 2023 16:04:12.399 [0x7000063ad000] INFO - [CERT/OCSP] Successfully retrieved response from cache.
Jan 11, 2023 16:04:12.409 [0x7000063ad000] INFO - SQLITE3:(nil), 283, recovered 39 frames from WAL file /Users/mark/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Jan 11, 2023 16:04:12.471 [0x7000063ad000] INFO - Running migrations. (EPG 0)
Jan 11, 2023 16:04:12.486 [0x7000063ad000] INFO - Running forward migration 202210260000.
Jan 11, 2023 16:04:12.522 [0x7000063ad000] ERROR - SQLITE3:(nil), 779, index corruption at line 91877 of [1b256d97b5]
Jan 11, 2023 16:04:12.522 [0x7000063ad000] ERROR - SQLITE3:(nil), 779, statement aborts at 48: [update directories set created_at = iif(typeof(created_at) in ('integer', 'real'), created_at, strftime('%s', created_at, 'utc')), updated_at = iif(typeof(updated_at) in ('integer', 'r
Jan 11, 2023 16:04:12.524 [0x7000063ad000] ERROR - Exception inside transaction (inside=1) (/data/jenkins/server/1780683711/Library/DatabaseMigrations.cpp:289): sqlite3_statement_backend::loadOne: database disk image is malformed
Jan 11, 2023 16:04:12.527 [0x7000063ad000] ERROR - Exception thrown during migrations, aborting: sqlite3_statement_backend::loadOne: database disk image is malformed
Jan 11, 2023 16:04:12.817 [0x7000063ad000] INFO - SQLITE3:(nil), 283, recovered 2 frames from WAL file /Users/mark/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.blobs.db-wal
Jan 11, 2023 16:04:12.827 [0x7000063ad000] INFO - Running migrations. (EPG 0)
Jan 11, 2023 16:04:13.378 [0x7000063ad000] INFO - Killing process: Plex Plug-in [tv.plex.agents.series] (pid: 36072)
Jan 11, 2023 16:04:13.378 [0x7000063ad000] INFO - Killing process: Plex Plug-in [com.plexapp.agents.opensubtitles] (pid: 36071)
Jan 11, 2023 16:04:13.378 [0x7000063ad000] INFO - Killing process: Plex Plug-in [tv.plex.agents.music] (pid: 36070)
Jan 11, 2023 16:04:13.378 [0x7000063ad000] INFO - Killing process: Plex Plug-in [com.plexapp.system] (pid: 36066)
Jan 11, 2023 16:04:13.404 [0x700006742000] ERROR - Thread: Uncaught exception running async task which was spawned by thread 0x7000063ad000: std::bad_cast
Jan 11, 2023 16:04:14.126 [0x700006e6c000] WARN - Crash: Crash reporting disabled
Jan 11, 2023 16:04:14.690 [0x700006848000] WARN - [MediaProviderManager] Unrecognized MediaProvider feature: availability
Jan 11, 2023 16:04:14.690 [0x700006848000] WARN - [MediaProviderManager] Unrecognized MediaProvider feature: availability-platforms
Jan 11, 2023 16:04:14.976 [0x7000067c5000] WARN - [MediaProviderManager] Unrecognized MediaProvider feature: availability
Jan 11, 2023 16:04:14.976 [0x7000067c5000] WARN - [MediaProviderManager] Unrecognized MediaProvider feature: availability-platforms
Jan 11, 2023 16:04:15.596 [0x7000063ad000] ERROR - [DatabaseFixups] Fixup 52DatabaseFixupsCreateDefaultMediaProcessingTargetTags threw an exception: std::bad_cast
Jan 11, 2023 16:04:15.597 [0x7000063ad000] ERROR - [DatabaseFixups] Fixup 29DatabaseFixupsSyncCollections threw an exception: std::bad_cast
Jan 11, 2023 16:04:16.858 [0x7000063ad000] WARN - [DatabaseFixups] Held transaction for too long (/data/jenkins/server/1780683711/Library/DatabaseFixups.cpp:358): 0.910000 seconds
Jan 11, 2023 16:04:16.966 [0x70000792b000] WARN - Crash: Crash reporting disabled

Looks like it.
You might want to attempt repairing the database…

https://support.plex.tv/articles/repair-a-corrupted-database/

1 Like

I reindexed the database, and now the server starts properly.

Thanks for your help!

1 Like

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