# Plex media server won’t open on mac

**URL:** <https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721>\
**Category:** Plex Media Server\
**Tags:** server-mac\
**Created:** [January 21, 2023, 3:26pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721 "2023-01-21T15:26:23Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 3:26pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/1 "2023-01-21T15:26:23Z")

</div>

Hi all new to the forum but have been using plex for about 8 months. Literally today I’ve been trying to reopen plex media server on my Mac mini it shows that it open even the little icon come up on the task bar but then instantly closes.  
I have uninstalled and reinstalled, restarted the machine but still won’t work.

Any ideas?

Server Version#:  
Player Version#:

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 3:44pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/2 "2023-01-21T15:44:50Z")

</div>

Can you grab your [server logs?](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) I suspect you may have a corrupt database, but will need them to confirm.

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 4:10pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/3 "2023-01-21T16:10:08Z")

</div>

Thank you for the reply  
This was the file today a little while ago.

Jan 21, 2023 15:32:34.084 [0x700001949000] INFO - Plex Media Server v1.19.4.2935-79e214ead - Apple Mac x86\_64 - build: darwin-x86\_64 macos - GMT 00:00  
Jan 21, 2023 15:32:34.084 [0x700001949000] INFO - MacOSX version: 10.16, language: en-GB  
Jan 21, 2023 15:32:34.084 [0x700001949000] INFO - Processor Intel(R) Core™ i5-4278U CPU @ 2.60GHz  
Jan 21, 2023 15:32:34.084 [0x700001949000] INFO - /Applications/Plex Media Server-3.app/Contents/MacOS/Plex Media Server  
Jan 21, 2023 15:32:34.234 [0x700001ad2000] DEBUG - BPQ: [Idle] → [Starting]  
Jan 21, 2023 15:32:34.238 [0x700001ad2000] DEBUG - FeatureManager: Using cached data for features list  
Jan 21, 2023 15:32:34.246 [0x700001ad2000] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1  
Jan 21, 2023 15:32:34.257 [0x700001ad2000] ERROR - SQLITE3:0x1059a2de8, 11, database corruption at line 66053 of [bf8c1b2b7a]  
Jan 21, 2023 15:32:34.257 [0x700001ad2000] ERROR - SQLITE3:0x1059a2de8, 11, database disk image is malformed in “PRAGMA cache\_size=2000”  
Jan 21, 2023 15:32:34.259 [0x700001ad2000] ERROR - Database corruption: sqlite3\_statement\_backend::prepare: database disk image is malformed for SQL: PRAGMA cache\_size=2000

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 4:15pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/4 "2023-01-21T16:15:56Z")

</div>

And I was correct: `ERROR - Database corruption: `

Do you want to salvage your library, or is starting over OK?

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 4:16pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/5 "2023-01-21T16:16:51Z")

</div>

If I start over again will I lose say for example any changes I have done to names and so forth? Will starting fresh be quicker?

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 4:19pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/6 "2023-01-21T16:19:45Z")

</div>

1. Starting over: You will loose everything associated with the previous library and you will have to do everything again. (This is the easiest solution)

2. Database Repair: Should be fairly straight forward, but will require downloading and running a couple of commands via terminal.

I can help you with either depending on which route you want to go down.

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 4:21pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/7 "2023-01-21T16:21:19Z")

</div>

Would prefer to try to [repair the database](https://support.plex.tv/articles/repair-a-corrupted-database/) if possible please.

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 4:24pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/8 "2023-01-21T16:24:23Z")

</div>

Sure:  
Lets make sure plex is not running then

download [GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server databases](https://github.com/ChuckPa/PlexDBRepair) open the terminal and execute `DBRepair.sh`

When you get to the menu we will run options `1 4 3 9`

Start Plex and see if it works

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 4:29pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/9 "2023-01-21T16:29:52Z")

</div>

That link shows the file DBRepair-Windows.zip (is this for windows?) using a Mac. Ive tried downloading it and it downloads a .bat file

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 4:31pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/10 "2023-01-21T16:31:23Z")

</div>

> [@madmax889](#):
>
> That link shows the file DBRepair-Windows.zip

You are looking for the 3rd file in that list `DBRepair.sh`

EDIT: Chuck is apparently attempting to write a Windows version, which is what you downloaded. (its been a great Unix tool, glad to see it being ported)

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 4:37pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/11 "2023-01-21T16:37:49Z")

