We just had a random, rare server crash last night while watching a movie. The server had been working okay earlier during the evening.
The QNAP was direct streaming to a Shield. Was a 4K file. Usually you can restart the app on the QNAP and server will return, however in this instance I had to reboot the QNAP entirely.
I have attached logs from the time. Server crashed @23:13. I can see that a crash log was sent at the time to Plex.
QNAP is a TVS1282T running on a 1Gb wired network. Client was a NVIDIA Shield.
cd /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-in Support/Databases/
The repair sequence (modified from the support article to allow for recent changes)
sqlite3 com.plexapp.plugins.library.db "DROP index 'index_title_sort_naturalsort'"
sqlite3 com.plexapp.plugins.library.db "DELETE from schema_migrations where version='20180501000000'"
sqlite3 com.plexapp.plugins.library.db .dump > dump.sql
mv com.plexapp.plugins.library.db com.plexapp.plugins.library.db.original
sqlite3 com.plexapp.plugins.library.db < dump.sql
Prior to restarting your Plex Media Server, you should also delete or backup and move elsewhere the following two files if they exist alongside the original database: