• 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 "Clean Cache Directory" deletes referenced library folders in Jellyfin config

     
    • 0 Vote(s) - 0 Average

    "Clean Cache Directory" deletes referenced library folders in Jellyfin config

    boimouse
    Offline

    Junior Member

    Posts: 18
    Threads: 3
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #1
    2025-01-16, 12:09 PM
    "Clean Cache Directory" deletes referenced library folders in Jellyfin config.

    So I found this issue out the hard way when I thought I had deleted most of my media without doing anything. After further investigation, I hadn't done anything. Jellyfin had simply ran a scheduled task called "Clean Cache Directory." Looking at the description of the task, all its supposed to do is remove unneeded images from the database. However, it also deleted some reference folders that hold my media libraries.

    I have media that is spread across two main directories. One that holds my long-standing media. And another that is getting directly fed by the "arr" suite. Bother are referenced in my Jellyfin libraries so that Movies and TV are in the same library.

    Now, when the "Clean Cache Directory" runs (which is scheduled for every 24 hours) my main library directories get deleted. I attached my log of the task below.

    The cherry on top here is that another automated task is a library scan. Since Jellyfin couldn't see the libraries holding most of my media, it automatically deleted all of its metadata during its scan and therefore was not shown in Jellyfin, making me think all of my media was gone.


    Attached Files
    .txt   log.txt (Size: 3.97 KB / Downloads: 48)
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 243
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #2
    2025-01-16, 04:07 PM
    Sounds like you mapped your cache directory where you have your library files.
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,089
    Threads: 0
    Joined: 2024 Jun
    Reputation: 58
    #3
    2025-01-16, 04:14 PM
    (2025-01-16, 12:09 PM)boimouse Wrote: Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/config/data/collections"

    Remove that folder from your library. You shouldn't be mapping your library to the config folder.
    « 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