Sqlite3: Sleeping for 200ms to retry busy DB

Server Version#: 1.23.2.4656
Player Version#: 4.57.4

Hi, I am seeing these output all the time after scanning my TV library.

* today at 07:42 Starting Plex Media Server.
* today at 07:42 [services.d] done.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.

I seen this to fix the issue but I don’t have sqlite installed in linuxserver image. Can I stop and export the db and change the value. Would that be okay?

Plex server stop and Sqlite3: Sleeping for 200ms to retry busy DB is reported in the Log file - Plex Media Server / NAS & Devices - Plex Forum

Thank you

What operating system are you using? You should be able to run these commands from that host OS, not in the docker itself.
Be sure your Plex docker is shutdown before implementing this.

Oops yes I just did that and scan the library and still getting same messages and now I am not sure how to fix.

I also pulled a new image last week and these messages are not going away after every scan.

So what you need to do is copy the Plex Media Server excitable out of the container so then you can use it to run SQL commands against the DB

assuming the container name is plex

docker stop plex
docker cp plex:/usr/lib/plexmediaserver/ /some/folder/you/chose
cd /some/folder/you/chose

then you can simply execute your SQL

"Plex Media Server" --sqlite /path/to/your/plex/DB/com.plexapp.plugins.library.db "PRAGMA default_cache_size = 6000000"

then docker start plex

Hi. I’m having the same sleep error, and tried to do it the way you described, but it just gives me an error Unknown command 'Plex Media Server'. What can I possibly do to fix it? My image is linuxserver and my host is Arch. I use fish and selecting Plex Media Server on tab gives the same error, making it executable does nothing too.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.