# PMS Crashes Instantly on Startup

**URL:** <https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606>\
**Category:** Plex Media Server\
**Tags:** server-mac\
**Created:** [August 15, 2021, 3:23pm UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606 "2021-08-15T15:23:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jojojojojojojoj](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jojojojojojojoj/32/180280_2.png) [@jojojojojojojoj](https://forums.plex.tv/u/jojojojojojojoj)\
**Post date:** [August 15, 2021, 3:23pm UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606/1 "2021-08-15T15:23:27Z")

</div>

Plex is crashing the second I launch it. It shows up in the menu bar for a split second and then disappears again. I renamed ‘~/Application Support/Plex Media Server’ to generate a fresh install and that fixes the crashing issue. The problem is that my plex folder is about 100GB and I’d prefer not to generate/download that metadata all over again.

Is it possible to repair the old install?  
Server Version#:1.24.0.4930-ab6e1a058  
Player Version#:N/A

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [August 15, 2021, 3:36pm UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606/2 "2021-08-15T15:36:41Z")

</div>

On what version of macOS are you experiencing this?  
Did you already have a look at the [server log](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) files if the e.g. show some [database corruption](https://support.plex.tv/articles/repair-a-corrupted-database/)?

---

<div class="post-metadata">

**Author:** ![ONEJDUNN](https://avatars.discourse-cdn.com/v4/letter/o/22d042/32.png) [@ONEJDUNN](https://forums.plex.tv/u/ONEJDUNN)\
**Post date:** [August 15, 2021, 10:26pm UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606/3 "2021-08-15T22:26:42Z")

</div>

I appear to be having the same issue. I also want to preserve my library : )

Server Version#: 1.24.0.4897-411e7667f  
MacOS: 12.0 Mavericks public beta 4 (at the time, currently public beta 5)

First time digging into the logs, but this looks like the relevant bit:

ERROR - SQLITE3:(nil), 14, cannot open file at line 38480 of [1b256d97b5]  
ERROR - SQLITE3:(nil), 14, os\_unix.c:38480: (2) open(/Users/null/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-shm) - No such file or directory  
ERROR - SQLITE3:(nil), 14, unable to open database file in “PRAGMA cache\_size=2000”  
ERROR - Database corruption: sqlite3\_statement\_backend::prepare: unable to open database file for SQL: PRAGMA cache\_size=2000

Looking in the /Databases directory and, indeed, the com.plexapp.plugins.library.db-shm file is not there. There are also not any backed up versions of that file to swap in.

---

<div class="post-metadata">

**Author:** ![geira\_1](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/geira_1/32/82366_2.png) [@geira\_1](https://forums.plex.tv/u/geira_1)\
**Post date:** [August 18, 2021, 7:58pm UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606/4 "2021-08-18T19:58:30Z")

</div>

Same problem here, any news from Plex?

---

<div class="post-metadata">

**Author:** ![jojojojojojojoj](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jojojojojojojoj/32/180280_2.png) [@jojojojojojojoj](https://forums.plex.tv/u/jojojojojojojoj)\
**Post date:** [August 19, 2021, 3:41am UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606/5 "2021-08-19T03:41:56Z")

</div>

I gave up and started a new library.

If ya’ll wanna keep working on it go right ahead.

---

<div class="post-metadata">

**Author:** ![plexwerks](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plexwerks/32/184111_2.png) [@plexwerks](https://forums.plex.tv/u/plexwerks)\
**Post date:** [August 22, 2021, 1:23am UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606/6 "2021-08-22T01:23:44Z")

</div>

Similar problem here - my server was running fine (and has been for years) until about an hour ago, and now I’m getting this in the logs when I try to start Plex Media Server, which from an icon-clicking perspective, is just crashing with no messaging.

```auto
Aug 21, 2021 21:17:19.953 [0x700008089000] INFO - Plex Media Server v1.24.1.4931-1a38e63c6 - Apple Mac x86_64 - build: darwin-x86_64 macos - GMT -04:00
Aug 21, 2021 21:17:19.953 [0x700008089000] INFO - MacOSX version: 10.13.6, language: en-US
Aug 21, 2021 21:17:19.954 [0x700008089000] INFO - Processor Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Aug 21, 2021 21:17:19.954 [0x700008089000] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Aug 21, 2021 21:17:19.954 [0x700008089000] INFO - /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
Aug 21, 2021 21:17:20.527 [0x700008212000] ERROR - SQLITE3:(nil), 11, database corruption at line 68176 of [1b256d97b5]
Aug 21, 2021 21:17:20.527 [0x700008212000] ERROR - SQLITE3:(nil), 11, database disk image is malformed in "PRAGMA cache_size=2000"
Aug 21, 2021 21:17:20.527 [0x700008212000] ERROR - Database corruption: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000

```

Following the instructions to run the “.recover” step results in a ton of sqlite output, but the application still crashes on startup.

Restoring from a backup from a few days ago per [these instructions](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/) does seem to get the server running again, so that’s better, anyway, although I’ve lost a few days worth of data.

---

<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:** [November 20, 2021, 1:24am UTC](https://forums.plex.tv/t/pms-crashes-instantly-on-startup/736606/7 "2021-11-20T01:24:14Z")

</div>

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