Plex crash on startup

Server Version#: 1.24.4.5081-e362dc1ee
Player Version#: not applicable
When I start Plex Media Server, it runs for a few seconds, then exits with no UI errors. The icon appears briefly in the system tray with message “Server is starting” in the menu.

If I look in the console under system.log there is the following error:
com.apple.xpc.launchd[1] (com.plexapp.plexmediaserver.58776[64040]): Service exited with abnormal code: 255

This was previously working before the last update, but I can’t locate the previous installer to go back.

Any hints on where to start looking?

Can you access your PMS server logs to see how far it gets when starting up?

Interesting…
Log has some errors as follows:
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - SQLITE3:(nil), 11, database corruption at line 66843 of [1b256d97b5]
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - SQLITE3:(nil), 11, database corruption at line 66993 of [1b256d97b5]
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - SQLITE3:(nil), 11, statement aborts at 10: [select max(max(metadata_items.changed_at),max(metadata_items.resources_changed_at)) from metadata_items] database disk image is malformed
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database disk image is malformed

How do I rebuild the DB or erase it and start over?

You can try to repair the database

If this fails you best do a full uninstall (also deleting the registry / server data directory) before restarting a new server.

I tried deleting the database and starting fresh. No go.

It’s not just deleting the database. You need to follow the complete procedure from the 2nd link and delete the entire server data directory. On a Mac that’ll be ~/Library/Application Support/Plex Media Server/ and ~/Library/Caches/PlexMediaServer/.

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