How to pin-point this warning message?

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

Moderator: leecollings

Post Reply
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

How to pin-point this warning message?

Post 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!!
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: How to pin-point this warning message?

Post 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
Quality outlives Quantity!
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: How to pin-point this warning message?

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: How to pin-point this warning message?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest