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.
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.