Skip to content
Discussion options

You must be logged in to vote

Starting at 12:51:39, the log file shows many times

writing to MQTT socket #Port<...> failed: badarg

both for the same and for different MQTT connection processes.

Only later at 12:54:12, the memory alarm kicks in.

I suggest instead of logging and then ignoring the send failure, we should log and then immediately close the MQTT connection as done in #8553 and #9271.
This will hopefully lead to less follow up errors such as truncated logs and memory alarms.

It seems that there are some issues related to writing to the log-file itself.

Yes, to prevent overload, the logger will drop entries if too many lines are logged at once indicated by drop mode in the logs.

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ansd
Comment options

You must be logged in to vote
2 replies
@pfeifi01
Comment options

@michaelklishin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #9195 on August 28, 2023 11:50.