Jellyfin Forum
Jellyfin service won't start (out of memory) - 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: Jellyfin service won't start (out of memory) (/t-jellyfin-service-won-t-start-out-of-memory)



Jellyfin service won't start (out of memory) - ZephyrFox - 2024-02-17

Hi there. I'm getting started with Jellyfin and installed it via the official install script for Ubuntu. Install seemed to go fine, but the service was not running after install. I tried starting the service a few times (no luck) and then rebooted the server and tried again. Still no dice.

Looking at the logs, it looks as if it runs out of memory almost instantaneously? Server has 11GB free, so I'm not sure about that. I did trying editing the service file to have it run as root in case there was some sort of permissions issue. The only thing I can think that is unusual is the usage of mediatree for the TV tuner.

I did try the docker container. That did run, but it didn't see my video card or my tuner. I'm not sure what steps I'd need to take to get my them accessible in the container.

I've included my system information and some of the logs below. Interestingly, jellyfin --version immediately runs out of memory as well, but apt info jellyfin does show the version (10.8.13-1).


root@asdf:~# uname -v
#0+mediatree+hauppauge~hwe-Ubuntu SMP PREEMPT_DYNAMIC Fri Dec 15

root@asdf:~# neofetch
            .-/+oossssoo+/-.              root@asdf
       
:+ssssssssssssssssss+:          -----------
      -+ssssssssssssssssssyyssss+-        OS: Ubuntu 22.04.4 LTS x86_64
    .ossssssssssssssssssdMMMNysssso.      Host: C9Z490-PG 0123456789
  /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.5.0-142312122121-generic
  +ssssssssshmydMMMMMMMNddddyssssssss+    Uptime: 1 hour, 6 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 1777 (dpkg), 6 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss.  Shell: bash 5.1.16
+sssshhhyNMMNyssssssssssssyNMMMysssssss+  CPU: Intel i7-10700K (16) @ 5.000GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso  GPU: NVIDIA GeForce GTX 1080
ossyNMMMNyMMhsssssssssssssshmmmhssssssso  Memory: 600MiB / 15872MiB
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
  +sssssssssdmydMMMMMMMMddddyssssssss+
  /ssssssssssshdmNNNNmyNMMMMhssssss/
    .ossssssssssssssssssdMMMNysssso.
      -+sssssssssssssssssyyyssss+-
       
:+ssssssssssssssssss+:
            .-/+oossssoo+/-.

root@asdf:~# free -h
              total        used        free      shared  buff/cache  available
Mem:            15Gi      593Mi        11Gi      1.0Mi      3.0Gi        14Gi
Swap:          4.0Gi          0B      4.0Gi

root@asdf:~# jellyfin --version
Out of memory.
Aborted (core dumped)

root@asdf:~# apt info jellyfin
Package: jellyfin
Version: 10.8.13-1
Priority: optional
Section: misc
Maintainer: Jellyfin Packaging Team <packaging@jellyfin.org>
Installed-Size: 9216 B
Depends: jellyfin-server (>= 10.8.13-1), jellyfin-web (>= 10.8.13-1), jellyfin-ffmpeg5 (>= 5.0.0)
Homepage: https://jellyfin.org
Download-Size: 2284 B
APT-Manual-Installed: yes
APT-Sources: https://repo.jellyfin.org/ubuntu jammy/main amd64 Packages
Description: Provides the Jellyfin Free Software Media System
Provides the full Jellyfin experience, including both the server and web interface.

root@asdf:~# tail -n20 /var/log/syslog
Feb 16 21:58:21 asdf jellyfin[9126]: Out of memory.
Feb 16 21:58:21 asdf systemd[1]: jellyfin.service: Main process exited, code=dumped, status=6/ABRT
Feb 16 21:58:21 asdf systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Feb 16 21:58:21 asdf systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 3.
Feb 16 21:58:21 asdf systemd[1]: Stopped Jellyfin Media Server.
Feb 16 21:58:21 asdf systemd[1]: Started Jellyfin Media Server.
Feb 16 21:58:21 asdf jellyfin[9134]: Out of memory.
Feb 16 21:58:21 asdf systemd[1]: jellyfin.service: Main process exited, code=dumped, status=6/ABRT
Feb 16 21:58:21 asdf systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Feb 16 21:58:22 asdf systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 4.
Feb 16 21:58:22 asdf systemd[1]: Stopped Jellyfin Media Server.
Feb 16 21:58:22 asdf systemd[1]: Started Jellyfin Media Server.
Feb 16 21:58:22 asdf jellyfin[9142]: Out of memory.
Feb 16 21:58:22 asdf systemd[1]: jellyfin.service: Main process exited, code=dumped, status=6/ABRT
Feb 16 21:58:22 asdf systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Feb 16 21:58:22 asdf systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Feb 16 21:58:22 asdf systemd[1]: Stopped Jellyfin Media Server.
Feb 16 21:58:22 asdf systemd[1]: jellyfin.service: Start request repeated too quickly.
Feb 16 21:58:22 asdf systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Feb 16 21:58:22 asdf systemd[1]: Failed to start Jellyfin Media Server.

