Server Version#: 1.13.8.5395
Platform: Docker (plexinc/pms-docker:plexpass)
Player Version#: N/A
Logs: https://hastebin.com/agecepadix.sql
I’m seeing a TON of instances of logs like below:
WARN - Unable to load episode file [“seasons/1/episodes/7.xml”]
With a smattering of:
WARN - Waited one whole second for a busy database.
ERROR - Failed to begin transaction (…/Statistics/StatisticsManager.h:191) (tries=1): Cannot begin transaction. database is locked
An optimize DB always seems to fixed it for a short time.
I’ve had DB errors for years now, both on PlexPass and Public releases, and no one has been able to tell me why. Can someone help me identify why this is happening? My Plex metadata folder lives on a ZFS mirrored SSD, so IOPS should not be an issue whatsoever (hdparm and dd tests confirm this). Optimizing seems to fix it for a short time, but these errors will return.
Sometimes I restart the Docker container = fixed
Sometimes I optimize the DB = fixed
Sometimes I do nothing and it doesn’t impact the server at all.
Sometimes PMS ends up crashing out entirely and requires a full restart.
I’ve also seen this topic in the forums and Reddit frequently, with no one from Plex ever able to provide a solid solution.