Hello gentlemen,
A couple weeks ago I was having data collection reliability issues relating to MQTT broker disconnects; and so I put some disconnect detection and notification in place.
After a couple of weeks with happy MQTT operation--*figuring* that data collection was working properly--I recently discovered the fact that no data was being logged to MySql; obviously much to my chagrin.
Strangely, when I connected to Node-RED's web UI, data collection resumed normally.
I went through some diagnosis exercises, and didn't really find much beyond this message repeatedly appearing in the console logs.
[warn] [mysql:MySql] Error: Cannot enqueue Query after fatal error.
I tried looking for Node-RED log files which would hopefully shed some light on the issue, but just found a line in the settings.js file indicating that there was currently no support for logging. Is this true?
Can anyone shed any light on this? It is obviously quite concerning if the nodes will just stop working like this. Failing one call is one thing, but it seems that something longer term broke here (no INSERT queries submitted to MySql for around 12 days). Seems to me that this would be more than just a warning as the node execution is either being skipped/ignored or is outright failing.
Any ideas on what I can do to avoid this sort of occurence in the future? Should I be trapping and handling the output of the MySql query node in some way?
Regards,
Greg