</div>

> [@dbirch](#):
>
> DBRepair.sh

I executed the file, but no menu came up. Just at the bottom came up with [Process completed]

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 4:43pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/12 "2023-01-21T16:43:05Z")

</div>

let me quote the correct usage instructions:

```auto
    1. Open your browser to https://github.com/ChuckPa/PlexDBRepair/releases/latest
    2. Download the source code (tar.gz) file
    3. Place the tar.gz file in the appropriate directory on the system you'll use it.
    4. Open a command line session (usually Terminal or SSH)
    5. Elevate privilege level to root (sudo)
    6. Extract the utility from the tar or zip file
    7. 'cd' into the extraction directory
    8. Give the utility 'execute' permission
    9. Invoke the utility

To launch from the command line on MacOS (on the administrator account)

        osascript -e 'quit app "Plex Media Server"'
        cd ~/Downloads
        tar xvf PlexDBRepai PlexDBRepair-0.6.1.tar.gz
        cd PlexDBRepai PlexDBRepair-0.6.1

        chmod +x DBRepair.sh
        ./DBRepair.sh

```

EDIT: Im betting I missed a step with my instructions previously

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 4:54pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/13 "2023-01-21T16:54:24Z")

</div>

ill be honest, I rarely use Terminal so can’t say I am totally up to speed with it and using commands. When I run that it comes back as Error Unknown host. I think it maybe better and easier for me to just start again and learn from my mistake and keep a backup of it

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 5:09pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/14 "2023-01-21T17:09:34Z")

</div>

We have one other recovery option, not 100% guaranteed but worth a shot.

In the finder app go to `~/Library/Application Support/Plex Media Server/Plug-in Support/Databases`

and give me a screenshot of those files.

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 5:12pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/15 "2023-01-21T17:12:04Z")

</div>

> [@dbirch](#):
>
> ~/Library/Application Support/Plex Media Server/\Plug-in Support/Databases

 ![Screenshot 2023-01-21 at 17.11.10](https://global.discourse-cdn.com/plex/original/4X/a/8/f/a8fba6e5e7eb541fee0415a83ee1d0683a2f43bf.png)

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 5:17pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/16 "2023-01-21T17:17:33Z")

</div>

Rename:  
`com.plexapp.plugins.library.db-wal` to `com.plexapp.plugins.library.db-wal.old`  
`com.plexapp.plugins.library.db-shm` to `com.plexapp.plugins.library.db-shm.old`  
`com.plexapp.plugins.library.db` to `com.plexapp.plugins.library.db.old`  
`com.plexapp.plugins.library.blobs.db-shm` to `com.plexapp.plugins.library.blobs.db-shm.old`  
`com.plexapp.plugins.library.blobs.db-wal` to `com.plexapp.plugins.library.blobs.db-wal.old`  
`com.plexapp.plugins.library.blobs.db` to `com.plexapp.plugins.library.blobs.db.old`

Then:  
copy `com.plexapp.plugins.library.blobs.db-2023-01-11` and rename the copy to `com.plexapp.plugins.library.blobs.db`  
copy `com.plexapp.plugins.library.db-2023-01-11` and rename the copy to `com.plexapp.plugins.library.db`

Then try starting plex

What this does is moves the existing database out of the way (aka .old) then restores a backup from January 11th

---

<div class="post-metadata">

**Author:** ![madmax889](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@madmax889](https://forums.plex.tv/u/madmax889)\
**Post date:** [January 21, 2023, 5:28pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/17 "2023-01-21T17:28:50Z")

</div>

Woohoooo it worked. Missing a few name changes and some watched videos now showing not watched but apart from that its all there. Thank you so much, if I could buy you a beer I would. Thank you

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [January 21, 2023, 5:35pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/18 "2023-01-21T17:35:31Z")

</div>

No problem, we basically reverted your library back 10 days. We could have tried a newer backup, but I felt it was safer going back as far as we could (Keep it simple)

Can you go ahead and close plex, restart it, wait 5 minutes and give me a copy of your [server logs?](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) Id like to ensure that we don’t still have underlying issues.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 21, 2023, 5:36pm UTC](https://forums.plex.tv/t/plex-media-server-won-t-open-on-mac/827721/19 "2023-04-21T17:36:11Z")

</div>

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