Project

General

Profile

Bug #6129

TvHeadend will not start if Google DNS is not reachable

Added by Gergely Cs. almost 3 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2022-01-28
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1991~g3ed76138a
Affected Versions:

Description

This is a huge issue, I think.
If tvhe cannot reach 8.8.8.8, then it will just stay there waiting, and not starting up, not logging anything at all.
I have pinned it down by using strace:
getuid() = 107
socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 7
fcntl(7, F_GETFD) = 0
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16

This should be avoided at all.
Steps to reproduce:
- Block 8.8.8.8 in firewall
- Start TvHeadend

History

#1

Updated by Christian Hilgers almost 2 years ago

At the moment I only have IPv6 working, not IPv4 connection towards the outside. I cannot see any reason in tvheadend doing any any resolution itself, instead of letting the OS do the job.

workaround on my system with a bind running on port 53:
ip addr add 8.8.8.8/32 dev eno1
systemctl start tvheadend.service
ip addr del 8.8.8.8/32 dev eno1

Still in 4.3-2089~g5948200c7~buster

Also available in: Atom PDF