Project

General

Profile

Tvheadend running but ports 9981 9982 closed

Added by Atze Z over 10 years ago

Hi, I was wondering if anyone has any idea how I could determine the cause of my problem with tvheadend. I installed the hts-tvheadend package on ubuntu minimal 10.10 from ppa:lars-opdenkamp/xbmc-pvr. After restarting the system I see that the tvheadend process is running but I cannot establish a connection to http://localhost:9981. BTW, I do all the tests on a single machine so there shouldn't be any problem with the firewall. Furthermore, when I run 'netstat -an' the ports (9981, 9982) used by tvheadend do not appear in the list of open ports (actually netstat does not report any tvheadend related ports).

Actually, initially I tested my system with VDR 1.7.16 + VNSI + XBMC 10.0 and everything was working fine (except the stability problem most probably caused by VNSI), but now I wanted to give tvheadend a try. But since the VDR + VNSI + XBMC configuration was working ok, I would assume that the necessary hardware drivers are loaded correctly.

Did any of you came across a similar problem, i.e. tvheadend process is running but neither the 9981 nor the 9982 port is open? Alternatively, if I post a tvheadend debug log, could it help to track down the problem?

Edit: OK, syslog says "comm: tvheadend Tainted" and the ps command shows tvheadend as [defunct]. I think I will have to debug tvheadend in order to figure out what goes wrong and why tvheadend dies :-(

Edit 2: To give some background info first: I installed the latest mercurial s2liplianin driver since my Tevii S464 PCI card wasn't initially supported by the kernel in Ubuntu 10.10.

After debugging a few minutes, I got a bit further with this but still don't have a clue what the problem is. Things go wrong in the "v4l_adapter_check" function, specifically when the statement "r = ioctl(fd, VIDIOC_QUERYCAP, &caps);" is executed. So, the V4L driver might cause the problem, or at least it seems to be related to it.

cheers,
atze


Replies (3)

RE: Tvheadend running but ports 9981 9982 closed - Added by Andreas Smas over 10 years ago

If you build the source yourself you can do

./configure --disable-v4l

to get rid of any video4linux problems you might have

RE: Tvheadend running but ports 9981 9982 closed - Added by Atze Z over 10 years ago

Thanks a lot. Using the --disable-v4l option and compiling afterward did the trick.

BTW, can you please tell me what the advantage/disadvantage is to have v4l enable or not.

RE: Tvheadend running but ports 9981 9982 closed - Added by Andreas Smas over 10 years ago

You need V4L it if you are using analogue video. V4L is the name of the kernel API. If you only use DVB or IPTV you can safely run without it.

    (1-3/3)