root@asdf:~# systemctl status jellyfin
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: failed (Result: core-dump) since Fri 2024-02-16 22:09:50 CST; 2s ago
    Process: 9961 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=dumped, signal=ABRT)
  Main PID: 9961 (code=dumped, signal=ABRT)
        CPU: 33ms

Feb 16 22:09:50 asdf systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Feb 16 22:09:50 asdf systemd[1]: Stopped Jellyfin Media Server.
Feb 16 22:09:50 asdf systemd[1]: jellyfin.service: Start request repeated too quickly.
Feb 16 22:09:50 asdf systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Feb 16 22:09:50 asdf systemd[1]: Failed to start Jellyfin Media Server.



RE: Jellyfin service won't start (out of memory) - TheDreadPirate - 2024-02-17

Are you using a non-standard kernel? The current KWE kernel for 22.04.4 is 6.5.0-18-generic. Yours is 6.5.0-142312122121-generic. And your uname -v returned 0+mediatree+hauppauge~hwe-Ubuntu. Mine returns 18~22.04.1-Ubuntu


RE: Jellyfin service won't start (out of memory) - ZephyrFox - 2024-02-17

Yes, I'm using the mediatree/hauppauge/hwe version for my Hauppauge tuner. It's the latest release available: https://launchpad.net/~b-rad/+archive/ubuntu/kernel+mediatree+hauppauge. Installed following the instructions there and from: https://www.hauppauge.com/pages/support/support_linux.html

The tuner doesn't seem to work without this flavor kernel. Either that or I'm missing something else. In the past (years ago), I had Plex running with it (on an older kernel version though) and was able to watch live tv fine. One of the reasons I'm moving to Jellyfin is because the live tv functionality in Plex is rather garbage now- it will detect channels and build the guide fine, but it will only play channels about 10% of the time.


RE: Jellyfin service won't start (out of memory) - joshuaboniface - 2024-02-17

That's a strange one. I suspect the "out of memory" is a symptom of the program trying to allocate memory and getting denied for some reason, rather than it actually being out of memory per se. Is there anything in dmesg from the kernel when it dies?


RE: Jellyfin service won't start (out of memory) - ZephyrFox - 2024-02-17

I checked dmesg and it doesn't look like anything to me, but I'm not an expert on interpreting the results. I've included the full output below. Before running this, I rebooted the server again just to make sure everything is 'clean'. I've had to trim the dmesg output due to posting limits, full output here: https://pastebin.com/KypQLLpx.


root@asdf:~# systemctl status jellyfin
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: failed (Result: core-dump) since Sat 2024-02-17 14:04:31 CST; 2min 15s ago
    Process: 2145 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=dumped, signal=ABRT)
  Main PID: 2145 (code=dumped, signal=ABRT)
        CPU: 26ms

