SOLVED: Duplicates after "migrating" server - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification) +---- Thread: SOLVED: Duplicates after "migrating" server (/t-solved-duplicates-after-migrating-server) |
Duplicates after "migrating" server - copsforfertilizer - 2024-07-11 Hey all. My server had some hard drive issues recently and I had to restore it. I couldn't find a ton of info on migrating the server but I did back up my Jellyfin data in /etc/, /var/cache, and /var/lib. I tried to follow TheDreadPirate's instructions here, but I ran into some issues. After installing Jellyfin on a fresh install of Ubuntu and copying over /etc/ and /var/lib files I was getting an error. I removed what I could, reinstalled Jellyfin, and when I tried to start a new server it showed my original server. It had my old paths saved and I deleted them and added the new, correct path. Everything works but now almost everything shows as a duplicate. When checking out the media info for items that show dupes, it shows the previous path and the new one. All old paths have been removed from Dashboard>Libraries but I can't get rid of dupes after rescanning multiple times. I'm wondering if deleting all old library folders and creating new ones could solve it. I don't have a crazy amount of media so this is doable, but I wanted to see if anybody had a better idea first. I attached a couple of images. It seems that new files added after migrating don't have the duplicate issue happening. Everything that was on the server before are affected. RE: Duplicates after "migrating" server - TheDreadPirate - 2024-07-11 Which scan type did you run? A simple "new and update files" scan? Try a "replace all metadata" scan. RE: Duplicates after "migrating" server - copsforfertilizer - 2024-07-11 I've tried both but still have Jellyfin showing there's duplicates of them all. Viewing the metadata for files shows only the correct path, but looking at media info for everything still shows the former path. RE: Duplicates after "migrating" server - TheDreadPirate - 2024-07-11 For whatever reason sometimes old metadata is "sticky" and the only way I've gotten it to change is to remove the media from the library folder, scan to remove the entry, then move the media back into the library and scan to add them back. Or removing the library entirely. Either way works. RE: Duplicates after "migrating" server - copsforfertilizer - 2024-07-11 I did try moving all movie files out to another folder, scanning the empty library then readd them yesterday but now they're duped again. I'll try removing the original libraries completely and creating new ones to see if that works. RE: Duplicates after "migrating" server - TheDreadPirate - 2024-07-11 When you delete the libraries, before creating the new ones, go into /var/lib/jellyfin/root/default/ and delete the folders associated with the library to make sure all the configs are purged. RE: Duplicates after "migrating" server - copsforfertilizer - 2024-07-12 Alrighty. Issue seems to be fixed. I went through and moved all files out of their folders (Movies, Shows, etc) then rescanned everything. Deleted each library from Jellyfin and doing so was removing all their respective folders in /var/lib/jellyfin/root/default. Created new folders, moved everything into their folders, then added them as new libraries in Jellyfin. Thanks for the help! |