Metadata Bundles - Always over 10,000 being deleted. Normal?

Hey, all.

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?

Screen Shot 2020-09-24 at 7.09.22 PM

Server Version#: 1.20.1.3252
Player Version#: 4.43.1

1 Like

That’s not right. It’s as if you lose media access and then the media is added back as if fresh.

Are permissions being played with or is the media on a USB which isn’t always fully available when PMS is?

I’ve seen this myself. Not sure it’s affecting anything but it’s always been a concern.

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.)

Screen Shot 2020-09-27 at 3.34.09 PM

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.)

What can I do to try and recreate this?

I have all my media and my entire QA library of movies and episodes.
What do I need to find what you’re seeing?

If it’s music files, I can create a script to write dummy files but I would need a Linux-style directory listing to make it happen.

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.

which bundles get deleted in large quantities?

Music? Movies? Episodes?

How would you know what bundles?

I’m sorry?

I don’t understand the reply.

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.

  1. See which type: Metadata bundles or Media bundles (the logs will show)
  2. 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.

DasKraut any luck troubleshooting this? I’m having the same issue.

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.

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