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
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.
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.
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 does seem to get the server running again, so that’s better, anyway, although I’ve lost a few days worth of data.