Server Version#: Unraid Docker, latest official, Plex-Media-Server
Player Version#: N/A
My database com.plexapp.plugins.library.db is 138 GB. Keeps growing. I am trying to run the DBRepair tool, but my directories have an odd name, like:
/config/Library/‘Application Support’/‘Plex Media Server’/‘Plug-in Support’/Databases
The tool won’t work with it named like this. Can anyone assist?
Thanks. I checked the path because I kept getting this error:
Unable to run automatic sequence. Insufficient free space available on /config/Library/Application Support
Space needed = 443325 MB, Space available = MB
Okay, that seems like it did it. Starting automatic check and repair. Odd that it reported blank for the available size. Part of me feels stupid, but on the other hand, I would have figured it out immediately if it hadn’t reported blank.
Your help is much appreciated. The thing is, I nuked Plex a couple of months ago and started indexing existing libraries. It grew this size quick.
I checked, and Chapter thumbnails were turned off. I will check other options after the repiar tool has finished (as Plex is stopped during the operation), unless you recommend differently.
BTW, Plex often just stopped reponding and the logs said often:
Sqlite3: Sleeping for 200ms to retry busy DB.
I have started adding media more frequently…forgot to answer that question. As I mentioned before, I also started from scratch and added a ton of media all at once as they were already present in directories that I added as libraries.
Okay. I did what you said. I am guessing that 30 Gb will take some time. I willl check back tomorrow. Thanks so much. Note that after I started the repair, it recreated -shm and -wal. It seems that they are the same size as what I posted before.
One thing I will want to know is, what can I do in the future to make sure that this doesn’t happen. Do I just add media slowly?
Thanks. I have a combination of different container types, not just mkv. It finished after a few hours, and am down to 14 Gb now. Still much larger than yours. I had to change the ownership from root:root to nobody:users.
Any idea on how to reduce the file more? Maybe remove photo libraries? I have a small amount of music, but I can eliminate that as well.
I assume I can delete dbtmp now.
Regarding thumbnails. I see in the settings, there are two options for thumbnails:
Generate chapter thumbnails - Never
Generate video preview thumbnails (is this index thumbnails you were referring to before?) - Never (this might have been enabled before.)
I wanted to provide an update. I ended up removing a large library. During that process the database got corrupted, so I ran DBRepair again. I am down to 370 Mb now. I deleted a lot of the old files from that directory and then am moving those files to an existing library. Still good. After each batch I optimize. Still close to 370 Mb.