Mac PLex Media Server Will Not Start Up

Server Version#:1.32.5
Player Version#:
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>

For years Plex Media Server has been a staple in my household. a few months back, the software stopped working all together. When I try to launch the application, the Plex logo appears on the bar where the date/time is located for a brief second and then goes away. This is repeated each time I try to launch it. I have scrolled through many posts here for a solution, but admittedly I am not much of a tech guy. Does anyone have suggestions on what I can do to get my library back up and running? Thanks in advance for any help that you can render…

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 that… I followed your instructions and this is what the Terminal window shows:

Last login: Thu Sep 14 08:01:55 on console

The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit Use zsh as the default shell on your Mac - Apple Support.
Aces-iMac-Pro:~ BlastwavesBoot$ /Users/BlastwavesBoot/Desktop/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Server
Error: Unable to set up server: sqlite3_statement_backend::prepare: no such table: metadata_agent_providers for SQL: update metadata_agent_providers set online = 0 (N4soci10soci_errorE)

Any other ideas on what is going wrong?

Looks like your server’s database is badly corrupted. You can attempt repairing it or (if enabled) restore from an automatically created database backup (no Time Machine backup… there’s a chance those are done while the server was writing to the database, so they might be corrupted too)

https://support.plex.tv/articles/repair-a-corrupted-database/
https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/

Thank you again for your help. I cant seem to locate the Plex SQLite application to try and repair the database. Any idea where I can look?

On a side note, I moved the database file out of the folder your article mentioned and the application now runs! But, of course, all of my database is gone. If I cant figure out the repair process, I atleast have a path forward.

Again, thank you SO much for your time and knowledge… it is greatly appreciated.

Same as when you ran Plex via the Terminal…

The Plex SQLite app should be listed among the executables.
Drag it into Terminal to get its correct path and add the rest of the command from the support article

Thanks again for all your help. I was not able to rebuild the database, so I created a new one and it seems to be working fine. I really appreciate all you did.

Ace

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