Server Version#: 1.32.6.7557 (in a Docker container)
Player Version#: 4.116.1 (Plex Web)
Running Plex server on a QNAP TVS-h1288X with QuTS hero h5.1.1.2488. Plex in installed via the Docker CLI and resides on a ZFS striped pool made-up of 2 x 4TB Crucial NVMe SSDs. (Plex is the ONLY application installed on a dataset in this pool.).
Was running into similar issues when Plex was first installed on this system 4+ months ago, but those issues had subsided when I moved Plex Server into its own dataset on its own ZFS pool on NVMe SSDs. The issue has returned within the last few weeks and requires the Docker container to be restarted every few days. The container’s logs always contain the message “Sqlite3: Sleeping for 200ms to retry busy DB.”. The Web Player and Android App show the libraries shared by this server as unavailable and my only option is to restart the server.
The zpool application on QNAP h5.1.1.2488 doesn’t report a “trim” command, none of the created pools seem to have an autotrim property (sudo zpool get all | grep trim), and the GUI doesn’t explicitly offer an option for enabling trim (though there is a scrubbing option which I’ve now enabled).
Unclear what ZFS version is used:
$ sudo zpool get all | grep version
zpool1 version - default
zpool2 version - default
zpool3 version - default
As mentioned in the original post, Plex Meta Manager is disabled NOW (on Mon, Oct 23 PDT) but was previously enabled for 3+ months. If the timestamps are in UTC then this likely predates when PMM was disabled. To be sure, I’ve deleted all log files and restarted the Plex server, keeping the PMM service disabled. Will updated with new logs again if the system fails.
Turned off PMM last week and haven’t observed any instances of:
Waited over 10 seconds for a busy database …
since. Re-enabled PMM this morning and observed the error within a few hours:
…
Plex Media Server.log:Oct 30, 2023 10:32:46.402 [139697393707832] ERROR - [Req#13def2/ViewStateSync] Waited over 10 seconds for a busy database; giving up.
Plex Media Server.log:Oct 30, 2023 10:32:56.615 [139697393707832] ERROR - [Req#13def2/ViewStateSync] Waited over 10 seconds for a busy database; giving up.
…
My Plex client was unable to access libraries hosted on this server and I needed to restart the server’s container to recover.
So your suspicion appears to be correct. Anything I can do on the Plex server side of things? I’ll look into throttling PMM at the app or Docker level.
I’m having the same issue after renaming all folders in my TV and Movies libraries to follow trash guide. Everything looks good and plays fine, but every now and then I’ll wake up to plex being unresponsive, with the logs showing several “Sqlite3: Sleeping for 200ms to retry busy DB.”
I suspect one of the scheduled tasks is causing this, since it usually happens overnight. And it did happen a few times while I was restoring all metadata during the migration. My suspicion is the “refresh local metadata every 3 days” since it doesn’t happen every day. Something about the new folder structure may be causing the parser to update the db several times? For now, I’m disabling that option. Will report back if it still happens.