Jellyfin Forum
Collections - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Collections (/t-collections--8127)

Pages: 1 2


Collections - hanaquacks - 2024-09-25

I have my entire JF folder backed up nightly and a couple months ago I had a NVME drive die and when I restored from my backups everything seemed fine. Flash forward until now and I'm only just realizing that while everything else got restored, my collections are there, but they're empty. I've made a lot of changes since noticing and don't want to restore wholesale, but was wondering if there was a folder in particular I should be making sure gets restored that will include the content of my collections.


RE: Collections - TheDreadPirate - 2024-09-25

What I suspect happened is that when you restored and started Jellyfin you did not have your media in place. There is a job that runs when Jellyfin starts that cleans up playlists and collections of media that is no longer present. So if you restored Jellyfin before restoring your media to their original locations, or correcting permissions, Jellyfin would have emptied your collections.

This job can be turned off. Dashboard > Scheduled Tasks > Clean up collections and playlists. Open that job and remove the trigger.

If you have backups of the collection XMLs, you could try restoring those.

For docker
/config/data/collections

For Linux
/var/lib/jellyfin/data/collections

For Windows
C:\ProgramData\Jellyfin\Server\data\collections (I think this is right)


RE: Collections - hanaquacks - 2024-09-25

Thank you! That should be all I need. And thanks for the info on the restore, I think that did happen because maybe I didn't have the drives remounted, I only updated the fstab.


RE: Collections - hanaquacks - 2024-09-26

Hey DreadPirate, hopefully a quick followup. I restored the files, they are in there. However, it seems like Jellyfin hasn't gotten the memo. I've tried restarting jellyfin.service, I've tried a library scan, I tried refresh metadata on the collection, replace all metadata, find missing metadata. I simply overwrote the files, maybe I should have deleted the files, done a scan and then added them back in. Can you advise on bringing back this data?


RE: Collections - TheDreadPirate - 2024-09-26

Did you reset the permissions on the collection files and folders?


RE: Collections - hanaquacks - 2024-09-26

Correct, they are owned by jellyfin, rwxr-x-r-x, I tried changing permissions further, but no change on the server.


RE: Collections - TheDreadPirate - 2024-09-26

Do you have ANY collections in the new Jellyfin instance? Or a collection library? I did some testing and Jellyfin would not read in any of my test collections unless there was a collection "library". Which only happened once I manually created one collection. Then I put the collection folders and XMLs in place and "scanned all libraries" and Jellyfin created the collections from those XMLs.


RE: Collections - hanaquacks - 2024-09-26

I mean, I've got the "shells" of my old collections in the new instance. And I do have a Collection Library. I restored to a folder outside of jellyfin and then copied the XMLs into each existing Collection folder i.e. copied James Bond XML to the corresponding James Bond folder within collections. Maybe it'd be worth it to delete the Collection Library outright and then re-add it in.


RE: Collections - TheDreadPirate - 2024-09-26

Maybe. Are your file paths exactly the same as what is in the XML files?

Can you share your full jellyfin logs? Jellyfin logged warning and error messages for the couple of movies that existed in my first test instance that didn't exist in my second test instance.


RE: Collections - hanaquacks - 2024-09-26

Hopefully I can post a drive link, the text file was too large for upload.

https://drive.google.com/file/d/1-pT04jvCOn2bQpjSA2Lm6z9nXkdFiesZ/view?usp=sharing