OpenLuup unavailable
-
The latest development version v21.3.20 has a new console page openLuup > System > Required which shows key system modules, and also those required by each plugin.
I am seeing some small version differences between my systems, but I don't think this is the issue. I would, nevertheless, be interested in your version of this page:
Incidentally, this system (running in a Docker on my Synology NAS) ran overnight with over 100,000 MQTT messages sent to MQTT Explorer, totalling over 18 Mb of data without any issues at all.
-
This morning no crash either, progress again. This shows that the Mqtt functionality works overnight as such anyway.
What I changed yesterday:
-
updated OpenLuup from 2.3.19 to 2.3.20
-
powered up one of the test Mqtt devices
Next step it to start one of the other devices and see what happens.
This is what MqttExplorer has logged since yesterday:
The two topics that the device sends out every 5 minutes:
05:44:29 MQT: tele/tasmota_test/STATE = {"Time":"2021-03-21T05:44:29","Uptime":"0T00:05:09","UptimeSec":309,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"MyNetwork","BSSId":"FC:EC:DA:D1:7A:64","Channel":11,"RSSI":100,"Signal":-45,"LinkCount":1,"Downtime":"0T00:00:03"}} 05:44:29 MQT: tele/tasmota_test/SENSOR = {"Time":"2021-03-21T05:44:29","AM2301":{"Temperature":26.0,"Humidity":30.9,"DewPoint":7.5},"TempUnit":"C"}
-
-
This morning no crash either, progress again. This shows that the Mqtt functionality works overnight as such anyway.
What I changed yesterday:
-
updated OpenLuup from 2.3.19 to 2.3.20
-
powered up one of the test Mqtt devices
Next step it to start one of the other devices and see what happens.
This is what MqttExplorer has logged since yesterday:
The two topics that the device sends out every 5 minutes:
05:44:29 MQT: tele/tasmota_test/STATE = {"Time":"2021-03-21T05:44:29","Uptime":"0T00:05:09","UptimeSec":309,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"MyNetwork","BSSId":"FC:EC:DA:D1:7A:64","Channel":11,"RSSI":100,"Signal":-45,"LinkCount":1,"Downtime":"0T00:00:03"}} 05:44:29 MQT: tele/tasmota_test/SENSOR = {"Time":"2021-03-21T05:44:29","AM2301":{"Temperature":26.0,"Humidity":30.9,"DewPoint":7.5},"TempUnit":"C"}
Yet another morning without a crash, once again some progress.
Not so much Mqtt traffic during the last 24 hours:
Just to test my other type of Mqtt test device I did the following yesterday:
-
powered down the Mqtt test device I had up and running
-
powered up the other type Mqtt test device
The one I have had up and running publishes the following every 5 minutes:
08:11:27 MQT: tele/TasmotaCO2An/STATE = {"Time":"2021-03-22T08:11:27","Uptime":"0T22:55:12","UptimeSec":82512,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"BeachAC","BSSId":"FC:EC:DA:D1:7A:64","Channel":11,"RSSI":74,"Signal":-63,"LinkCount":1,"Downtime":"0T00:00:03"}} 08:11:27 MQT: tele/TasmotaCO2An/SENSOR = {"Time":"2021-03-22T08:11:27","BME280":{"Temperature":20.1,"Humidity":40.4,"DewPoint":6.2,"Pressure":1007.3},"MHZ19B":{"Model":"B","CarbonDioxide":767,"Temperature":43.0},"PressureUnit":"hPa","TempUnit":"C"}
Perhaps a bit overcautios but I wanted to see that the second device works overnight since this type was the one I added last time when the problems started.
Next step I think will be to run my three Mqtt sensors for some time.
-
-
@akbooer I installed v2.3.20, this is what it shows:
Your data sounds promising.
I can add that despite the problems my system still feels really fast when it is up and running. -
-
That’s looking good.
Not to change too many things at one time, but the latest v21.3.21has even more safeguards against sockets being able to hang the system. As a bonus, the log pages show how many times the log contains lines with the word error.
-
Hi AK,
What is the errors count based on? I'm not seeing anything jump out in the log file.Cheers Rene
-
This error counting in the log is a great idea. It triggered my OCD tendencies and got me to track down a couple of typos along with loading the upnp proxy server... not as a plugin but as a systemd service to get rid of the sonos errors in the log.
Suggestion @akbooer: Don't isolate the lines showing errors. Instead it would be nice if they could be highlighted or colored on the log visualization page.
-
This error counting in the log is a great idea. It triggered my OCD tendencies and got me to track down a couple of typos along with loading the upnp proxy server... not as a plugin but as a systemd service to get rid of the sonos errors in the log.
Suggestion @akbooer: Don't isolate the lines showing errors. Instead it would be nice if they could be highlighted or colored on the log visualization page.
-
Aha, ok. The Ezlo json responses include the word error even is there is none, so I was wondering why I am seeing so many hits on that.
-
@mrfarmer said in OpenLuup unavailable:
The Ezlo json responses include the word error even is there is none
What does one of those responses actually look like (around the part that says error.). I could search for just an isolated word...
-
OK. Latest development version v21.3.23 has refine the search to isolated occurrences of the word error.
This should accomodate both @mrFarmer and @rafale77.
Adding colour to the log itself is a bit of a pain since, actually, the whole thing is in a single preformatted block.
-
Working great! Thanks for the quick turnaround.
Something very strange is going on though. Without the MQTT server enabled at all, I have observed the same problem as @ArcherS twice today. The only major change I made was to enable the LuaUPnP proxy for the sonos app. Prior to this, I have had no memory of openLuup hanging this way for quite some time, probably a year. Looked at the logs and found nothing useful. I seem to remember having some strange problems with the luasocket the last time I had seen this while trying to get fix another plugin. I will keep an eye on this.
The only errors I am currently seeing look like this:
openLuup.server:: error 'closed' sending 5 bytes to tcp{client}: 0x7f49d5fe98f8
Whereby it seems like openLuup is trying to send bytes to an incoming tcp connection which has been closed by the client. I have several such servers sending http commands to openLuup.
Link to the previous thread about it https://smarthome.community/topic/105/openluup-hangs
-
Thanks for raising this issue... I nearly missed it because you edited a previous post rather than started a new one.
We need to nail down this issue, which is clearly genuine, but infrequent and difficult to replicate at will. It’s good to note that it’s not apparently connected with MQTT. The strange thing is that, with very minor exceptions, none of the major server modules have been changed for over a year. Are we all just stressing our system a bit more these days?
I have introduced some extra socket checks specifically into the MQTT code, so my first line of attack will be to retrofit these to HTTP transactions. This gets me thinking again that it would be great to use a real HTTP server, rather than one I have written myself. But it’s a bit daunting to consider the installation and configuration needed to do that. Ideally, I’d need something that supports the WSAPI CGI interface. Apache does, as, I believe, does lighttpd.
-
Hi AK,
No longer seeing the high error count, great work as always.
What I notice is that the longest gaps are always for a poll to one of my Vera's even though that is set for async poll (running on Debian PI cone VM). I do not see that on my main V20.4.30 running on a PI3 with Debian.
Cheers Rene