NEWS
problem during boot with schedule command in the script
-
Dear Forum,
i face some problems during system boot. There are some scripts with time schedules. For testing I create the following:
function Test1() { log('In Function','error'); setState('0_userdata.0.Allgemein.TestBoot', 'test', false); }; log('Script Test1 aufgerufen','error'); schedule("*/10 * * * * *", Test1 )During normal operation it logs every 10s: "In Function" - as expected.
During boot-up the following happend - it wrote logs to the log file more than 1000 times in a minute.:
2024-04-16 14:25:31.573 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.580 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.591 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.598 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.610 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.622 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.634 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.642 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In FunctionThis happens in my installation for any scripts which such a schedule.
In case i go to the shell and i use the commands: iobroker stop and afterwards iobroker start .. the system runs as expected without scheduling this 1000 times.In case I do a fresh boot, without starting the iobroker and then starting the iobroker from the console, I have the same problem. After I do iobroker stop/start all is fine again.
I run:
js: 5.0.19
node: v18.17.1
javascript: v7.8.0Any ideas? Anybody able to reproduce this before I create a bug report?
-
Dear Forum,
i face some problems during system boot. There are some scripts with time schedules. For testing I create the following:
function Test1() { log('In Function','error'); setState('0_userdata.0.Allgemein.TestBoot', 'test', false); }; log('Script Test1 aufgerufen','error'); schedule("*/10 * * * * *", Test1 )During normal operation it logs every 10s: "In Function" - as expected.
During boot-up the following happend - it wrote logs to the log file more than 1000 times in a minute.:
2024-04-16 14:25:31.573 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.580 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.591 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.598 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.610 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.622 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.634 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In Function
2024-04-16 14:25:31.642 - error: javascript.0 (726) script.js.Technik.Heizung.BootTestScript: In FunctionThis happens in my installation for any scripts which such a schedule.
In case i go to the shell and i use the commands: iobroker stop and afterwards iobroker start .. the system runs as expected without scheduling this 1000 times.In case I do a fresh boot, without starting the iobroker and then starting the iobroker from the console, I have the same problem. After I do iobroker stop/start all is fine again.
I run:
js: 5.0.19
node: v18.17.1
javascript: v7.8.0Any ideas? Anybody able to reproduce this before I create a bug report?
-
-
@hschief i don´t think that a double post in an other language is helpful to solve you´re Problem ;)
-
@djmarc75 easy to explain.... more english speaker the German speaker ... to reach a bigger audience. Thx. for the hint ... doesn't help anything for the question
@hschief sagte in problem during boot with schedule command in the script:
.... more english speaker the German speaker


das sind die Installationen und im forum istcdie Luft noch viel dünner
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden