mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
Application Halts After 15 Failed Ping Attempts #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @miles7191 on GitHub (Mar 24, 2025).
If the newt connector is not able to reach the host after 15 attempts the application no longer attempts to make contact with the server. This has recently been increased from 5 attempts to 15 but does not address the issue if the disconnection lasts longer than 15 attempts.
A few suggestions to rectify the problem:
Why is this an issue & how to recreate.
When a newt connector is behind an unreliable network connection, the max attempt number can easily be hit. In my use case the server that is running the newt connector is connected via an AT&T wireless connection that experiences many drop outs.
@miloschwartz commented on GitHub (Mar 24, 2025):
Newt should continue to ping in the background despite the logging. Does it not reconnect despite the server being up? In other words, are you forced to restart Newt to force it to reconnect to an online server after the 15 logged pings are up?
@miles7191 commented on GitHub (Mar 25, 2025):
That isn't the behavior I have noticed. As I haven't deployed this to production I allowed the clients to sit last week. By the end of the week 4 out of 20 sites were offline. The site I referenced for this issue experienced a disconnect at 8am and I manually restarted the service 6 hours later when I noticed it zombied. When the service was restarted it instantly connected.
@oschwartz10612 commented on GitHub (Mar 25, 2025):
Hum okay I will try to test and patch as soon as possible to continue to ping
@miles7191 commented on GitHub (Mar 27, 2025):
I am now seeing 11 out of 20 sites offline in a 36 hour time period. I restarted the pangolin stack to see if they may reconnect and only the clients that were showing connected initially managed to reconnect. Are there any logs I could pull to help narrow down the problem?
@carsten-re commented on GitHub (Mar 29, 2025):
Hi,
I'd today the same issue. Pangolin server was unresponsive and I had to force reboot the Azure instance. My two (out of two) newt docker sites stopped working and I had to restart newt container.
Here is my latest log before I restarted newt site (IP and domain is obfuscated):
A healthcheck or something like a automatic restart would be fine, or?
@AleksCee commented on GitHub (Mar 29, 2025):
I try the restart now with a little cronjob running every 5 minutes:
@pizzaandcheese commented on GitHub (Sep 26, 2025):
This is still happening for me.
I am using Newt inside a podman container, i have some containers that use a mixture of host networking and docker networking and both encounter the same issue. But it doesn't seem to be all my containers that have the issue as I have some that come up perfectly fine after Pangolin reboots.
@oschwartz10612 commented on GitHub (Sep 26, 2025):
Just checking: are you on the latest newt?
Is this a fresh install or it dies after some time randomly?
@pizzaandcheese commented on GitHub (Oct 9, 2025):
Most are on 1.5.1 with a few on 1.4.2.
None of mine are fresh and it seems to drop connection whenever Gerbil/Pangolin restarts