10 seconds  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

10 seconds

Post by pvklink »

Hi,

is there a way to check which script is running more than 10 seconds.. I dont get this warning every time so putting scripts on/off is not a way to do it..

Code: Select all

2019-08-16 12:02:16.323 Error: SMTP Mailer: Error sending Email to: <[email protected]> !
2019-08-16 19:50:10.363 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2019-08-16 21:20:10.770 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2019-08-16 22:00:10.498 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2019-08-16 23:45:10.026 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2019-08-17 00:20:10.287 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2019-08-17 00:50:10.665 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2019-08-17 06:20:10.700 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 10 seconds

Post by waaren »

pvklink wrote: Saturday 17 August 2019 9:36 is there a way to check which script is running more than 10 seconds.. I dont get this warning every time so putting scripts on/off is not a way to do it..
The warning / error is generated by domoticz when the dzVents.lua is executing for more then 10 seconds. dzVents.lua is the dispatcher process within dzVents for all the user scripts. If you set the loglevel for dzVents to
Errors + minimal execution info
you will see which script is started just before the domoticz warning.
The warning can also point to other processes on your system taking (for a moment) all available resources. Like the automatic backup from domoticz executing on the hour.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: 10 seconds

Post by pvklink »

ok, gonna do that right away... curious which script...
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: 10 seconds

Post by pvklink »

It was the philips hue-device....
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 10 seconds

Post by waaren »

pvklink wrote: Thursday 22 August 2019 8:29 It was the philips hue-device....
Can you please elaborate a bit on this ? Still guessing now what the root cause is.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: 10 seconds

Post by pvklink »

I think that the hue plugin has some problems. Domoticz does not see the hue-hub.
I think because the router was restarted after a lighting strike and the hue had his old hcp-ticket and could refresh it... or something like that...

I will restart the hue and connect it again... and see if the messages dissapear
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: 10 seconds

Post by pvklink »

is the rule before the time-out the cause of the timeout?
so i have to many pings....

2019-08-22 13:18:55.223 Error: Pinger: This is a read-only sensor!
2019-08-22 13:18:55.572 Error: Pinger: This is a read-only sensor!
2019-08-22 13:18:57.093 Error: Pinger: This is a read-only sensor!
2019-08-22 13:18:57.653 Error: Pinger: This is a read-only sensor!
2019-08-22 18:40:17.596 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2019-08-22 19:56:01.161 Error: Pinger: This is a read-only sensor!
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: 10 seconds  [Solved]

Post by waaren »

pvklink wrote: Thursday 22 August 2019 22:40 is the rule before the time-out the cause of the timeout?
No not necessarily. In this case the times of the errors are not close enough to the Warning.

The Warning can come from a busy system (waiting for disk / network IO, Memory, CPU or another resource) caused by domoticz or another process or from a script (dzvents, Lua, Python) blocking the event system (this can happen if you wait for an HTPP response via curl or from another OS call to return or from a very resource hungry script (look for nested loops or loop over a very, very large table (_G or similar)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: 10 seconds

Post by pvklink »

ok...thanks..
will pause some scripts and services for a period of time...
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest