Jellyfin Forum
Official jellyfin on truens scale - 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: Official jellyfin on truens scale (/t-official-jellyfin-on-truens-scale)



Official jellyfin on truens scale - IllSkillz - 2023-10-05

Im trying to setup jellyfin from a docker hub and not from truenas apps. The reason for it is that I need to use an unique ip for my jellyfin server. Jellyfin is failing to start with an error:
Error: failed to start container "ix-chart": Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy' nvidia-container-cli: initialization error: nvml error: driver not loaded: unknown
It seems that it's trying to load nvidia drivers but there's basically no gpu in the system. Is there a way to disable gpu support in that jellyfin version? Or is there any other workaround?


RE: Official jellyfin on truens scale - TheDreadPirate - 2023-10-05

What does your docker config look like? It shouldn't be trying to load nvidia runtimes unless told to do so.


RE: Official jellyfin on truens scale - IllSkillz - 2023-10-05

gpu setting in truenas container creation gui is blanked
Code:
[
    {
        "Id": "413dd028e9c078f2129edc1fd15f4e910a09873a370a06ed64f079b3e52434ef",
        "Created": "2023-10-05T20:10:52.447920147Z",
        "Path": "/pause",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 1975293,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2023-10-05T20:10:53.038963982Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:6270bb605e12e581514ada5fd5b3216f727db55dc87d5889c790e4c760683fee",
        "ResolvConfPath": "/mnt/TheVault/ix-applications/docker/containers/413dd028e9c078f2129edc1fd15f4e910a09873a370a06ed64f079b3e52434ef/resolv.conf",
        "HostnamePath": "/mnt/TheVault/ix-applications/docker/containers/413dd028e9c078f2129edc1fd15f4e910a09873a370a06ed64f079b3e52434ef/hostname",
        "HostsPath": "/mnt/TheVault/ix-applications/docker/containers/413dd028e9c078f2129edc1fd15f4e910a09873a370a06ed64f079b3e52434ef/hosts",
        "LogPath": "/mnt/TheVault/ix-applications/docker/containers/413dd028e9c078f2129edc1fd15f4e910a09873a370a06ed64f079b3e52434ef/413dd028e9c078f2129edc1fd15f4e910a09873a370a06ed64f079b3e52434ef-json.log",
        "Name": "/k8s_POD_jellyfin-ix-chart-996cb9d5-hmhtp_ix-jellyfin_4a4352e8-dd90-4113-a683-572060807f17_0",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "none",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "shareable",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": -998,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [
                "no-new-privileges"
            ],
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "nvidia",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 2,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "/kubepods/besteffort/pod4a4352e8-dd90-4113-a683-572060807f17",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/mnt/TheVault/ix-applications/docker/overlay2/665b48e38a45f07f7e97d6d2efedb98ea1817f0bdcc30077074b12ff64d85adb-init/diff:/mnt/TheVault/ix-applications/docker/overlay2/84425322223ea0cd2a2f208778fcfca675833cea5e981f0a61706e91f5696c3e/diff",
                "MergedDir": "/mnt/TheVault/ix-applications/docker/overlay2/665b48e38a45f07f7e97d6d2efedb98ea1817f0bdcc30077074b12ff64d85adb/merged",
                "UpperDir": "/mnt/TheVault/ix-applications/docker/overlay2/665b48e38a45f07f7e97d6d2efedb98ea1817f0bdcc30077074b12ff64d85adb/diff",
                "WorkDir": "/mnt/TheVault/ix-applications/docker/overlay2/665b48e38a45f07f7e97d6d2efedb98ea1817f0bdcc30077074b12ff64d85adb/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [],
        "Config": {
            "Hostname": "jellyfin-ix-chart-996cb9d5-hmhtp",
            "Domainname": "",
            "User": "65535:65535",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": null,
            "Image": "rancher/mirrored-pause:3.6",
            "Volumes": null,
            "WorkingDir": "/",
            "Entrypoint": [
                "/pause"
            ],
            "OnBuild": null,
            "Labels": {
                "annotation.kubernetes.io/config.seen": "2023-10-05T23:10:52.097035803+03:00",
                "annotation.kubernetes.io/config.source": "api",
                "annotation.rollme": "46nEK",
                "app.kubernetes.io/instance": "jellyfin",
                "app.kubernetes.io/name": "ix-chart",
                "io.kubernetes.container.name": "POD",
                "io.kubernetes.docker.type": "podsandbox",
                "io.kubernetes.pod.name": "jellyfin-ix-chart-996cb9d5-hmhtp",
                "io.kubernetes.pod.namespace": "ix-jellyfin",
                "io.kubernetes.pod.uid": "4a4352e8-dd90-4113-a683-572060807f17",
                "pod-template-hash": "996cb9d5"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "8c6766a1413101bebd0348a727641f89db77f54e7ebc2d489612ed4435f6e543",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "/var/run/docker/netns/8c6766a14131",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "none": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "27cda3f08803d22009bd5d3ba6d2c9f886a394d2789302ed209303e808c52cac",
                    "EndpointID": "1a18721efbd2400e475b66e6edf0e33857a3a46193381686124cc09c281c7237",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "",
                    "DriverOpts": null
                }
            }
        }
    }
]



RE: Official jellyfin on truens scale - TheDreadPirate - 2023-10-05

Code:
"UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "nvidia",

Looks like your config is telling it to load Nvidia runtimes.


RE: Official jellyfin on truens scale - IllSkillz - 2023-10-05

is it possible to change Runtime parameter in truenas scale docker? I have tried setting env vars NVIDIA_VISIBLE_DEVICES and NVIDIA_DRIVER_CAPABILITIES to 0, I also disabled gpu support in kubernetes Settings, that doesn't helped


RE: Official jellyfin on truens scale - TheDreadPirate - 2023-10-05

I don't use TrueNAS and a much smaller percent of people here use it. It may be better, and quicker, to ask that kind of question on a TrueNAS forum or subreddit since your problem is rooted in configuring TrueNAS. Not Jellyfin, specifically. This way you are not waiting for one of the few TrueNAS users here to maybe see your post.


RE: Official jellyfin on truens scale - IllSkillz - 2023-10-05

got it. Thanks