Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jellyfin stuck at deploying after newest update #2476

Closed
Dani3lSun opened this issue May 15, 2024 · 4 comments
Closed

Jellyfin stuck at deploying after newest update #2476

Dani3lSun opened this issue May 15, 2024 · 4 comments
Assignees

Comments

@Dani3lSun
Copy link

Dani3lSun commented May 15, 2024

Since the last update happened this night the Jellyfin app is stuck at deploying. Logs says that the binding address/port is already in use, but at least the host is not using that port (verified with netstat -tulpn | grep LISTEN )...Can't get a working shell into the container, so can't really check if the process using that port is running or not.

Container log:

...
2024-05-15 11:00:54.842970+02:00[09:00:54] [ERR] [1] Microsoft.Extensions.Hosting.Internal.Host: Hosting failed to start
2024-05-15 11:00:54.843009+02:00System.IO.IOException: Failed to bind to address http://192.168.1.35:8096: address already in use.
2024-05-15 11:00:54.843073+02:00---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
2024-05-15 11:00:54.843092+02:00---> System.Net.Sockets.SocketException (98): Address already in use
2024-05-15 11:00:54.843099+02:00at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
2024-05-15 11:00:54.843105+02:00at System.Net.Sockets.Socket.Bind(EndPoint localEP)
2024-05-15 11:00:54.843112+02:00at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
2024-05-15 11:00:54.843147+02:00at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
...
2024-05-15 11:00:54.843303+02:00[09:00:54] [ERR] [1] Main: Kestrel failed to start! This is most likely due to an invalid address or port bind - correct your bind configuration in network.xml and try again
2024-05-15 11:00:54.843309+02:00[09:00:54] [FTL] [1] Main: Error while starting server
2024-05-15 11:00:54.843319+02:00System.IO.IOException: Failed to bind to address http://192.168.1.35:8096: address already in use.
...

Output of midclt call chart.release.get_instance jellyfin | jq '.config':

{
  "global": {
    "ixChartContext": {
      "addNvidiaRuntimeClass": false,
      "hasNFSCSI": true,
      "hasSMBCSI": true,
      "isInstall": false,
      "isStopped": false,
      "isUpdate": true,
      "isUpgrade": false,
      "kubernetes_config": {
        "cluster_cidr": "172.16.0.0/16",
        "cluster_dns_ip": "172.17.0.10",
        "service_cidr": "172.17.0.0/16"
      },
      "nfsProvisioner": "nfs.csi.k8s.io",
      "nvidiaRuntimeClassName": "nvidia",
      "operation": "UPDATE",
      "smbProvisioner": "smb.csi.k8s.io",
      "storageClassName": "ix-storage-class-jellyfin",
      "upgradeMetadata": {}
    }
  },
  "image": {
    "pullPolicy": "IfNotPresent",
    "repository": "jellyfin/jellyfin",
    "tag": "10.9.1"
  },
  "ixCertificateAuthorities": {},
  "ixCertificates": {},
  "ixChartContext": {
    "addNvidiaRuntimeClass": false,
    "hasNFSCSI": true,
    "hasSMBCSI": true,
    "isInstall": false,
    "isStopped": false,
    "isUpdate": true,
    "isUpgrade": false,
    "kubernetes_config": {
      "cluster_cidr": "172.16.0.0/16",
      "cluster_dns_ip": "172.17.0.10",
      "service_cidr": "172.17.0.0/16"
    },
    "nfsProvisioner": "nfs.csi.k8s.io",
    "nvidiaRuntimeClassName": "nvidia",
    "operation": "UPDATE",
    "smbProvisioner": "smb.csi.k8s.io",
    "storageClassName": "ix-storage-class-jellyfin",
    "upgradeMetadata": {}
  },
  "ixExternalInterfacesConfiguration": [],
  "ixExternalInterfacesConfigurationNames": [],
  "ixVolumes": [],
  "jellyfinConfig": {
    "additionalEnvs": [],
    "publishServerUrl": "",
    "publishedServerUrl": ""
  },
  "jellyfinGPU": {
    "amd.com/gpu": 0,
    "gpu.intel.com/i915": 0,
    "nvidia.com/gpu": 0
  },
  "jellyfinNetwork": {
    "hostNetwork": true,
    "webPort": 30013
  },
  "jellyfinRunAs": {
    "group": 568,
    "user": 568
  },
  "jellyfinStorage": {
    "additionalStorages": [
      {
        "hostPathConfig": {
          "aclEnable": false,
          "hostPath": "/mnt/storage-pool/archive/Movies"
        },
        "mountPath": "/mnt/archive/movies",
        "readOnly": true,
        "type": "hostPath"
      },
      {
        "hostPathConfig": {
          "aclEnable": false,
          "hostPath": "/mnt/storage-pool/archive/Music"
        },
        "mountPath": "/mnt/archive/music",
        "readOnly": true,
        "type": "hostPath"
      },
      {
        "hostPathConfig": {
          "aclEnable": false,
          "hostPath": "/mnt/storage-pool/share/music"
        },
        "mountPath": "/mnt/share/music",
        "readOnly": true,
        "type": "hostPath"
      },
      {
        "hostPathConfig": {
          "aclEnable": false,
          "hostPath": "/mnt/storage-pool/share/kids"
        },
        "mountPath": "/mnt/share/kids",
        "readOnly": true,
        "type": "hostPath"
      }
    ],
    "cache": {
      "hostPathConfig": {
        "aclEnable": false,
        "hostPath": "/mnt/storage-pool/apps/jellyfin/cache"
      },
      "ixVolumeConfig": {
        "datasetName": "cache"
      },
      "type": "hostPath"
    },
    "config": {
      "hostPathConfig": {
        "aclEnable": false,
        "hostPath": "/mnt/storage-pool/apps/jellyfin/config"
      },
      "ixVolumeConfig": {
        "datasetName": "config"
      },
      "type": "hostPath"
    },
    "transcodes": {
      "hostPathConfig": {
        "aclEnable": false,
        "hostPath": "/mnt/storage-pool/apps/jellyfin/transcode"
      },
      "ixVolumeConfig": {
        "datasetName": "transcodes"
      },
      "type": "hostPath"
    }
  },
  "release_name": "jellyfin",
  "resources": {
    "limits": {
      "cpu": "4000m",
      "memory": "5Gi"
    }
  }
}

