Hallo,
Warum sturzt FHEM ab wenn ich dieses Programm Aufrufe?
Ich verstehe das nicht?
Zitatdefine Douche_Aan notify Douche_AB:on {\
if ( Value("Douche_AB") eq "on") { \
fhem("set Douche_Relais on ;;define Douche_relais1 at +00:00:03 set Douche_Relais off ;;define Douche_relais2 at +00:00:03 set Douche_Relais on ;;define Douche_relais3 at +00:00:03 set Douche_Relais off ;;define Douche_relais4 at +00:00:03 set Douche_Relais on ;;define Douche_relais5 at +00:00:03 set Douche_Relais off ;;define Douche_relais6 at +00:00:03 set Douche_Relais on ;;define Douche_relais7 at +00:00:03 set Douche_Relais off ;;define Douche_relais8 at +00:00:03 set Douche_Relais off ;; set Douche_AB off");; \
}\
}\
Wenn du wenigstens Ansatzweise dein Logfile dazu posten würdest müsste hier niemand nachfragen oder im Nebel stochern.
Aber BITTE NICHT das ganze Logfile sondern nur den Teil wenn du das notify ausführst und FHEM abstürzt.
http://forum.fhem.de/index.php/topic,16311.0.html (http://forum.fhem.de/index.php/topic,16311.0.html)
OK
Zitat2015.03.12 23:22:20 4: CUL_Parse: CUL_0 i050551FA -77
2015.03.12 23:22:20 5: CUL_0 dispatch i050551
2015.03.12 23:22:21 3: Douche_AB off->on
2015.03.12 23:22:21 5: Triggering Douche_AB (3 changes)
2015.03.12 23:22:21 5: Notify loop for Douche_AB on
2015.03.12 23:22:21 5: Triggering Douche_Aan
2015.03.12 23:22:21 4: Douche_Aan exec {
if ( Value("Douche_AB") eq "on") {
fhem("set Douche_Relais on ;define Douche_relais1 at +00:00:03 set Douche_Relais off ;define Douche_relais2 at +00:00:03 set Douche_Relais on ;define Douche_relais3 at +00:00:03 set Douche_Relais off ;define Douche_relais4 at +00:00:03 set Douche_Relais on ;define Douche_relais5 at +00:00:03 set Douche_Relais off ;define Douche_relais6 at +00:00:03 set Douche_Relais on ;define Douche_relais7 at +00:00:03 set Douche_Relais off ;define Douche_relais8 at +00:00:03 set Douche_Relais off ; set Douche_AB off");
}
}
attr Douche_Aan room Huis_Virtueel
2015.03.12 23:22:21 5: Cmd: >{
if ( Value("Douche_AB") eq "on") {
fhem("set Douche_Relais on<
2015.03.12 23:22:21 5: Cmd: >define Douche_relais1 at +00:00:03 set Douche_Relais off<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais1
2015.03.12 23:22:21 5: Cmd: >define Douche_relais2 at +00:00:03 set Douche_Relais on<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais2
2015.03.12 23:22:21 5: Cmd: >define Douche_relais3 at +00:00:03 set Douche_Relais off<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais3
2015.03.12 23:22:21 5: Cmd: >define Douche_relais4 at +00:00:03 set Douche_Relais on<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais4
2015.03.12 23:22:21 5: Cmd: >define Douche_relais5 at +00:00:03 set Douche_Relais off<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais5
2015.03.12 23:22:21 5: Cmd: >define Douche_relais6 at +00:00:03 set Douche_Relais on<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais6
2015.03.12 23:22:21 5: Cmd: >define Douche_relais7 at +00:00:03 set Douche_Relais off<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais7
2015.03.12 23:22:21 5: Cmd: >define Douche_relais8 at +00:00:03 set Douche_Relais off<
2015.03.12 23:22:21 5: Triggering global (1 changes)
2015.03.12 23:22:21 5: Notify loop for global DEFINED Douche_relais8
2015.03.12 23:22:21 5: Cmd: >set Douche_AB off")<
2015.03.12 23:17:27 5: Initializing Type Library:
2015.03.12 23:17:27 1: Including fhem.cfg
2015.03.12 23:17:27 5: Cmd: >attr global userattr devStateIcon devStateStyle device_timeout fp_Plattegrond icon sortby webCmd widgetOverride<
2015.03.12 23:17:27 5: Cmd: >attr global autoload_undefined_devices 1<
2015.03.12 23:17:27 5: Cmd: >attr global latitude 52.517540<
2015.03.12 23:17:27 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2015.03.12 23:17:27 5: Cmd: >attr global longitude 7.134326<
2015.03.12 23:17:27 5: Cmd: >attr global modpath .<
2015.03.12 23:17:27 5: Cmd: >attr global motd SecurityCheck:
WEB,WEBtablet has no basicAuth attribute.
Restart FHEM for a new check if the problem is fixed,
or set the global attribute motd to none to supress this message.
<
2015.03.12 23:17:27 5: Cmd: >attr global room Systeem<
2015.03.12 23:17:27 5: Cmd: >attr global statefile ./log/fhem.save<
2015.03.12 23:17:27 5: Cmd: >attr global updateInBackground 1<
2015.03.12 23:17:27 5: Cmd: >attr global verbose 5<
2015.03.12 23:17:27 5: Cmd: >define WEB FHEMWEB 48000 global<
2015.03.12 23:17:27 5: Loading ./FHEM/01_FHEMWEB.pm
Ich sehe hier keinen Absturz von FHEM durch die Ausführung des notify.
FHEM hat die fhem.cfg um
Zitat2015.03.12 23:17:27 1: Including fhem.cfg
eingelesen und 5 Minuten später wurde das notify ausgeführt.
Nun fehlt noch der Absturz von FHEM NACH 23:22:20
ZitatRestart FHEM for a new check if the problem is fixed,
or set the global attribute motd to none to supress this message.
<
2015.03.12 23:17:27 5: Cmd: >attr global room Systeem<
2015.03.12 23:17:27 5: Cmd: >attr global statefile ./log/fhem.save<
2015.03.12 23:17:27 5: Cmd: >attr global updateInBackground 1<
2015.03.12 23:17:27 5: Cmd: >attr global verbose 5<
2015.03.12 23:17:27 5: Cmd: >define WEB FHEMWEB 48000 global<
2015.03.12 23:17:27 5: Loading ./FHEM/01_FHEMWEB.pm
2015.03.12 23:32:27 3: WEB: port 48000 opened
Ja und hier sieht man das um 23:32:27 der WEB-port geöffnet wurde.
Und nun?
Ich sehe immer noch nicht das FHEM durch die Ausführung des notify abschmiert oder auch nur neu startet.
Ich habe ein ähnliches Problem, welches (vielleicht) unter dieses Thema fällt: FHEM ist verklemmt !
Seit ein, zwei Wochen reagiert das System nach einem Update und nachfolgendem Restart nicht mehr mit Aktionen.
Erst einmal den Logfile um diesen Zeitpunkt.
2015.03.13 11:57:34 1:
2015.03.13 11:57:34 1: New entries in the CHANGED file:
2015.03.13 11:57:34 1: - bugfix: 57_CALVIEW: fixed commandref
2015.03.13 11:57:34 1: - feature: GUEST: added support for RESIDENTS toolkit
2015.03.13 11:57:35 1: - feature: ROOMMATE: added support for RESIDENTS toolkit
2015.03.13 11:57:35 1: - feature: RESIDENTS: added support for RESIDENTS toolkit
2015.03.13 11:57:35 1: - added: RESIDENTStk: new RESIDENTS toolkit and first function wakeuptimer
2015.03.13 11:57:35 1: - bugfix: 37_SHC: go back to last release version v0.9.0 (rr2000)
2015.03.13 11:57:35 1: Calling /usr/bin/perl ./contrib/commandref_join.pl, this may take a while
2015.03.13 11:58:49 1: *** EN FHEM/99_myUtils.pm: No document text found
2015.03.13 11:58:49 1:
2015.03.13 11:58:49 1: update finished, "shutdown restart" is needed to activate the changes.
2015.03.13 11:58:49 1:
2015.03.13 11:58:49 1: Please consider using the global attribute sendStatistics
2015.03.13 11:59:06 0: Server shutdown
2015.03.13 11:59:10 1: Including fhem.cfg
2015.03.13 11:59:11 3: telnetPort: port 7072 opened
2015.03.13 11:59:12 3: WEB: port 8083 opened
2015.03.13 11:59:12 3: WEBphone: port 8084 opened
2015.03.13 11:59:12 3: WEBtablet: port 8085 opened
2015.03.13 11:59:12 2: eventTypes: loaded 472 events from ./log/eventTypes.txt
2015.03.13 11:59:12 3: Opening ZWAVE device /dev/ttyAMA0
2015.03.13 11:59:13 3: Setting ZWAVE baudrate to 115200
2015.03.13 11:59:13 3: ZWAVE device opened
2015.03.13 11:59:15 1: Including ./log/fhem.save
2015.03.13 11:59:16 1: usb create starting
2015.03.13 11:59:17 1: usb create end
2015.03.13 11:59:17 0: Server started with 55 defined entities (version $Id: fhem.pl 8192 2015-03-11 06:29:43Z rudolfkoenig $, os linux, user fhem, pid 15549)
2015.03.13 11:59:25 3: ZWave reading config for fibaro/fgrm222.xml
2015.03.13 11:59:26 3: ZWave reading config for fibaro/fgms.xml
2015.03.13 11:59:43 2: ZWave set WZ_RL_TT on
2015.03.13 11:59:59 2: ZWave set WZ_RL_TT off
2015.03.13 12:00:45 0: Server shutdown
2015.03.13 12:01:13 1: Including fhem.cfg
2015.03.13 12:01:13 3: telnetPort: port 7072 opened
2015.03.13 12:01:14 3: WEB: port 8083 opened
2015.03.13 12:01:14 3: WEBphone: port 8084 opened
2015.03.13 12:01:14 3: WEBtablet: port 8085 opened
2015.03.13 12:01:15 2: eventTypes: loaded 472 events from ./log/eventTypes.txt
2015.03.13 12:01:15 3: Opening ZWAVE device /dev/ttyAMA0
2015.03.13 12:01:16 3: Setting ZWAVE baudrate to 115200
2015.03.13 12:01:16 3: ZWAVE device opened
2015.03.13 12:01:18 1: Including ./log/fhem.save
2015.03.13 12:01:19 1: usb create starting
2015.03.13 12:01:20 1: usb create end
2015.03.13 12:01:20 0: Server started with 55 defined entities (version $Id: fhem.pl 8192 2015-03-11 06:29:43Z rudolfkoenig $, os linux, user fhem, pid 15635)
2015.03.13 12:01:20 3: ZWave reading config for fibaro/fgrm222.xml
2015.03.13 12:01:22 3: ZWave reading config for fibaro/fgms.xml
2015.03.13 12:01:33 2: ZWave set WZ_RL_TT on
2015.03.13 12:01:44 2: ZWave set WZ_RL_TT off
2015.03.13 12:01:58 2: ZWave set WZ_RL_TT off
Nach dem Restart vom WEBFrontend nach dem Update funktionieren die Eingaben und Darstellungen am Frontend. Wenn ich allerdings einen Rollladen herunterfahren will (2015.03.13 11:59:43), dann wird diese Geräteaktion zwar durch eine Iconänderung angezeigt, der Rolladen bewegt sich aber nicht. Also geht vom ZWave-Controller kein Kommando raus.
Lasse ich mir am Debianprompt den Status von FHEM anzeigen, dann ist dieser "service fhem status --> fhem is running".
Stoppe ich mit "service fhem stop", dann bleibt es bei "fhem is running". Auch der "perl"-Prozess läuft noch. Ein erneutes Stoppen (dann ist der Prozess weg!) und dann Starten (2015.03.13 12:00:45) bringt alles in den alten Zustand und die Aktionen werden auch wirklich wieder - wie immer - ausgeführt.
Starte ich dann am Debianprompt mittels Servicescript FHEM erneut, so bleibt es bei einem Prozess und kompletter Funktionstüchtigkeit.
Könnte es an der Restartroutine am Webportal liegen ?
ZitatUnd nun?
Ich sehe immer noch nicht das FHEM durch die Ausführung des notify abschmiert oder auch nur neu startet.
Nein das sieht Mann auch nicht. Um 23:17 ist FHEM Fest gelaufen und um 23:31 Habe ich meine RPI eine Sudo reboot gegeben, danach war es 23:32.
Ich bin verzweifelt warum FHEM Fest gelaufen ist.