Every time I notice my Plex server responding kind of laggy, I do the typical Clean Bundles & Optimize Database dance. But I’m noticing that every single time, Plex is deleting over 10,000 bundles even though I’m not deleting thousands of files. Is this normal behavior?
Server Version#: 1.20.1.3252
Player Version#: 4.43.1
Hey, Chuck. All of this lives on my Synology NAS. There are no external drives being read. Also, I have my scans set to auto-trash any removals, and it’s not actually being added back in and seen as new after a new scan.
The only out-of-the-box thing that’s happened is that I migrated this from my old Mac Plex server. So may there’s a permissions issue there somewhere? The only permissions I’m aware of in the Synology is making sure that the “plex” user has red/write access to the media directories. Should I also run a permissions update in the same manner with the Plex server directory? Or will I break my Plex library? haha
UPDATE: I just ran a clean bundles again, and there’s 20k bundles to delete… It’s 3:30pm here now, and I have my scheduled cleanup to run nightly at 3:00am. Pretty sure I haven’t deleted 20,000 things this morning. haha (I’m seeing now that it only delete bundles weekly, but I don’t know which day. But still… I haven’t deleted 20k things from my library.)
UPDATE 2: I just checked my NAS, and the “plex” user has Full Control permissions to everything in there as far as I can tell.
I’ve noticed my Plex server becoming slower and slower in responsiveness. And then I go run “clean bundles” and “optimize database,” then it runs great again. ¯\_(ツ)_/¯ And I’m not adding or removing tons of stuff (anymore). I was doing that for a few months while migrating my entire music library over to Plex… But now I only add the occasional ripped CD as I get them. (Because I’m old school like that.)
I honestly don’t know how to recreate it, or I’d know how to stop it, right? haha, or at least be able to tell you what I think is causing it. All I do is go to troubleshooting and click “clean bundles.” Boom…thousands of bundles to delete when I haven’t even touched my Plex server for days other than playing music through my phone on Plexamp. But I’m not deleting stuff.
I’m going to go over to Plex > Troubleshooting > Clean Bundles right now and see if it cleans a bunch more… nope. There were 61, but I was fighting with a CD that kept getting recognized incorrectly in Plex, so I was expecting that since I added it and removed it about 3 times.
So, I have no idea what could be causing this or even how to recreate it. But every few days when I go to clean bundles, there are between 10-20k of them.
It is stated that activities reports bundles being deleted in large quantities.
Is there any indication which libraries / library types these are associated with?
Where do I find those reports? Download the logs? Because it doesn’t tell you what it’s deleting while it’s doing it in the Activity icon that I’ve pictured here.
I just had a nice discussion with the engineer who did most of the agent work for the one type.
He pointed out two things.
See which type: Metadata bundles or Media bundles (the logs will show)
Check the “metadata update” task in Scheduled Tasks. If you have a lot of media indexed, and it’s updated frequently, you will see the old records removed.
Unfortunately I haven’t had time to dig in to this yet. I’m spread pretty thin IRL (I worked 19 hours yesterday, for example, and it’s 1:30am on a Saturday, at work, where I’m currently typing this. To paint the picture…)
But eventually I’ll try to solve it. I’ve just had other more pressing issues to deal with. Did you do what the folks above are suggesting and check out the logs?
I did, I was not able to locate the relevant portion of the logs.
EDIT: worked on this a bit today, although nearly 200,000 bundles were reported deleted (!) I could only find a reference to 10 deletions in the logs. So it seems for me at least that this count is erroneous.