-
Notifications
You must be signed in to change notification settings - Fork 8
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
Recurring SIGSEGV #64
Comments
@andbuitra Thanks for reporting, can you share config and version? I'll try to reproduce. Sounds like something is missing. |
The configuration is pretty straightforward
The version used is the latest release
|
@andbuitra Sorry, I meant |
Hello The rbls.ini is as follows
Targets follows this pattern
|
@andbuitra I'll check it on the weekend 🙏🏼 |
@andbuitra I haven't made much progress. Can you add My guess is that it's something inside the RBL requesting and response parsing. Or maybe even in a dependency. |
@andbuitra release is here: |
@till I completely forgot about this. I will test it on the next couple of days. Thank you! |
Yeah, let me know how it goes. I think I'll wait a bit until I merge the updated dependency again. Trying to think what else can be done to track this. |
Btw, if you happen to narrow it down to a host/RBL combo, I can write a test confirming it against the upstream dependency and see about fixing it there. |
@andbuitra friendly ping. Did you have a chance to take a look? |
@andbuitra Do you see this happening still? I am currently prepping for a Btw, I'd like to include service files. Do you feel like contributing your's? With location a la |
@till Apologies, I was on vacation. I haven't been able to test the package yet but I will now. My systemd unit is simple and it loads the config file from a local git repo; the unit is located at /etc/systemd/system/dnsbl_exporter.service but I have seen other apps like MariaDB putting them on /usr/lib/... and then referencing them. Maybe there's a standard for it by the freedesktop. The restart clause was put to mitigate the original issue. I will test the release 0.4.4 and let you know if the issue happens again. |
Here is a 0.4.4-next: If you want to build it yourself, you'll need goreleaser and a clone of this repo: |
I kinda just spotted something else. Sometimes parsing IPs seems to fail. Why, not sure, but if it's |
If the IP address is neither v4 or v6, IP.Parse() returns "nil". Related: #64
So, I can't figure out why this may happen to begin with, but now I should not panic but instead give you a log message about the "string" which it can't determine if it's an IP(v4 or v6). |
If the IP address is neither v4 or v6, IP.Parse() returns "nil". Related: #64
Latest dnsbl_exporter_0.4.4-next_Darwin_arm64.tar.gz I think this contains an actual fix. So it was not in a dependency, but my use of Go. If I don't hear back from you, I'll release |
@till I was deploying this but I see this is the Darwin binary and we run Linux on the server. Could you build that latest version for linux x86? I will remove the restarts on my systemd unit so it won't fix itself automatically. |
I have installed it now and so far so good. I will report back if the issue shows up again |
@till No crashes as of now. I believe that panic was causing the binary to stop. It's been working normally for more than 12 hours without needing to reboot |
@andbuitra Thanks for letting me know. You catch anything in the logs? I am curious what kind of "ip" caused this. |
Nothing special shows up. The only error is "level=error msg="read udp 127.0.0.1:37474->:0: read: connection refused" that shows up multiple times every minute but don't really know what it's about since the monitor works fine (as in metrics show up correctly) |
Maybe you filter udp? DNS uses both (tcp and udp). If you have a local resolver it should respond to both. |
It could be being filtered by upstream firewall. The resolver is in a public network and it's used throughout the infrastructure. dnsbl operates on a server behind a firewall using it as a gateway so that could be the reason. However, it's a non issue since the exporter is working just fine. The exporter has been running for more than three days now with no issues. I believe this issue can be closed |
Ok, good to know! I'll close when I cut a release. I am trying to finish #84 first! :) Thanks again for your time and patience. |
@andbuitra I finally released |
Hello,
We deployed dnsbl_exporter on a CentOS 7 machine as a systemd service. It's currently going offline pretty often complaining about memory (either oom or sigsegv). This is the error:
There's plenty of memory available (more than 6 GB) so this shouldn't be an issue. So far I've resorted to configure auto restart for the systemd unit. If relevant, the log also shows plenty of these:
There's nothing too special about our config. The only thing is that we load the RBLs and targets (using the proper args with absolute paths) from a folder that is linked to a git repo.
The text was updated successfully, but these errors were encountered: