Server Version#:1.21.1.3830
Player Version#:
I am about to move my PMS from Ubuntu to Windows and of course this requires my library directories to change.
As most of my files are stored remotely i wanted to save time and bandwidth and tried to correct the directories by editing the database.
This worked pretty well except for about 100 to 200 files which - for some unknown reason - do now show up as linked to two sources only differing in case:
When deleting one of the two sources, the file on disk is deleted, no matter which source i choose.
I’ve tried to figure out duplicate entries in the database for these files in the media_parts table and thought i have found them, but after deleting these rows, the episodes do still show up with two sources linked to them.
Of course i have a backup of my database and could start over from the beginning. But maybe someone can tell me how to get rid of the dupes here?
I would say check that you don’t have duplicate library folders for that library. The next thing is it is showing the same path but one with a c: and the other with a C: and it sees them as two different paths. That is why it is duplicating them. Just double check you don’t have multiple same folders added to the library.
Thanks, but that is what i’ve mentioned before.
Of course i made sure that there are no duplicate root folders mapped to my libraries.
I noticed that Plex sees two versions for this item and i can split them by using the command in the item menu. However, this would leave me with two items, both pointing to the same path, only varying in their first character’s case meaning i cannot just delete one of the two versions because this would always delete the file it is associated with as on windows, upper or lower case for drive letters doesn’t make a difference.
I mean I’m not sure why you took that route to begin with. I’ve moved locations of directories before & it’s pretty simple. Not saying it’s the best method, but here’s what I do. I’m going to be overly specific because if you know it doesn’t hurt, if you don’t it does, & it served me well when I did customer support
- Goto
Settings > Library & uncheck Scan library automatically & Run a partial scan when changes are detected & Scan my library periodically I also make sure to disable the empty trash & allow deletion, but that’s just me, definitely not necessary
- Create or locate the location you are moving to
- Click the hamburger menu next to your library & select
Manage Library > Edit...
- In
Add folders add the new location
- On your library click the hamburger menu & select
Scan Library Files
- Wait for the scan to finish.
If you want it would not hurt to turn your plex server off but I don’t
- Move your files from
Original Location to New Location
- Make sure the move is complete before continuing
if you stopped the server restart it now
- Hamburger menu your library & select
Scan Library Files
- All items should be updated, the library updates the location of the files & metadata & watch history remain.
- Go into the library hamburger menu
Manage Library > Edit...
- Remove the old folder.
I came across this method several times here and may give it a try next time. It didn’t look like the obvious solution in my case as my media didn’t actually move but the way it will be referenced has changed from an Ubuntu style like ‘/mnt/…’ back to Windows style like ‘drive:\mnt…’.
So in my case, after moving the database from the old to the new PMS instance i would need to add the new location pointing to an empty folder first, shutting down the server and fixing the new mount point, i guess.
No, if you are copying the database to the Windows machine, all you need to do is ensure that the trash option is not enabled. Add the new folder locations and allow Plex to scan. ALL your files should then have the 2 on them to indicate there are multiple copies, but if you go in to any of them and look at the info it will say unavailable on the first path. Once you are certain that Plex has duplicate entries for ALL your items. Then edit the library and remove the old file path. Plex will do a very fast scan and remove all the originals. But your watch history and any manual editing of the metadata you have done will stay intact. I move files about all the time, as long as you make sure Plex can see duplicates first before removing the old location - everything works fine.
OK, will keep that in mind for next time.
Right now it seems like i have fixed the issue.
Actually it looks like a bunch of corrupted files pulled through my rclone mount point have created the multiple versions. After finding and removing these bad boys, everything looks as it should for now.