Page 1 of 1

assert kommands starts failing randomly

Posted: Tuesday 05 May 2020 21:24
by mroerigdalgaard
Hi.

I had this script running in several month without any error.
Now it starts creating an error once or twice a day (script runs every minute).

Scriptline:
local file = assert(io.open("/mnt/nfs/pihome/UpdateNeeded.txt", "r"), "OSup1: Error reading UpdateNeeded.txt")

error:
2020-05-05 04:06:00.308 Error: dzVents: Error: (3.0.2) OSUP 1: An error occurred when calling event handler ReadOSUpdates1
2020-05-05 04:06:00.308 Error: dzVents: Error: (3.0.2) OSUP 1: ...icz/scripts/dzVents/generated_scripts/ReadOSUpdates1.lua:20: assertion failed!

Domoticz version 2020.2 error startet before installation of 2020.2
running on an RaspberryPi 3b+ with buster installed.

Some ideas?

Re: assert kommands starts failing randomly

Posted: Tuesday 05 May 2020 23:53
by waaren
mroerigdalgaard wrote: Tuesday 05 May 2020 21:24 I had this script running in several month without any error.
Now it starts creating an error once or twice a day (script runs every minute).

Some ideas?
My idea is to have a close look at the log around the times you see this error and maybe activate the complete domoticz debug logging. From what I understand you should always get your defined messge when the io.open fail.

Re: assert kommands starts failing randomly

Posted: Wednesday 06 May 2020 12:51
by mroerigdalgaard
waaren wrote: Tuesday 05 May 2020 23:53
mroerigdalgaard wrote: Tuesday 05 May 2020 21:24 I had this script running in several month without any error.
Now it starts creating an error once or twice a day (script runs every minute).

Some ideas?
My idea is to have a close look at the log around the times you see this error and maybe activate the complete domoticz debug logging. From what I understand you should always get your defined messge when the io.open fail.
Tried to start domoticz with debug enabled but then it crashes on startup. Must do later some investigations to set debugging on. -loglevel 3 -debug crashes ....