![]() |
Movies hang (I/O error) - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: Movies hang (I/O error) (/t-movies-hang-i-o-error) Pages:
1
2
|
Movies hang (I/O error) - galapia - 2025-01-02 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 ![]() RE: Movies hang (I/O error) - TheDreadPirate - 2025-01-03 Can you share your entire jellyfin log via pastebin? RE: Movies hang (I/O error) - galapia - 2025-01-04 Hello TheDreadPirate. Sure, you can find it here : https://pastebin.com/0JAtGKPN I hope this help RE: Movies hang (I/O error) - TheDreadPirate - 2025-01-04 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. RE: Movies hang (I/O error) - galapia - 2025-01-04 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 RE: Movies hang (I/O error) - TheDreadPirate - 2025-01-05 Is Jellyfin running off the same storage as the media? Can you share your docker compose? RE: Movies hang (I/O error) - galapia - 2025-01-05 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/config ![]() - /home/galapia/jellyfinDocker/cache ![]() - /media/externalDrive ![]() devices: - /dev/dri ![]() restart: unless-stopped network_mode: host RE: Movies hang (I/O error) - TheDreadPirate - 2025-01-05 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. RE: Movies hang (I/O error) - galapia - 2025-01-28 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 ! RE: Movies hang (I/O error) - galapia - 2025-02-03 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?! |