• 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 Server becomes unresponsive after a while during ffmpeg AttachmentExtractor task

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Server becomes unresponsive after a while during ffmpeg AttachmentExtractor task

    Server becomes unresponsive after a while during ffmpeg AttachmentExtractor task
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #1
    2024-11-05, 02:24 PM
    This is a follow up to this issue I thought was resolved but seems to be back: https://forum.jellyfin.org/t-solved-serv...r-my-phone (ignore the "for my phone" part; I've since narrowed this further to all web).

    This seems to kind of randomly occur when playing content with SSA/ASS subtitles from the web or web-wrapper apps like Android. Around midway through playback, it just freezes and the server becomes almost completely unresponsive until I restart the docker container.

    In the instances I've seen, the server has been either transcoding for reason "container not supported" or remuxing (which I thought was the same thing but that's what the server says).

    I always see it occur after first MediaBrowser.MediaEncoding.Subtitles.SubtitleEncoder, then MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor task. I took a look at the classes and with my very limited understanding, it seems to be related to extracting the SSA subtitles? That would track with all the occurrences of this I've seen.

    https://github.com/jellyfin/jellyfin/blo...Encoder.cs
    https://github.com/jellyfin/jellyfin/blo...tractor.cs

    Here's the full log:
    https://pastebin.com/Nk6ZFHSR

    Server and web are 10.10.1.

    Here's the compose:


      jellyfin:
        image: jellyfin/jellyfin:latest
        container_name: jellyfin
        ports:
          - 8096:8096
        group_add:
          - "109" # render group
          - "44" # video group
        devices:
          - /dev/driConfused-facedev/dri
        volumes:
          - type: bind
            source: /services/jellyfin/jellyfin/jellyfin-web/config.json
            target: /jellyfin/jellyfin-web/config.json
          - /services/jellyfin/configConfused-faceconfig
          - /services/jellyfin/cacheConfused-facecache
          - /mnt/mediaConfused-facemedia
        restart: always
        environment:
          - TZ=America/New_York
          - JELLYFIN_PublishedServerUrl=https://jellyfin.xxxx
        logging:
          driver: "json-file"
          options:
            max-file: "10"
            max-size: "200k"
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-11-05, 04:30 PM
    What are the specs of the server? It looks like it is extracting the subs, dumping the attachments, then remuxing. So, other than disk space, it should be a pretty light load on the server.
    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]
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #3
    2024-11-05, 05:20 PM (This post was last modified: 2024-11-05, 05:24 PM by magguzu. Edited 2 times in total.)
    Ubuntu 24.04 on a Proxmox VM

    24GB RAM
    12 vCPUs assigned to the VM.
    GPU is the UHD 770 iGPU in my Intel 13th gen CPU.

    Agreed it should be very light. It handles everything else very fast. This one particular task just seems to choke it.

    One little thing I changed since posting this is I set user: "1000:1000" in the compose file since the config directory had some mixed permissions between root and the 1000 user. It's writing these extracted attachments to config so.. :shrug:
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-11-05, 05:38 PM
    If you changed the container's runtime user, make sure you recursively chown /config.

    Please update us whether or not that was the fix.
    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]
    1
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #5
    2024-11-07, 12:04 AM
    Issue is still occuring. I just reproduced.

    The video was remuxing this time.
    The permissions were all changed to the 1000 user, and the render and video groups were corrected as they were previously wrong (thanks again for your help on Discord)

    https://pastebin.com/J0RUhATP
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #6
    2024-11-07, 01:07 PM
    Just to reiterate that this seems kind of random; I just watched the following episode from the one above and didn't experience the issue. In this case the AttachmentExtractor task did NOT happen. I didn't check if it was remuxing this time though (if that matters).

    https://pastebin.com/Uu9JXGUd
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-11-07, 02:10 PM
    That second file doesn't have attachments to dump.

    Let's try rebuilding the container to make sure something isn't broken in the container.

    Code:
    docker compose down -d jellyfin
    docker system prune -a
    docker compose up -d jellyfin
    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]
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #8
    2024-11-10, 02:31 PM (This post was last modified: 2024-11-10, 02:32 PM by magguzu. Edited 1 time in total.)
    Running on a brand new container I was able to cause the server slowness after the AttachmentExtractor again.

    https://pastebin.com/kLCe2BWJ

    Are the ffmpeg logs of any value? https://pastebin.com/7iDn31yJ
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-11-10, 06:44 PM
    Can you describe the storage for this VM? Is it a virtual disk or something? And what is the storage arrangement for your media? Is it a network share? Cloud storage that is mounted with rclone?
    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]
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #10
    2024-11-11, 01:46 AM
    No problem, so the storage is an NVME SSD on a Proxmox machine with 100GB partitioned to an Ubuntu VM. Then on the Ubuntu VM the /config, /cache, and that one config file seen in the compose are mounted to the Docker container.

    Media is an NFS share from a TrueNAS RAIDZ1 pool.

    Just to be clear I've only seen this actually happen when watching One Piece, and it could be because of the ASS subtitles. When it happens it's usually about halfway through a video and the server becomes almost unusable (blue loading circle on the home screen, while media super slowly appears) almost seems like a database read issue, if I had to guess.
    Pages (2): 1 2 Next »

    « 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