And the network.xml of Jellyfin looks like this (nothing changed here):

<?xml version="1.0" encoding="utf-8"?>
<NetworkConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BaseUrl />
  <EnableHttps>true</EnableHttps>
  <RequireHttps>true</RequireHttps>
  <CertificatePath>/config/ssl/combined.p12</CertificatePath>
  <CertificatePassword />
  <InternalHttpPort>8096</InternalHttpPort>
  <InternalHttpsPort>8920</InternalHttpsPort>
  <PublicHttpPort>8096</PublicHttpPort>
  <PublicHttpsPort>8920</PublicHttpsPort>
  <AutoDiscovery>true</AutoDiscovery>
  <EnableUPnP>false</EnableUPnP>
  <EnableIPv4>true</EnableIPv4>
  <EnableIPv6>false</EnableIPv6>
  <EnableRemoteAccess>true</EnableRemoteAccess>
  <LocalNetworkSubnets />
  <LocalNetworkAddresses />
  <KnownProxies />
  <IgnoreVirtualInterfaces>true</IgnoreVirtualInterfaces>
  <VirtualInterfaceNames>
    <string>veth</string>
  </VirtualInterfaceNames>
  <EnablePublishedServerUriByRequest>false</EnablePublishedServerUriByRequest>
  <PublishedServerUriBySubnet />
  <RemoteIPFilter />
  <IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>
</NetworkConfiguration>
@Dani3lSun
Copy link
Author

Might be related to jellyfin/jellyfin#11557

@stavros-k
Copy link
Contributor

Yes, seems to be related.
Try disabling hostnetwork, let it start, then re-enable hostnetwork.

It should work with disabled hostnet, but if re-enabling it does not still, you are "stuck" until new version of Jellyfin is released.

@Dani3lSun
Copy link
Author

Yes works with disabled hostnet, at least it's a temp. workaround for now. Let's see when a update of upstream Jellyfin is made available. Thanks for the help!

@stavros-k
Copy link
Contributor

I'll go ahead and close this, as its not much we can do on our side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants