Since a power failure early this morning (21st July, 2024), I have been unable to get the Plex Media Server running on my late 2014 Mac Mini (2.6Ghz dual-core Intel 8GB RAM) running MacOS Monterey 12.7.5
It does appear to try to run, as the icon flashes for a brief second in my menu bar, but it quickly disappears, and my library of shared files is still unavailable.
Power failures can lead to corruption of the database.
You need to repair it.
If the repair fails, switch to one of the backups, then repair that for good measure.
Tried deleting com.plexapp.plugins.library.db within the PMS app contents, but it didn’t reappear when trying to boot the server again. Still just shows it’s trying to run, but immediately quits.
I’ll try some more in Terminal!!
I’ve tried reinstalling the PMS a few times now, to no avail.
Really appreciate your help, as I got further than I did on my own/browsing the forums.
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:
Open Finder and navigate to /Applications
Select Show Content from the context menu of the Plex Media Server.app item
Navigate to Contents/MacOS
Open the Terminal app
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.
/Applications/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Server ; exit;
shutupman@Filth-Hole-Mini ~ % /Applications/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Server ; exit;
Error: Unable to set up server: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2048 (N4soci10soci_errorE)
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.
[Process completed]
So i see it’s a malformed disk image, but don’t know how to repair it ;(
Doing this! I thought I had checked in App Support already, but obviously didn’t
Hopefully it get the server running. I don’t mind if I have to re-add everything.
I had done a search for files with the word “plex” in them, and these folders didn’t come up.