My Mac lost power and now my Plex server won't run

Server Version#:
Player Version#:
Installed latest version of Plex server on 10/16/2022. Still won’t run.
Not sure what to do. I have Mac Monterey 12.6
I have a feeling data files became corrupt when power went out. What can I do?

Get the latest log files from it in debug mode if you can manage that, but regardless:

  1. Try to start PMS again.
  2. After it “doesn’t run,” open a Terminal
  3. type these commands into Terminal
    cd
    zip -rj PMSlogs ~/Library/Logs/"Plex Media Server"

The zipfile will be created in your home directory, PMSlogs.zip
Drag it out of Finder and drop it into your reply.

PMSlogs.zip (1.8 MB)

I suspect a corrupt database.

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

1 Like

yup the last few lines of the Plex Media Server.log show the db corruption:

Oct 16, 2022 22:07:56.253 [0x70000c77e000] DEBUG - Running server...
Oct 16, 2022 22:07:56.253 [0x70000c77e000] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Oct 16, 2022 22:07:56.253 [0x70000ca0d000] DEBUG - HttpServer: Set up a thread pool with 2 threads.
Oct 16, 2022 22:07:56.253 [0x70000c77e000] ERROR - SQLITE3:(nil), 11, database corruption at line 68176 of [1b256d97b5]
Oct 16, 2022 22:07:56.253 [0x70000c77e000] ERROR - SQLITE3:(nil), 11, database disk image is malformed in "PRAGMA cache_size=2000"
Oct 16, 2022 22:07:56.254 [0x70000c77e000] ERROR - Database corruption: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000

of interest to nerds is how chuckpa spun up an unofficial shell script to repair and optimize a PMS database, if you don’t mind reading 112 posts or so to find it :100:

Yes in Plex Media server log3 last line was unmistakably noted.

I looked for the file com.plexapp.plugins.library.db and now it’s not there. But Plex still won’t run.
Should I uninstall the Plex app and reinstall? Not sure what to do here.

cd ~/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases

is it not there?

sometimes I find it easier to type:

cd ~/Library
cd "Application Support/Plex Media Server/Plug-in Support/Databases"

Sorry. I deleted it and wasn’t sure it worked. Researched for it and it wasn’t there.
Plex still doesn’t run.
When I try to run it a small window opens for a split second and vanishes so fast I can’t read it, but it has “allow” and “deny” buttons on the bottom of it.
Would I be better off deleting the whole Plex app and starting over?

Yes a complete uninstall is warranted when you’ve removed your db already.
This will not touch your video, music, and media, just the PMS software and config files.

How to Uninstall PMS

Because you’re on a Mac and a Plex Pass, you can try the fancy new PMS Transcoder Preview that’s optimized for Apple Silicon. It’s ridiculously fast and stable from my testing on a Studio.

I reinstalled after I followed the uninstall instructions. I downloaded from your website.
That same small window pops up fast and disappears and the Plex server doesn’t run.

The small window appears to be to deny or allow this downloaded software to run.

In your Apple System Preferences → Security & Privacy → General tab
in the lower half of that window does it say anything about allowing PMS to run?

If you can’t give PMS an exception to run in the lower half of that window, you might have to:

  1. hold down your CTRL button + Two finger click on the PMS app in Finder
  2. then choose Open.

Below is a picture of that window, but I can’t simulate the exception button:

Security & Privacy

1 Like

none of this works. not sure what to do now.
Tried to take a screen shot of small window, but it closes too fast.

Do you have App Store and identified developers selected in that window?

We can start the app another way and get more feedback from it.

  1. Open a terminal
  2. issue the command below including the quotes, then copy any error messages.
"/Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server"


This is what I got when I ran in terminal.

What is the name of the PMS zip file you downloaded exactly?
When you do the complete uninstall, did you empty the trash afterwards?
You might want to reboot the Mac.


I can’t remember about deleting trash, but I thought I did.

Rebooted and still the same.

Follow the uninstall procedure again,
then empty the trash,
and use the new transcoder preview this time please.
When you locate the link in the forum post, 2 fingered tap on it and choose Save As or choose Download Linked File so that you get the zip by asking for it rather than clicking a link.
When you do the install, you can record a short video of that to examine if you like. You use the screengrab feature of MacOS and set it to record instead of grab picture. The shortcut is:

Command + Shift + 5

@tom80H @SE56 @FordGuy61 This sqlite error on a clean install has me stumped. I see zsh but that’s not really a factor is it?