Tinc hangs if started with network disconnected
mail at azulinho.com
Fri Feb 17 11:07:43 CET 2017
I use systemd or monitd scripts to check if the tinc vpn nodes are pingable
and simply restart the tinc daemon if they're not.
In my case I have i have a complicated dns setup where at tinc boot time
DNS is not yet resolving by the time tinc starts. A simple ping check on
the fqdn for the master nodes does the job.
On 17 Feb 2017 9:45 am, "Sandro Stiller" <sandro.stiller at elfin.de> wrote:
On my system, tinc is started on bootup.
If the Network cable is not connected, tincd hangs forever after these
2017-02-13 11:34:01 tinc.XXX: tincd 1.0.31 starting, debug level 5
2017-02-13 11:34:01 tinc.XXX: /dev/net/tun is a Linux tun/tap device
2017-02-13 11:34:01 tinc.XXX: Executing script tinc-up
2017-02-13 11:34:02 tinc.XXX: Listening on 0.0.0.0 port 655
2017-02-13 11:34:02 tinc.XXX: Ready
2017-02-13 11:34:02 tinc.XXX: Error looking up XXX.net port 2300:
Temporary failure in name resolution
2017-02-13 11:34:02 tinc.XXX: Could not set up a meta connection to
2017-02-13 11:34:02 tinc.XXX: Trying to re-establish outgoing
connection in 5 seconds
2017-02-13 11:34:02 tinc.XXX: Purging unreachable nodes
Even if I reconnect the interface, tinc does not continue.
If I restart the service manually, everything works fine, even with
disconnected network interface (it tries again and again until internet
I think, there is some kind of boot-time race condition.
It's the same problem with version 1.0.28 and 1.0.31.
Do you have an idea how to find/solve the problem?
tinc mailing list
tinc at tinc-vpn.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the tinc