mirror of
https://github.com/fosrl/newt.git
synced 2026-05-05 23:50:10 -05:00
[GH-ISSUE #284] Newt loses connection to server and will only reconnect on service restart #2067
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 @imoBooze on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/fosrl/newt/issues/284
Describe the Bug
Whenever the wifi of a site disconnects for a period of time then reconnects, the newt of the site is unable to reconnect to pangolin. The logs of newt mentions several periodic ping failures.
Environment
To Reproduce
Expected Behavior
Newt reconnects after wifi outage.
@github-actions[bot] commented on GitHub (Apr 12, 2026):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@imoBooze commented on GitHub (Apr 12, 2026):
As of newt version 1.11.0, this issue appears to have been fixed. Could others also confirm?
@Jdsx74 commented on GitHub (Apr 16, 2026):
I have the same problem with Pangolin 1.17.0 and Newt 1.11.0.
I start Newt service, but after 4/5 days the connection drop and i have to restart the newt service to be able to access to site again..
Thank you !
@Kornelius777 commented on GitHub (Apr 17, 2026):
Same here.
Would it be possible to implement a health check so that a script could reboot the newt server?
@svillar commented on GitHub (Apr 18, 2026):
I've newt 1.11.0 and I can easily reproduce this issue. Not following the same steps. In my case newt is runnning in a docker container in a NAS (ARM) which is connected via ethernet, so unless something very wrong happens it's always online. At some point it disconnects:
and then it never recovers (when I got the log it was reporting >1000 consecutive failures). Only restarting it makes it work again. It's a serious issue as it makes resources lose all connectivity
@svillar commented on GitHub (Apr 18, 2026):
I'm BTW available for further testing, using an image with extra debugging or the like, just ping me back.
@AstralDestiny commented on GitHub (Apr 18, 2026):
@svillar Mind poking me on discord and throw me a site config?
@v3rm1n0 commented on GitHub (Apr 24, 2026):
Same issue here. My router restarts frequently for updates, resulting in exactly this. Would be possible to have newt exit or kill itself after x consecutive failures? That way systemds restart on failure could work
Edit: I am on newt 1.11.0
@sandroshu commented on GitHub (Apr 24, 2026):
It is not resolved in the latest available release.
Workaround still works for systemd service but not optimal mentioned in my issue for the time being. https://github.com/fosrl/newt/issues/310
Create a service for it or run it in a screen session in the background. For eg. I have a separate service newt-healer:
@AstralDestiny commented on GitHub (Apr 24, 2026):
Wouldn't really use the latest RC right now honestly, We've got a few critical bugs.
@Wireheadbe commented on GitHub (Apr 27, 2026):
I had tried to work around this by using the "healthy" file, but Newt apparently doesn't remove that file when its status is unhealthy... that could simply be fixed in code when a connectivity issue exists, that /var/healthy gets removed.
At that point, the container would restart, and that's that.
@bajo commented on GitHub (Apr 29, 2026):
Thanks @sandroshu for pointing me to this issue.
Copying my comment from the closed ticket here, maybe it is useful for somebody else in here. :)
I faced a similar problem when my cheap VPS ran out of memory and OOM killer did its job on pangolin. After the service restarted, newt failed to automatically reconnect. That is on newt version 1.10.4 on NixOS.
Thus, I added a simple systemd watchdog service and timer on the host on which newt is running.
and
The
--resolve your-app.example.com:443:1.2.3.4part is only useful for me because I'm using the same fqdn internally as I do on the public Internet, so I need to make sure curl actually checks the app in the Internet and not on my LAN.