• 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 Movies hang (I/O error)

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Movies hang (I/O error)

    Movies hang (I/O error)
    galapia
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Switzerland
    #1
    2025-01-02, 10:56 PM
    Hello,

    I have a problem with my Jellyfin server (10.10.3, on Debian. NUC based on Intel N100 processor). All my movies are stored in a external USB NVMe, formated in ext4. My Jellyin is installed in a docker.

    In the Jellyfin app on AppleTV, sometime a movie hangs. In logs, I have the following error:

    [2025-01-02 12:58:41.529 +01:00] [ERR] [42] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Input/output error : '/media/Movies/xxxx.mkv'". URL "GET" "/Videos/e206384774c97cd13b2d409d661bccce/stream".
    [2025-01-02 12:58:41.529 +01:00] [ERR] [42] Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HN956HBIKBJ5"", Request id ""0HN956HBIKBJ5:00000001"": An unhandled exception was thrown by the application.
    System.InvalidOperationException: Response Content-Length mismatch: too few bytes written (25 of 1584021453).
    [2025-01-02 12:58:41.612 +01:00] [INF] [42] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Swiftfin iOS" "1.2" playing "xxxxx". Stopped at "3639000" ms
    [2025-01-02 12:58:41.728 +01:00] [INF] [27] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Swiftfin iOS" "1.2" playing "xxxxx". Stopped at "3639000" ms
    [2025-01-02 12:58:46.594 +01:00] [INF] [134] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Jellyfin_admin". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
    [2025-01-02 12:58:46.668 +01:00] [INF] [22] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Swiftfin iOS" "1.2" playing "xxxxx". Stopped at "0" ms
    [2025-01-02 12:58:48.223 +01:00] [ERR] [134] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Input/output error : '/media/Movies/xxxx.mkv'". URL "GET" "/Videos/e206384774c97cd13b2d409d661bccce/stream".

    My movies folder is shared via SAMBA, so I can access it on Windows. If I try to play the same movie directly on Windows, it crashes exactly at the same timeframe than in Jellyfin. If I reboot the server, everything works fine.

    I don't think it's a hardware USB problem. The device is almost new and, as I said, if I reboot, I'm able to read the movie... until the next crash in another movie. Strangely, it seems I have this problem only with AppleTV Jellyfin app.

    As I also cannot read the movie in Windows, I don't think it's a problem with transcoding.

    Thank you in advance for your help Smiling-face
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-01-03, 03:12 PM
    Can you share your entire jellyfin log via pastebin?
    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]
    galapia
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Switzerland
    #3
    2025-01-04, 12:15 AM
    Hello TheDreadPirate. Sure, you can find it here : https://pastebin.com/0JAtGKPN

    I hope this help
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-01-04, 06:40 PM
    When this happens, are you able to access the hard drive from the command line and see its contents? IMO, this sounds like the hard drive is going to sleep or something.
    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]
    galapia
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Switzerland
    #5
    2025-01-04, 11:23 PM
    As I can access the drive through SAMBA on Windows and read other movies, yes, the drive is not sleeping. As I said, if I try to read, on Windows, with VLC Media Player, the movie who crashed on Jellyfin, it will crash exactly at the same timeframe.

    The only way to fix the problem is to reboot the Linux server
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-01-05, 12:51 AM
    Is Jellyfin running off the same storage as the media? Can you share your docker compose?
    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]
    galapia
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Switzerland
    #7
    2025-01-05, 12:22 PM
    Jellyfin is installed in the internal NVMe of the NUC. Media are installed in the external NVMe drive, on USB.

    The compose file:
    version: "2.1"
    services:
    jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
    - PUID=0
    - PGID=0
    - TZ=Europe/Berlin
    - VERSION=docker
    volumes:
    - /home/galapia/jellyfinDocker/configConfused-faceconfig
    - /home/galapia/jellyfinDocker/cacheConfused-facecache
    - /media/externalDriveConfused-facemedia
    devices:
    - /dev/driConfused-facedev/dri
    restart: unless-stopped
    network_mode: host
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2025-01-05, 06:34 PM
    I'm assuming you mean the entire server, not just the jellyfin container. How much free space do you have on the root volume?

    What mount parameters did you use in /etc/fstab for this drive?

    And can you look in the system log for anything that stands out? It might be easier to wait until this happens again. /var/log/syslog.
    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]
    galapia
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Switzerland
    #9
    2025-01-28, 09:39 AM
    Hello,

    Sorry for this silence. I didn't change anything and the server is working fine now. No idea why.

    I will contact you again here if I have this problem again.

    Thank you for your help !
    galapia
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:Switzerland
    #10
    2025-02-03, 01:39 PM (This post was last modified: 2025-02-03, 01:46 PM by galapia. Edited 1 time in total.)
    Hello... again !

    2 days after my previous message, I had the problem again. I had a look in Linux logs and found the following errors:

    Dec 24 18:45:18 Geekcom-Jellyfin-Server systemd[1]: Starting apt-daily.service - Daily apt download activities...
    Dec 24 18:45:19 Geekcom-Jellyfin-Server systemd[1]: apt-daily.service: Deactivated successfully.
    Dec 24 18:45:19 Geekcom-Jellyfin-Server systemd[1]: Finished apt-daily.service - Daily apt download activities.
    Dec 24 18:54:44 Geekcom-Jellyfin-Server kernel: usb 3-4: reset high-speed USB device number 3 using xhci_hcd
    Dec 24 18:57:18 Geekcom-Jellyfin-Server kernel: sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=30s
    Dec 24 18:57:18 Geekcom-Jellyfin-Server kernel: sd 0:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 cf 2b 03 a0 00 00 00 20 00 00
    Dec 24 18:57:18 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3475702688 op 0x0: (READ) flags 0x80700 phys_seg 3 prio class 2
    Dec 24 18:57:49 Geekcom-Jellyfin-Server kernel: usb 3-4: reset high-speed USB device number 3 using xhci_hcd
    Dec 24 18:58:19 Geekcom-Jellyfin-Server kernel: usb 3-4: reset high-speed USB device number 3 using xhci_hcd
    Dec 24 18:58:36 Geekcom-Jellyfin-Server kernel: usb 3-4: reset high-speed USB device number 3 using xhci_hcd
    Dec 24 18:58:36 Geekcom-Jellyfin-Server kernel: usb 3-4: reset high-speed USB device number 3 using xhci_hcd
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: usb 3-4: reset high-speed USB device number 3 using xhci_hcd
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: sd 0:0:0:0: Device offlined - not ready after error recovery
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=88s
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: sd 0:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 cf 2a ff c0 00 00 00 08 00 00
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3475701696 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: sd 0:0:0:0: rejecting I/O to offline device
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3479172240 op 0x0: (READ) flags 0x80700 phys_seg 5 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3475701696 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3479172240 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3473641256 op 0x0: (READ) flags 0x80700 phys_seg 8 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3479172240 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3479172240 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3479172240 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3473641256 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:58:47 Geekcom-Jellyfin-Server kernel: I/O error, dev sda, sector 3479172240 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 2
    Dec 24 18:59:01 Geekcom-Jellyfin-Server kernel: blk_print_req_error: 8 callbacks suppressed
    ...

    This time, I was unable to read any movie in the disk. I needed to reboot the computer.

    SMART data of the disk are ok, I don't think it's a physical problem. I looks like Linux is reseting the external disk (4th line in the log)

    Any idea?!
    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