# Plex crash on startup

**URL:** https://forums.plex.tv/t/plex-crash-on-startup/750677
**Category:** Plex Media Server
**Tags:** server-mac
**Created:** [October 14, 2021, 5:24pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677 "2021-10-14T17:24:18Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![WoolyMammoth72](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@WoolyMammoth72](https://forums.plex.tv/u/WoolyMammoth72)
#### Post date: [October 14, 2021, 5:24pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/1 "2021-10-14T17:24:18Z")

</div>

Server Version#: 1.24.4.5081-e362dc1ee  
Player Version#: not applicable  
When I start Plex Media Server, it runs for a few seconds, then exits with no UI errors. The icon appears briefly in the system tray with message “Server is starting” in the menu.

If I look in the console under system.log there is the following error:  
com.apple.xpc.launchd[1] (com.plexapp.plexmediaserver.58776[64040]): Service exited with abnormal code: 255

This was previously working before the last update, but I can’t locate the previous installer to go back.

Any hints on where to start looking?

---

<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: [October 14, 2021, 6:30pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/2 "2021-10-14T18:30:07Z")

</div>

Can you access your PMS [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) to see how far it gets when starting up?

---

<div class="post-metadata">

### Author: ![WoolyMammoth72](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@WoolyMammoth72](https://forums.plex.tv/u/WoolyMammoth72)
#### Post date: [October 14, 2021, 7:27pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/3 "2021-10-14T19:27:14Z")

</div>

Interesting…  
Log has some errors as follows:  
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - SQLITE3:(nil), 11, database corruption at line 66843 of [1b256d97b5]  
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - SQLITE3:(nil), 11, database corruption at line 66993 of [1b256d97b5]  
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - SQLITE3:(nil), 11, statement aborts at 10: [select max(max(metadata\_items.changed\_at),max(metadata\_items.resources\_changed\_at)) from metadata\_items] database disk image is malformed  
Oct 14, 2021 15:25:04.248 [0x700001daa000] ERROR - Database corruption: sqlite3\_statement\_backend::loadOne: database disk image is malformed

---

<div class="post-metadata">

### Author: ![WoolyMammoth72](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@WoolyMammoth72](https://forums.plex.tv/u/WoolyMammoth72)
#### Post date: [October 14, 2021, 7:27pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/4 "2021-10-14T19:27:42Z")

</div>

How do I rebuild the DB or erase it and start over?

---

<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: [October 14, 2021, 7:28pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/5 "2021-10-14T19:28:47Z")

</div>

You can try to [repair the database](https://support.plex.tv/articles/repair-a-corrupted-database/)  
[https://support.plex.tv/articles/repair-a-corrupted-database/](https://support.plex.tv/articles/repair-a-corrupted-database/)

# 

If this fails you best do a full uninstall (also deleting the registry / server data directory) before restarting a new server.  
[https://support.plex.tv/articles/201198426-restart-plex-media-server-setup-from-scratch/](https://support.plex.tv/articles/201198426-restart-plex-media-server-setup-from-scratch/)

---

<div class="post-metadata">

### Author: ![WoolyMammoth72](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@WoolyMammoth72](https://forums.plex.tv/u/WoolyMammoth72)
#### Post date: [October 14, 2021, 9:52pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/6 "2021-10-14T21:52:37Z")

</div>

I tried deleting the database and starting fresh. No go.

---

<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: [October 14, 2021, 10:33pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/7 "2021-10-14T22:33:16Z")

</div>

It’s not just deleting the database. You need to follow the complete procedure from the 2nd link and delete the entire server data directory. On a Mac that’ll be `~/Library/Application Support/Plex Media Server/` and `~/Library/Caches/PlexMediaServer/`.

---

<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: [January 12, 2022, 10:33pm UTC](https://forums.plex.tv/t/plex-crash-on-startup/750677/8 "2022-01-12T22:33:21Z")

</div>

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