Feb 17 14:04:31 asdf systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Feb 17 14:04:31 asdf systemd[1]: Stopped Jellyfin Media Server.
Feb 17 14:04:31 asdf systemd[1]: jellyfin.service: Start request repeated too quickly.
Feb 17 14:04:31 asdf systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Feb 17 14:04:31 asdf systemd[1]: Failed to start Jellyfin Media Server.
root@asdf:~# dmesg -T
=== SNIP ===
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:    dig-out=0x1e/0x0
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[Sat Feb 17 14:04:18 2024] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
[Sat Feb 17 14:04:18 2024] intel_tcc_cooling: Programmable TCC Offset detected
[Sat Feb 17 14:04:18 2024] intel_rapl_common: Found RAPL domain package
[Sat Feb 17 14:04:18 2024] intel_rapl_common: Found RAPL domain core
[Sat Feb 17 14:04:18 2024] intel_rapl_common: Found RAPL domain dram
[Sat Feb 17 14:04:18 2024] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input8
[Sat Feb 17 14:04:18 2024] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9
[Sat Feb 17 14:04:18 2024] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
[Sat Feb 17 14:04:18 2024] input: HDA Intel PCH Line Out Front as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11
[Sat Feb 17 14:04:18 2024] input: HDA Intel PCH Line Out Surround as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
[Sat Feb 17 14:04:18 2024] input: HDA Intel PCH Line Out CLFE as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[Sat Feb 17 14:04:18 2024] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[Sat Feb 17 14:04:18 2024] mceusb 1-4:1.0: long-range (0x1) receiver active
[Sat Feb 17 14:04:18 2024] mceusb 1-4:1.0: Registered Hauppauge Hauppauge Device with mce emulator interface version 1
[Sat Feb 17 14:04:18 2024] mceusb 1-4:1.0: 2 tx ports (0x3 cabled) and 2 rx sensors (0x1 active)
[Sat Feb 17 14:04:18 2024] usbcore: registered new interface driver mceusb
[Sat Feb 17 14:04:18 2024] mc: Linux media interface: v0.10
[Sat Feb 17 14:04:18 2024] videodev: Linux video capture interface: v2.00
[Sat Feb 17 14:04:18 2024] cx231xx 1-4:1.1: New device Hauppauge Hauppauge Device @ 480 Mbps (2040:b150) with 7 interfaces
[Sat Feb 17 14:04:18 2024] cx231xx 1-4:1.1: Identified as Hauppauge WinTV-HVR-975 (card=27)
[Sat Feb 17 14:04:18 2024] i2c i2c-2: Added multiplexed i2c bus 4
[Sat Feb 17 14:04:18 2024] i2c i2c-2: Added multiplexed i2c bus 5
[Sat Feb 17 14:04:19 2024] cx25840 1-0044: cx23102 A/V decoder found @ 0x88 (cx231xx #0-0)
[Sat Feb 17 14:04:21 2024] cx25840 1-0044: loaded v4l-cx231xx-avcore-01.fw firmware (16382 bytes)
[Sat Feb 17 14:04:21 2024] tveeprom: Hauppauge model 111500, rev G1I6, serial# 4036153746
[Sat Feb 17 14:04:21 2024] tveeprom: MAC address is 00:0d:fe:92:d1:92
[Sat Feb 17 14:04:21 2024] tveeprom: tuner model is SiLabs Si2157 (idx 186, type 4)
[Sat Feb 17 14:04:21 2024] tveeprom: TV standards PAL(B/G) NTSC(M) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xfc)
[Sat Feb 17 14:04:21 2024] tveeprom: audio processor is CX23102 (idx 47)
[Sat Feb 17 14:04:21 2024] tveeprom: decoder processor is CX23102 (idx 46)
[Sat Feb 17 14:04:21 2024] tveeprom: has no radio, has IR receiver, has no IR transmitter
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: v4l2 driver version 0.0.3
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: Registered video device video0 [v4l2]
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: Registered VBI device vbi0
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: video EndPoint Addr 0x84, Alternate settings: 5
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: VBI EndPoint Addr 0x85, Alternate settings: 2
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: sliced CC EndPoint Addr 0x86, Alternate settings: 2
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: TS EndPoint Addr 0x81, Alternate settings: 6
[Sat Feb 17 14:04:21 2024] usbcore: registered new interface driver cx231xx
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: audio EndPoint Addr 0x83, Alternate settings: 3
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: Cx231xx Audio Extension initialized
[Sat Feb 17 14:04:21 2024] i2c i2c-5: Added multiplexed i2c bus 6
[Sat Feb 17 14:04:21 2024] lgdt3306a 5-0059: LG Electronics LGDT3306A successfully identified
[Sat Feb 17 14:04:21 2024] i2c i2c-6: Added multiplexed i2c bus 7
[Sat Feb 17 14:04:21 2024] si2168 6-0064: Silicon Labs Si2168-B40 successfully identified
[Sat Feb 17 14:04:21 2024] si2168 6-0064: firmware version: B 4.0.2
[Sat Feb 17 14:04:21 2024] si2157 6-0060: Silicon Labs Si2157 successfully attached
[Sat Feb 17 14:04:21 2024] dvbdev: DVB: registering new adapter (cx231xx #0)
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: DVB: registering adapter 0 frontend 0 (LG Electronics LGDT3306A VSB/QAM Frontend)...
[Sat Feb 17 14:04:21 2024] dvbdev: dvb_create_media_entity: media entity 'LG Electronics LGDT3306A VSB/QAM Frontend' registered.
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: DVB: registering adapter 0 frontend 1 (Silicon Labs Si2168)...
[Sat Feb 17 14:04:21 2024] dvbdev: dvb_create_media_entity: media entity 'Silicon Labs Si2168' registered.
[Sat Feb 17 14:04:21 2024] dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: Successfully loaded cx231xx-dvb
[Sat Feb 17 14:04:21 2024] cx231xx 1-4:1.1: Cx231xx dvb Extension initialized
[Sat Feb 17 14:04:24 2024] atlantic 0000:07:00.0 eno1: atlantic: link change old 0 new 10000
[Sat Feb 17 14:04:29 2024] FS-Cache: Loaded
[Sat Feb 17 14:04:29 2024] NFS: Registering the id_resolver key type
[Sat Feb 17 14:04:29 2024] Key type id_resolver registered
[Sat Feb 17 14:04:29 2024] Key type id_legacy registered
[Sat Feb 17 14:04:29 2024] kauditd_printk_skb: 12 callbacks suppressed
[Sat Feb 17 14:04:29 2024] audit: type=1400 audit(1708200270.119:23): apparmor="STATUS" operation="profile_load" profile="unconfined" name="docker-default" pid=1191 comm="apparmor_parser"
[Sat Feb 17 14:04:30 2024] evict_inodes inode 00000000d954ea89, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 0000000029b75bee, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 00000000ac533e94, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 000000000d05f790, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 00000000c6e3eeef, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 00000000f8bf2c8e, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 000000001f141eba, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 000000009330fded, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] evict_inodes inode 0000000014feeb77, i_count = 1, was skipped!
[Sat Feb 17 14:04:30 2024] loop9: detected capacity change from 0 to 8
[Sat Feb 17 14:04:30 2024] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[Sat Feb 17 14:04:30 2024] Bridge firewalling registered
[Sat Feb 17 14:04:30 2024] atlantic 0000:07:00.0 eno1: atlantic: link change old 10000 new 0
[Sat Feb 17 14:04:30 2024] Initializing XFRM netlink socket
[Sat Feb 17 14:04:31 2024] br-e3356d1ef21b: port 1(veth2352f48) entered blocking state
[Sat Feb 17 14:04:31 2024] br-e3356d1ef21b: port 1(veth2352f48) entered disabled state
[Sat Feb 17 14:04:31 2024] veth2352f48: entered allmulticast mode
[Sat Feb 17 14:04:31 2024] veth2352f48: entered promiscuous mode
[Sat Feb 17 14:04:31 2024] br-e3356d1ef21b: port 1(veth2352f48) entered blocking state
[Sat Feb 17 14:04:31 2024] br-e3356d1ef21b: port 1(veth2352f48) entered forwarding state
[Sat Feb 17 14:04:31 2024] br-e3356d1ef21b: port 1(veth2352f48) entered disabled state
[Sat Feb 17 14:04:31 2024] docker0: port 1(vethe767581) entered blocking state
[Sat Feb 17 14:04:31 2024] docker0: port 1(vethe767581) entered disabled state
[Sat Feb 17 14:04:31 2024] vethe767581: entered allmulticast mode
[Sat Feb 17 14:04:31 2024] vethe767581: entered promiscuous mode
[Sat Feb 17 14:04:31 2024] docker0: port 1(vethe767581) entered blocking state
[Sat Feb 17 14:04:31 2024] docker0: port 1(vethe767581) entered forwarding state
[Sat Feb 17 14:04:31 2024] docker0: port 1(vethe767581) entered disabled state
[Sat Feb 17 14:04:31 2024] eth0: renamed from vethca3a855
[Sat Feb 17 14:04:31 2024] docker0: port 1(vethe767581) entered blocking state
[Sat Feb 17 14:04:31 2024] docker0: port 1(vethe767581) entered forwarding state
[Sat Feb 17 14:04:31 2024] eth0: renamed from veth6552a7d
[Sat Feb 17 14:04:31 2024] br-e3356d1ef21b: port 1(veth2352f48) entered blocking state
[Sat Feb 17 14:04:31 2024] br-e3356d1ef21b: port 1(veth2352f48) entered forwarding state
[Sat Feb 17 14:04:31 2024] evict_inodes inode 00000000825d9768, i_count = 1, was skipped!
[Sat Feb 17 14:04:31 2024] evict_inodes inode 00000000b11dc421, i_count = 1, was skipped!
[Sat Feb 17 14:04:31 2024] evict_inodes inode 0000000004627fcc, i_count = 1, was skipped!
[Sat Feb 17 14:04:31 2024] evict_inodes inode 00000000a4d038b7, i_count = 1, was skipped!
[Sat Feb 17 14:04:31 2024] evict_inodes inode 000000003dd504e9, i_count = 1, was skipped!
[Sat Feb 17 14:04:31 2024] platform INT3515:01: deferred probe pending
[Sat Feb 17 14:04:36 2024] atlantic 0000:07:00.0 eno1: atlantic: link change old 0 new 10000