Server Version#: 1.25.4.5426
I have noticed that the com.plexapp.plugins.library.db file gets corrupted fairly frequently on my system. The PMS folder is on the same disk, not mounted over the network or anything. Yesterday, I ran the PRAGMA check on the db and it was fine. Today when I run the check, I get these errors:
$ sudo "/usr/lib/plexmediaserver/Plex SQLite" com.plexapp.plugins.library.db "PRAGMA integrity_check"
*** in database main ***
Page 45216: btreeInitPage() returns error code 11
Page 45215: btreeInitPage() returns error code 11
Page 45214: btreeInitPage() returns error code 11
Page 45213: btreeInitPage() returns error code 11
Error: database disk image is malformed
The “repairing a corrupt DB” section in the Plex guide does not help (see below):
$ sudo "/usr/lib/plexmediaserver/Plex SQLite" com.plexapp.plugins.library.db ".output recover.out" ".recover"
$ sudo "/usr/lib/plexmediaserver/Plex SQLite" com.plexapp.plugins.library.db "PRAGMA integrity_check"
*** in database main ***
Page 45216: btreeInitPage() returns error code 11
Page 45215: btreeInitPage() returns error code 11
Page 45214: btreeInitPage() returns error code 11
Page 45213: btreeInitPage() returns error code 11
Error: database disk image is malformed
Has anyone else run into this? It’s really annoying to have this corruption happen so often…