Hi everyone -
I have an existing Jellyfin installation in a docker container on my NAS, which has been up for about a month and is working great.
I just got a TV antenna connected to an HDHomeRun device, and set up TVHeadEnd in another docker image on the same NAS device. This setup seems to be working just fine - I have the TVHeadEnd plugin in Kodi and I can watch live TV and set recordings.
Now I'm trying to get the Jellyfin plugin for TVHeadEnd working, and am running into problems I have followed this guide to set the jellyfin user in TVHeadEnd, triple checked that I used all the right settings. I have the TVHeadEnd plugin enabled in Jellyfin, with the server set to 127.0.0.1, and the right login info. But it doesn't work. It looks like Jellyfin is repeatedly failing to log into TVHeadEnd, the Jellyfin interface shows a spinning wheel every few seconds but the Live TV panel shows 0 shows/0 channels.
The Jellyfin logs show these same two errors recurring every few seconds:
So it can't connect to the HTSC service. I've double checked that my TVHeadEnd instance is using the default port (9982), and I know it's working because the TVH admin panel shows Kodi connected to HTSC. So, what's going on here?
Jellyfin version: 10.10.3
TVHeadEnd version: 4.3-2375~g653bd0400
TVHeadEnd plugin version: 12.0.0.0
One further test: to make sure the two docker containers can talk to each other, I logged into the jellyfin container and pinged the TVHeadEnd HSTC port by running
When I do so, I see it pop up in the TVHeadEnd log:
So I'm convinced it's not just a networking problem. What's strange is that I am NOT seeing anything in the TVHeadEnd log when Jellyfin itself tries to connect. The pair of errors in my original post appear in the Jellyfin log about once a second, but I don't see anything appearing in the TVHeadEnd log.
I have an existing Jellyfin installation in a docker container on my NAS, which has been up for about a month and is working great.
I just got a TV antenna connected to an HDHomeRun device, and set up TVHeadEnd in another docker image on the same NAS device. This setup seems to be working just fine - I have the TVHeadEnd plugin in Kodi and I can watch live TV and set recordings.
Now I'm trying to get the Jellyfin plugin for TVHeadEnd working, and am running into problems I have followed this guide to set the jellyfin user in TVHeadEnd, triple checked that I used all the right settings. I have the TVHeadEnd plugin enabled in Jellyfin, with the server set to 127.0.0.1, and the right login info. But it doesn't work. It looks like Jellyfin is repeatedly failing to log into TVHeadEnd, the Jellyfin interface shows a spinning wheel every few seconds but the Live TV panel shows 0 shows/0 channels.
The Jellyfin logs show these same two errors recurring every few seconds:
Code:
2025-01-25 15:58:24.826 -08:00] [ERR] [21] TVHeadEnd.HTSP.HTSConnectionAsync: [TVHclient] HTSConnectionAsync.open: exception caught
System.Net.Sockets.SocketException (111): Connection refused [::1]:9982
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at TVHeadEnd.HTSP.HTSConnectionAsync.open(String hostname, Int32 port)
[2025-01-25 15:58:25.086 -08:00] [ERR] [53] TVHeadEnd.HTSP.HTSConnectionAsync: [TVHclient] HTSConnectionAsync.open: exception caught
System.Net.Sockets.SocketException (111): Connection refused [::1]:9982
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at TVHeadEnd.HTSP.HTSConnectionAsync.open(String hostname, Int32 port)
So it can't connect to the HTSC service. I've double checked that my TVHeadEnd instance is using the default port (9982), and I know it's working because the TVH admin panel shows Kodi connected to HTSC. So, what's going on here?
Jellyfin version: 10.10.3
TVHeadEnd version: 4.3-2375~g653bd0400
TVHeadEnd plugin version: 12.0.0.0
One further test: to make sure the two docker containers can talk to each other, I logged into the jellyfin container and pinged the TVHeadEnd HSTC port by running
curl 127.0.0.1:9982
.When I do so, I see it pop up in the TVHeadEnd log:
2025-01-25 16:03:23.123 htsp: Got connection from 127.0.0.1
2025-01-25 16:03:23.123 htsp: 127.0.0.1: Disconnected
So I'm convinced it's not just a networking problem. What's strange is that I am NOT seeing anything in the TVHeadEnd log when Jellyfin itself tries to connect. The pair of errors in my original post appear in the Jellyfin log about once a second, but I don't see anything appearing in the TVHeadEnd log.