Collections Broken. Adding movie to a collection duplicates the collection token

Server Version#: Version 1.25.0.5220
Player Version#: 1.37.0.2706-5b2cfe50

Added a new movie, eg. Hulk 2003. and set collection as “Marvel Comics”. It doesn’t show in that collection. Now cannot edit and delete that field. Sometimes I go into the collection and it shows All marvel movies except Hulk 2003. Restart and look at that same collection and it only shows Hulk 2003 and nothing else. ??? Go to library and use the “create smart collection” feature and filter by collection, and I can see TWO lines that are called “marvel comics”. It seems it has added the same collection name twice.

Did the same with “No Time to Die”. Using the collection name “James Bond Series” and I see under create smart collection that “James Bond Series” is in there twice.

I’m a little confused as to your issue.
Why are you trying to create a smart collection?

Based on what I just read here, Collections | Plex Support, a smart collection would be used more for if you want to have movies, say based on the genre, to automatically be added to a specific collection, like say a Horror collection. You would do a filter on your library by genre and then you can select horror and then create a smart filter based on that.

What it sounds like you are trying to do is just add your movies to a regular collection that you have for a series of movies (like all the Marvel Cinematic Universe movies). This would be modified by clicking on the edit icon for a movie (the pencil icon in the bottom left corner of the movie poster) and then going to the Tags section. From the Tags section you would scroll down to the last field, labeled Collections and then you can add/remove your collection tags.

Another method to adding a collection is by clicking the 3 vertical dots in the bottom right corner of the movie poster, going to Add to and then from the sub menu either clicking on a recent collection or clicking Add to Collection and then either finding a collection you already have or creating a new collection either based on the pre-filled in name or changing it to what you want.

-Shark2k

Yes, I know how to use collections. I have nearly 100. I was attempting to describe a bug.

I added a movie to the “Marvel Comics” collection that I had via the tags tab in the collection field. This collection group already had 25 movies in the collection. Once I tagged the original “Hulk” movie from 2003 as “Marvel Comics”; I noticed that the collection, that until then, contained 25 movies, now only contained 1 movie, that is, Hulk 2003.

I reloaded the app, and the collection again showed the 25 original movies, but not the “Hulk”. ??? I couldn’t figure out how to show the new movie in the collection, even though it was correctly tagged. Multiple restarts of the app or the server resulted in the collection either showing 1 movie (the Hulk) or all 25 other movies, not the whole 26 movies.

So, I knew I had a bug. To try and figure out what was happening, I decided to delete the “Marvel Comics” collection from the collection view. I then used smart collections to see if I could recreate it. Yes, it shouldn’t be needed, but that was where I was. Once I was in the smart collections filter I added filter by “collection” + “is” + “collection name”. That’s when I noticed that I had “marvel comics” listed twice as a collection name. THAT IS THE BUG. You shouldn’t be able to have two collections of the same name.

I added another movie to my “James Bond Series”. Again I found that instead of adding the movie to my existing collection, it had duplicated the collection name. This of course breaks the collection view.

Every time I now add a movie to an existing collection, the collection name is being duplicated, breaking how collections should be used.

P.S. Once a new movies is added with a “duplicated” collection name, that “collection” field in the “tag” tab cannot be cleared out. The system won’t let me remove a movie from a collection.

I wasn’t trying to imply that you didn’t know how collections work.
Your OP was not clear in the steps you were taking which made it seem like you were adding to the collection and also trying to use a smart collection to add the movie/create a collection. Your second post is much clearer and, imho, should have been how your OP was.

The only reason I posted what I did was because it wasn’t clear and if you did have a misunderstanding of adding collections, I figured I’d try and help and make sure you understood how it is done.

Friendly advice when asking for help (I work in IT and the support desk is still a part of my job), is to clearly outline the issue you are having and the steps you took that created the issue (if you are able to do so). Again, your second post would have been a much better OP as it outlines why you were using the smart collection after you encountered the issue.

Like it or not, when getting support, especially in a forum setting like this, there is a very good chance that whoever responds starts at the simplest level with initial responses (in my case clarifying what your issue was and confirming you understood how to create a collection). This isn’t done to insult your intelligence, it’s because, unless you’ve worked with someone before, you don’t know their level and even then I have had instances where working with someone that has the knowledge just forgot something simple.

Again, none of what I am saying is being said with any attitude or to insult your intelligence, it just comes from years of getting poor initial support requests and having to respond to get more information instead of being able to just start troubleshooting right away.

All that said, have you thought about trying to downgrade to the previous version to see if you can undo what the bug prevents and also see if it happens with a previous version? Had you created any recent collections prior to upgrading or had it been a while and you might have done an upgrade or 2 since your last collection was added?

I added movies to 2 different collections I had (actually the same collections you mentioned just with different collection names) prior to upgrading to the version you are on and everything worked correctly.

One last thing, you gave the player version but what platform is that? Also have you tried different player platforms to see if it’s server related or player related?

If nobody else responds by tomorrow, I’ll try and upgrade my test server to 1.25.0.5220 and create some collections and see if I can replicate (though I’m on Linux servers running Docker containers, so as long as it isn’t platform specific I should be able to reproduce). Since you only tested those 2 collections, do you think it has anything to do with the number of items in the collection? We know your Marvel collection should have 26 movies based on what you wrote, Bond should be about the same depending on which movies you include.

-Shark2k

Got the same issue on the latest version on Windows 1.25.0.5220.

Add a movie and it creates a phantom collection, that only has new items in it and not the older items.

Rolling back to 1.24.5.5173, restoring the DB, and adding to collection works fine.

Thanks for verifying that.

Now we just need a Plex employee to see this.
Hoping @anon18523487 will maybe be able to get this to the correct people.

-Shark2k

Thanks for your help. Really appreciated. Would you be able to point me in the direction of rolling back the version and restoring the DB?

For restoring the database you can follow this support article: Restore a Database Backed Up via 'Scheduled Tasks' | Plex Support

For rolling back to a previous version, I think you should be able to just install a previous version and that should work. You can go here Media Server Downloads | Plex Media Server for Windows, Mac, Linux, FreeBSD and More and uncheck the Plex Pass toggle and that will give you version 1.24.5.5173.

I use Docker so I can’t really help much on rolling back the server version as with Docker I can just update the version I want to grab in my docker-compose yml file and the pull the image and re-create it and it’s the prior version.

Maybe @SASSBS can explain what they did on Windows, which might be similar to what you would do on Mac.

Or maybe @anon18523487 can chime in if they stop by this thread.

-Shark2k

Thanks, that’s sufficient info. All good. P…S. I forgot to mention, I’m on an M1 Mac Mini. Awesome machine, never breaks a sweat. Best server I’ve ever had and beats the pants off my old Mac Pro.

[Edit] Reverted back to previous version, restored the DB and rescanned the libraries. Fixed. Again thanks everyone.

1 Like

There was a new update to PMS just published and there is a chance this issue might have been resolved in it.

Here is the relevant post in the announcement thread: Plex Media Server - #470 by drzoidberg33

-Shark2k

I broke my “Collections” database too, though maybe not in the same way. I had a ‘Holiday’ movies library and was tagging some files with the ‘Thanksgiving’ Collections tag, and after doing that display of Collections broke entirely, for that library (still works for other, larger libraries). If I click ‘Collections’ it just displays the entire library.

At the time it broken, I was using (on Synology)
PlexMediaServer-1.24.5.5173-8dcc73a59-x86_64_DSM6

I upgraded to
PlexMediaServer-1.25.1.5286-34f965be8-x86_64_DSM6

but it did not fix the problem.

Right now, Collections are completely non-functional for that library (97 titles). I removed the ‘Thanksgiving’ tag from any titles, but still, no collections display. I tried creating a new collection by adding a bogus tag to a movie, but no change.

I really wish I could just have some ini files, or something, that I could hand edit, and build the databases and metadata from those. Spending a lot of time putting data into a database that could become corrupted and unrepairable, is a waste of time.


Update: I ended up deleting the library of Holiday films and rebuilding it from scratch. Since there were only 90-100 films it was not too difficult. My larger general collection would have been a different story. I wish there was a way to backup the tags to some human editable text based dump of the database.

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