• 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 database & file system cleanup issues

     
    • 0 Vote(s) - 0 Average

    database & file system cleanup issues

    after deleting all libraries I still see them on the homepage, folders still contain a lot of data/images
    Tombar
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #1
    2024-01-13, 09:41 AM
    Hi all,

    first of all sorry if I missed anything in configuration. I am new to Jellyfin. Until now I used Kodi and Plex but really like to fully migrate to JellyFin.

    Yesterday I added Movies / TV Shows and activated to display missing episodes. Today I now realized that I do not really want to have this as I quite often do not have all seasons. Mostly only the latest 1-2 seasons. Rest is already deleted.

    I wanted to do a fresh start and fully deleted the created libraries.

    1. But why are the libraries still visible on the homepage even after the libraries got deleted? Yes they are empty now but still visible.

    As I now have not a single media file anymore I was also curious if the data folder got cleansed.
    1. The "cache\temp" and "cache\images" folders still contain a significant amount of data. Should this not be deleted? Can I trigger the cleanup somewhere manually?
    2. The library.db is 53MB even without having any library configured?
    3. The "metadata\People" did not got cleaned at all. Why are all actors still listed despite not having anything within the library?
    4. "metadata\library" seemed to got cleansed but there are still several items left. I checked them and they are all poster.png files which show in most cases the title pictures of 3-4 different TV shows within one poster. Why is that still there? Can I somewhere trigger a cleanup?

    I tried within the scheduled tasks area to run the database optimization etc. but this did not change anything.

    I am asking all these questions because I like to understand the software I am using. In future I will add and delete a lot of TV Shows / episodes. My way of usage is that I watch episodes only once and then I delete them. If now always some data stays behind this is consuming unnecessary space and might slow down the whole application. I would prefer to have a clean system.

    Thanks a lot for any hint.

    Tommy
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-01-13, 09:14 PM
    If the library is EMPTY, but the library exists in Dashboard > Library, it will still be on the home screen.

    Can you share a screenshot of what you are seeing? And a screenshot of Dashboard > Library?
    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]
    Tombar
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #3
    2024-01-14, 08:51 AM
    thank your for your tip, in the meanwhile fully deleted it and started from cratch.

    But the other questions remain valid. Are there known issues/limitations with the cleanup process?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-01-14, 05:10 PM (This post was last modified: 2024-01-14, 05:10 PM by TheDreadPirate.)
    As long as there aren't permission misconfigurations, I am not aware of any known cleanup issues.

    If you still have your logs from before you started over, we can take a look at those to see if we can narrow down the cause of your problem.
    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]
    toytown
    Offline

    Member

    Posts: 78
    Threads: 2
    Joined: 2023 Jun
    Reputation: 3
    #5
    2024-01-15, 09:59 PM
    So i just did a test as i was curious. My current config has

    12K Movies
    270 TV shows (ranging from 10eps to 1000eps, but mostly around 40 average)
    8000 Home Photos

    I don't have thumbnail extraction enabled and my library.db file is approx 515MB and the total space used by config/cache directories (not including transcodes) is 44GB.

    I created a docker using exactly the same config/cache files (rsync'd) but pointing at empty media directories. I then ran a library scan and made sure that all the libraries were coming up completely blank. I ran the "People Scan" and every option in the maintenance tasks. I checked the log files to make sure that all the tasks had finished, then restarted the docker and did all the maintenance tasks again (i did this 3 times) also checking to make sure that Movies/TV Shows/Photos library were blank. Afterwards i checked the cache/config directories and surprisingly it was still using 31GB of space, so jellyfin does not appear to be cleaning itself up correctly.

    The main directories were files were still held were
    5.8GB in /config/metadata/People
    23GB in /cache/images/resized-images
    Tombar
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:Germany
    #6
    2024-01-16, 06:32 PM
    do I understand it correctly that you current cache directory of an installation which you are using for quite a long time and where you had multiple changes (delete/add content) has 44GB and if you run a fresh scan it only has 23GB?

    That would mean that Jellyfin has not correctly cleaned about 48% and a lot of space is wasted.
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #7
    2024-01-16, 06:40 PM
    (2024-01-16, 06:32 PM)Tombar Wrote: do I understand it correctly that you current cache directory of an installation which you are using for quite a long time and where you had multiple changes (delete/add content) has 44GB and if you run a fresh scan it only has 23GB?

    That would mean that Jellyfin has not correctly cleaned about 48% and a lot of space is wasted.

    from the OP's description
    12K Movies
    270 TV shows (ranging from 10eps to 1000eps, but mostly around 40 average)
    8000 Home Photos

    i dont think it's unreasonable to have the size at 44GB, a library that size should be using well above 600000GB (600TB) in media storage which make the data side of things look tiny
    toytown
    Offline

    Member

    Posts: 78
    Threads: 2
    Joined: 2023 Jun
    Reputation: 3
    #8
    2024-01-17, 12:58 AM
    Right the amount of data used isn't really a problem, the issue is that the problem the OP reported does indeed seem to be a bug. Whereby even after i deleted all my media and made sure that jellyfin had removed it from the libraries, there was still nearly 30GB of data not cleaned up. Overtime depending on how much content is deleted/added on a server it could mount up. Especially as a lot of people are using fast NVMe storage for their jellyfin directories/installs.
    « 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