Closed triantos closed 2 years ago
In my case the box became nearly unusable as a result (due to CPU + i/o overload). I shelled into the box and manually killed mdns-repeater to give myself enough cycles to troubleshoot and fix this problem.
@triantos thanks for your analysis. It looks like this should be prevented in the software itself, not the plugin. mdns-repeater, however, is not really maintained so the question is where to report this / carry a fix. Do you agree we should be avoiding the excessive logging in the daemon itself? If yes I would move the ticket to ports.git.
Yes my opinion is this is a bug in the actual daemon. If it's really unmaintained then perhaps Opnsense can put a warning in the plugin that "disconnected adapters may cause significant logging" or something like that.
thank you!
@triantos I moved the "logging" to foreground mode... it's a useful error when debating it but logging it for every packet seems like the wrong strategy here, see 71f7612
This seems like a better approach. thanks very much.
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug If os-mdns-repeater is enabled to repeat across a few networks and one of them doesn't have equipment connected to the interface, the plugin will bombard system.log with errors that the network is down (I was seeing roughly one message per second). The net result of this is the disk will fill up, and the CPU will be hammered (waiting on I/O) by the syslog-ng process trying to write all the messasges to disk.
To Reproduce Steps to reproduce the behavior:
What I see is constant messages of the form:
Expected behavior Maybe nothing, or maybe complain once that an interface has nothing connected.
Relevant log files See the 4 lines pasted from above
Additional context Add any other context about the problem here.
Environment OPNsense 22.1.1_3-amd64 FreeBSD 13.0-STABLE OpenSSL 1.1.1m 14 Dec 2021
Running on a Supermicro board with 4 NICs and CPU Intel(R) Pentium(R) CPU N3700 @ 1.60GHz (4 cores, 4 threads)