-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
internal error
when pinging self
#142
Comments
internal error
on ping to selfinternal error
when pinging self
Hi! Did you check if that could be a system-level permission issue when opening ICMP raw sockets? https://github.com/valeriansaliou/vigil?tab=readme-ov-file#children_crossing-troubleshoot-issues |
I can ping anything that is up but the IP's that the machine I'm running vigil is on. |
The issue also occur on the debian package from your repo where the setcap is included in the service file. |
Just to prove my point, here I added 1.1.1.1 to the config file, which results in a debug log where 1.1.1.1 works just fine:
|
I think this is more an OS level routing issue than a Vigil issue. |
No, ping works:
vigil is doing something to make ping not work. My guess is that it is most likely because of https://crates.io/crates/ping but there is not enough information in the error message that vigil gives to say for certain where the issue lies. Potentially related to this issue: aisk/rust-ping#15 Is it possible to use normal ping instead of rust ping? |
Could you report this to upstream to the library maybe? |
I cannot make a proper bug report. Currently, I have no idea how vigil uses rust ping, and therefore I cannot make an actionable/usable bug report for them. If you won't recognize the problem I'll try to figure out more at some point and try to figure out where the issue lies. Again is it possible to use normal ping rather than the rust ping? |
Also, I need this library since other methods I've tried in the past do not support ICMPv6, and I need them to monitor Crisp in production in a reliable way since everything is dual-stack there. Won't change, but if there's a bug it needs to be fixed upstream. |
Also note that |
Dual stack, which of course includes IPv6 support is important for me as well. I have vigil in running in test working really dual stack but I have faced issues moving forward with deployment. |
I'll test and see what I find. Though doing all this on the side for to monitor it systems as a part of some volunteer work it might take some time between work to get a proper look, but that is life. I did not expect you to respond so quickly in here 💪, keep up the good work :) |
Preliminary findings:
|
As far as I can tell the issue is contained within My testing with IPv4 ping to 127.0.0.1 shows that I'll need to investigate further to know why, and in order to report the issue upstream. |
I have reported the issue upstream: aisk/rust-ping#16 :) |
@valeriansaliou Have you considered https://crates.io/crates/surge-ping ? It looks like that crate is a bit more active and well maintained than https://crates.io/crates/ping . They already have a implementation without the ping-to-self issue the issue that I'm seeing. The API is different to call the ping is different. If you don't have time I would be happy to try to make a pull request to change the ping library - I think it would be doable. But I will not invest the time in it if you would reject it outright. |
Though it is properly much less work to just fix the ping crate... |
Thank you, leaving this open so that I can review it & change when I batch process task on Vigil (probably not in the immediate future to be fully transparent, as I have other priorities atm, so this might take quite some time). |
FYI: The issue has been fixed upstream. |
Hi!
Thanks for vigil, it is a great peace of software. I have however found an issue which is properly related to the ping library used by vigil.
While it may seem odd to ping an IP on the same machine that the uptime monitor is running I still think it is misleading that it says
internal error
. If anything you should just get a stupid monitor that would always be up (because when it is down the uptime monitor itself is not running).I have confirmed this issue exists on several machines some with Rocky Linux others with Debian bookworm with ARM and Intel CPU architecture.
In order to eliminate possible sources of errors I did a clean install of the latest stable version of Debian and installed vigil with this service block (here the local machine has the IPv4 192.168.1.122 from DHCP):
Which results in errors such as:
Environment info:
I had some issues with vigil and I spend quite a lot of time to figure out why vigil did not work. I used local IP's because then I would eliminate all kinds of other issues that could be with the network, not knowing that the system could not ping local IP's.
Thanks a lot in advance.
I hope this report contains enough info to make the next step to solve this issue actionable.
Best regards,
Emil Kristensen
The text was updated successfully, but these errors were encountered: