Jellyfin Forum
SOLVED: At some point in the past month or two, all of my Collections are now empty - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: At some point in the past month or two, all of my Collections are now empty (/t-solved-at-some-point-in-the-past-month-or-two-all-of-my-collections-are-now-empty)



At some point in the past month or two, all of my Collections are now empty - lmm5247 - 2024-09-12

I logged into Jellyfin today to add some movies and realized that all of my Collections are now empty.

Currently running the jellyfin/jellyfin:10.9.11 container in Docker on Debian 11. I don't know when this broke.

I have 74 Collections. Each still has the poster/artwork, but when I click on it, there are no movies in it. If I exec into the container, I can see the Collection, but there are no entries in it.

Code:
# cat /config/data/collections/'Star Wars [boxset]'/collection.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Item>
  <ContentRating>PG</ContentRating>
  <Added>11/09/2020 13:30:42</Added>
  <LockData>true</LockData>
  <LocalTitle>Star Wars</LocalTitle>
  <PremiereDate>1977-05-25</PremiereDate>
  <DisplayOrder>PremiereDate</DisplayOrder>
  <ProductionYear>1977</ProductionYear>
  <Genres>
    <Genre>Action</Genre>
    <Genre>Adventure</Genre>
    <Genre>Science Fiction</Genre>
    <Genre>Fantasy</Genre>
  </Genres>
  <Studios>
    <Studio>20th Century Fox</Studio>
    <Studio>Lucasfilm Ltd.</Studio>
    <Studio>Bad Robot</Studio>
    <Studio>Truenorth Productions</Studio>
    <Studio>British Film Commission</Studio>
    <Studio>Walt Disney Pictures</Studio>
    <Studio>Allison Shearmur Productions</Studio>
    <Studio>Imagine Entertainment</Studio>
  </Studios>
</Item>

I'd really like my Collections back. Is there some database table that I can pull Collections from? I don't mind recreating them, but would just like to have the list of which movies go in which Collections...


RE: At some point in the past month or two, all of my Collections are now empty - TheDreadPirate - 2024-09-12

There is a job that runs when Jellyfin starts that cleans up playlists and collections when the media in them is no longer present. What I suspect happened is that your media briefly was not available when Jellyfin started and that job cleared out your collections.

You can disable this job to prevent this from happening in the future.

Dashboard > Scheduled Tasks > Clean up collections and playlists. Delete the trigger in that job.


RE: At some point in the past month or two, all of my Collections are now empty - lmm5247 - 2024-09-12

Hmm, I'm not seeing anything in the jellyfin.db or library.db files that screams "Collections" to me...


sqlite> .tables
AccessSchedules              ImageInfos                 
ActivityLogs                  ItemDisplayPreferences     
ApiKeys                      Permissions               
CustomItemDisplayPreferences  Preferences               
DeviceOptions                TrickplayInfos             
Devices                      Users                     
DisplayPreferences            __EFMigrationsHistory     
HomeSection               



sqlite> .tables
AncestorIds      ItemValues        TypedBaseItems    mediaattachments
Chapters2        People            UserDatas        mediastreams 



RE: At some point in the past month or two, all of my Collections are now empty - TheDreadPirate - 2024-09-12

If they're not in the UI, the collections won't be in the database either. You will likely need to recreate them, but see my last post for ensuring it doesn't happen again.


RE: At some point in the past month or two, all of my Collections are now empty - lmm5247 - 2024-09-12

(2024-09-12, 08:08 PM)TheDreadPirate Wrote: There is a job that runs when Jellyfin starts that cleans up playlists and collections when the media in them is no longer present.  What I suspect happened is that your media briefly was not available when Jellyfin started and that job cleared out your collections.

You can disable this job to prevent this from happening in the future.

Dashboard > Scheduled Tasks > Clean up collections and playlists.  Delete the trigger in that job.

Thanks, I just found this GitHub issue and posted there as well. Is there anywhere in the database I can pull my Collections from? or should I restore the collections directory from backup?

EDIT: Just saw your other post. Guess I'll recreate them, thanks!


RE: At some point in the past month or two, all of my Collections are now empty - TheDreadPirate - 2024-09-12

If you have a backup, that may work.