Skip to content

WatchdogSec in systemd script kills tinc #473

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

Open
jvasile opened this issue Mar 12, 2025 · 0 comments
Open

WatchdogSec in systemd script kills tinc #473

jvasile opened this issue Mar 12, 2025 · 0 comments

Comments

@jvasile
Copy link

jvasile commented Mar 12, 2025

I've been running tinc since the mid aughts and it's been amazingly easy and stable. Thank you for such useful software!

This bug report is about the systemd scripts. The WatchdogSec=10 line causes systemd to kill tinc when the watchdog fails. Then systemd restarts the failed tinc. Then it kills it. This cycle continues indefinitely and makes tinc unusable.

Some effects of the watchdog killing tinc frequently:

  • Every few seconds, the connection to another tinc node on the LAN dropped for about 7 seconds before resuming. This doesn't happen when connecting without tinc.
  • Repeated runs of systemd status tinc@foo shows active, then not, then active, then not as tinc restarts.
  • Pinging a tinc node results in packet loss of 30% to 75%. This doesn't happen when pinging without tinc.
  • Running tincd from the commandline works fine but running via systemd produces these symptoms.
  • Removing the watchdog line causes tinc to behave as usual when run via systemd.

I haven't worked with systemd watchdog timers, but my understanding is that tinc should be satisfying the timer somehow. Clearly it isn't. I'm not sure if the line should be removed or the timer satisfied somehow.

This issue arose on 1.1pre18 and also 1.0.36. Everything is run on a current Debian testing box. My network topology is just a big soup of peer nodes all talking to each other. My tinc.conf has Name and ConnectTo lines and nothing else.

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

1 participant