Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Jellyfin
  3. Jellyfin - the beast eats GB

Jellyfin - the beast eats GB

Scheduled Pinned Locked Moved Jellyfin
12 Posts 5 Posters 2.8k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #2

    I think upstream project has a bug report at https://github.com/jellyfin/jellyfin/issues/3929 to limit the transcode cache size. However,

    1 Reply Last reply
    2
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #3

      Heh, it seems this is a hot topic in that world. Here's a script that does some auto clean up - https://github.com/RTUnit/Jellyfin-Transcodes-cleanup

      There's also plenty of reddit threads - https://www.reddit.com/r/jellyfin/comments/wuur1a/how_much_disk_space_for_transcodes/ https://www.reddit.com/r/jellyfin/comments/gm6y6p/is_there_a_way_to_limit_cachebuffer/ https://www.reddit.com/r/jellyfin/comments/11bzgte/cache_of_transcode/ https://www.reddit.com/r/jellyfin/comments/os4k2q/transcoding_and_served_file_sizes/

      1 Reply Last reply
      1
      • necrevistonnezrN Offline
        necrevistonnezrN Offline
        necrevistonnezr
        wrote on last edited by
        #4

        These GBs are not reclaimed automatically per default? Or just not reclaimed in a short time span?

        luckowL 1 Reply Last reply
        1
        • necrevistonnezrN necrevistonnezr

          These GBs are not reclaimed automatically per default? Or just not reclaimed in a short time span?

          luckowL Offline
          luckowL Offline
          luckow
          translator
          wrote on last edited by
          #5

          @necrevistonnezr Good question. I've decided not to delete the app from my Zimaboard. Let's see if the hard drive is full again in a few days/weeks. I'll monitor Jellyfin's hard drive usage a few hours and days after watching movies.

          Pronouns: he/him | Primary language: German

          1 Reply Last reply
          1
          • necrevistonnezrN Offline
            necrevistonnezrN Offline
            necrevistonnezr
            wrote on last edited by necrevistonnezr
            #6

            Just checked mine:

            • 1.57 GB app size before watching a movie
            • 3.0 GB app size after starting a movie (the difference to the 1.57 GB is roughly the movie's file size)
            • 1.57 GB app size after stopping the movie

            --> I looks like the cache is cleared automatically?!

            luckowL 1 Reply Last reply
            1
            • necrevistonnezrN necrevistonnezr

              Just checked mine:

              • 1.57 GB app size before watching a movie
              • 3.0 GB app size after starting a movie (the difference to the 1.57 GB is roughly the movie's file size)
              • 1.57 GB app size after stopping the movie

              --> I looks like the cache is cleared automatically?!

              luckowL Offline
              luckowL Offline
              luckow
              translator
              wrote on last edited by
              #7

              @necrevistonnezr Okay. Ideal conditions. At home, I noticed that the play button was a bit lame. That's why I pressed it twice or more. Sometimes when I'm watching as an alien from outside my network, the stream suddenly cuts out. No idea if this leads to dead GB that are not automatically deleted.

              Pronouns: he/him | Primary language: German

              M 1 Reply Last reply
              1
              • necrevistonnezrN Offline
                necrevistonnezrN Offline
                necrevistonnezr
                wrote on last edited by
                #8

                Just for clarity, it runs on a server at home but a tad more powerful than the Zimaboard, I guess (Beelink EQ12 with Intel N100, 16 GB RAM and SSD drives)

                1 Reply Last reply
                0
                • luckowL luckow

                  @necrevistonnezr Okay. Ideal conditions. At home, I noticed that the play button was a bit lame. That's why I pressed it twice or more. Sometimes when I'm watching as an alien from outside my network, the stream suddenly cuts out. No idea if this leads to dead GB that are not automatically deleted.

                  M Offline
                  M Offline
                  msbt
                  App Dev
                  wrote on last edited by msbt
                  #9

                  @luckow is it possible that you transferred files via the web file manager on your mounted volume? Because the same thing just happened to me, I sent a few GB of files via the gui and the space was used on the mounted volume and also in the sftp container. The files weren't removed even after the transfer was complete. When I was uploading directly to the volume (not via cloudron) only the volume space was used. So maybe there's a bug in the file manager/sftp? I restarted the service and the space is still in use.

                  I did a quick search for bigger files on the server and the volumes look like this:

                  ...
                  /var/lib/docker/volumes/1231239813136462c2985ef9fb95997d3bf3c0ade478161c9ab78897fabd9df4/_data/1234nhpQSR7FGRmviYn3o-uJ.mkv
                  /var/lib/docker/volumes/1231239813136462c2985ef9fb95997d3bf3c0ade478161c9ab78897fabd9df4/_data/1234cYkcj_5Jf1VChyqBW8pY.mkv
                  /var/lib/docker/volumes/1231239813136462c2985ef9fb95997d3bf3c0ade478161c9ab78897fabd9df4/_data/1234Tv6qx56UmX2BD2vDKMmD.mkv
                  ...
                  

                  When querying for that specific volume, this shows up:

                  volume 1231239813136462c2985ef9fb95997d3bf3c0ade478161c9ab78897fabd9df4 is used by sftp,
                  

                  Will the sftp volume eventually be cleaned up or what's going on there?

                  cc @girish @nebulon

                  Edit: I was drag & dropping whole directories

                  1 Reply Last reply
                  2
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #10

                    @msbt great catch, can confirm the bug.

                    1 Reply Last reply
                    2
                    • hexbinH Offline
                      hexbinH Offline
                      hexbin
                      wrote on last edited by
                      #11

                      Folks, your private vacation videos are just too large 😄

                      1 Reply Last reply
                      2
                      • luckowL Offline
                        luckowL Offline
                        luckow
                        translator
                        wrote on last edited by luckow
                        #12

                        argh. it's hitting me again. same problem. i totally forgot about this thread. For my future self:
                        You have to configure your app to write the cache to a mounted volume. (/run/jellyfin/ is "local")

                        image.png

                        Pronouns: he/him | Primary language: German

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search