-
Notifications
You must be signed in to change notification settings - Fork 297
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
Missing defaults.conf params not getting logged by bot processes #1021
Comments
I think what's needed is a check if all mandatory config values exist. It's a pretty nasty error to find and debug, thanks for finding this! |
Yes, it would be worth investigating both validation of the config files, as well as reviewing when logging becomes active for spawned bot processes, to put any startup errors like this in the relevant log files. |
The necessity to have those parameters is documented in both the NEWs-file and the CHANGELOG. Also, using the As the intelmqctl tool is calling the bots as processes, detecting errors there is not trivial. Pull requests are welcome. You are not the first one to request this but apparently it wasn't important enough for anyone to implement it. We can also call |
The tip for As another suggestion - perhaps a rename or alias for I'd say the bot logging issue is the more underlying one here, rather than config validation (though that's good too). Anything missing from the config would get flagged by the bot log, as long as the log is there to be observed. It's great that changes are communicated in the NEWS and CHANGELOG files, but there's a chance not every point in them will be noticed before an upgrade (guilty!). |
And it's documented in the UPGRADING doc file that you should do so... |
For sure, it's indeed documented. Over and above that, it's great from a usability point of view for new users that the software gently points out issues interactively as much as is possible. I'll be happy to make pull requests as I go where there are quick wins to make on that front. |
Please have a look at #1042 if it does fix your issues or if you have any (additional) suggestions. Reviews are welcome too. |
Thanks @wagner-certat! With #1042 I can confirm
Is there any way we can extend this to
|
How shout the output look like then? Imagine 20/20 bots fail to start, each bot has 7 lines of logs. In total this gives 8*20+20=180 lines of output. Alternatively we can just print a hint to start the bots separately or use run-subcommand. |
Speaking for myself, I'd be fine with ~180 lines of output if I could quickly diagnose there was a problem with my settings for all bots. I'd say it's better to be explicit and verbose about the problem if the bots have failed to start. |
I encountered an issue where
intelmqctl start
would immediately have all bots exits with no errors in their respective logs or intelmqctl.log. After a fair bit of strace, pdb and trial and error, made the following temporary change tobin/intelmqctl.py
so each bot process started once again logged to stdout and stderr:That immediately revealed in console:
... revealing that my slightly old default.conf was no longer compatible with the current version and I was missing mandatory values. Adding those params resolved the issue, with bots running again. This traceback didn't end up getting logged into each individual bot's log as I would have liked.
I don't have a suggestion on solving this presently, but thought I'd at least log while it's fresh in my mind - suggestions welcome.
The text was updated successfully, but these errors were encountered: