• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: At some point in the past month or two, all of my Collections are now empty

     
    • 0 Vote(s) - 0 Average

    SOLVED: At some point in the past month or two, all of my Collections are now empty

    lmm5247
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #1
    2024-09-12, 07:58 PM (This post was last modified: 2024-09-12, 07:59 PM by lmm5247. Edited 1 time in total.)
    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...
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-09-12, 08:08 PM (This post was last modified: 2024-09-12, 08:09 PM by TheDreadPirate. Edited 2 times in total.)
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    lmm5247
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #3
    2024-09-12, 08:23 PM
    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 
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-09-12, 08:26 PM
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    lmm5247
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #5
    2024-09-12, 08:26 PM (This post was last modified: 2024-09-12, 08:29 PM by lmm5247. Edited 1 time in total.)
    (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!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-09-12, 08:42 PM
    If you have a backup, that may work.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode