Page 1 of 1

How to pin-point this warning message?

Posted: Tuesday 16 July 2019 6:49
by mcmikev
Hi,

I have some script running that sometimes gives an warning like below

Code: Select all

lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
How can I figure out why this is happening and what script is doing this?

Is this possible to find?
What could trigger such an warning (I know the text explains it, but I cannot see any script not doing what it should do and waits longer than normal)

It is not always, but just now and then.
I Hope my question is clear and there is a way to pin-point this.

Thanks!!

Re: How to pin-point this warning message?

Posted: Tuesday 16 July 2019 7:31
by gizmocuz
One of your scripts is taking a long time to execute.
Best is to disable all scripts, then enable 1, see if that runs good (if not, that is the one that is causing the issue),
enable a second, check if that is working ... etc

Re: How to pin-point this warning message?

Posted: Tuesday 16 July 2019 8:22
by waaren
mcmikev wrote: Tuesday 16 July 2019 6:49

Code: Select all

lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
How can I figure out why this is happening and what script is doing this?
What could trigger such an warning (I know the text explains it, but I cannot see any script not doing what it should do and waits longer than normal)
In most cases you will see this message if a dzVents script is waiting for an OS command like curl / wget or something similar to finish.
If you enable dzVents logging you will see the last triggered dzVents script before this message.

Re: How to pin-point this warning message?

Posted: Tuesday 16 July 2019 16:22
by mcmikev
@waaren , wil do that then. The warning is not always so disabling events is an option but you never know when it happens.