rdmtc / RedMatic

Node-RED packaged as Addon for the Homematic CCU3 and RaspberryMatic 🤹‍♂️
Apache License 2.0
534 stars 47 forks source link

laufend Abbrüche "Connection Lost" und Neustarts... #329

Open UserRG opened 4 years ago

UserRG commented 4 years ago

Hallo

ich habe das Problem, dass ich häufig Neustarts nach Fehler habe. Nodes wie Harmony Hub oder Alexa verlieren ihre Einstellungen etc. Meine Node-Red-Flows sind recht umfangreich. Ich hatte aber auch schon einen Werksreset der CCU3 gemacht, aber es ist nicht besser geworden. Leider werde ich aus dem Fehler-Log nicht schlau. Ich hatte auch schon einzelne Flows deaktiviert, aber ich habe nichts gefunden...

redmatic.2020-03-15T15_28_27.834Z.log.txt

Bei letzten Werksresetz lies sich das Backup incl. Redmatic leider nicht mehr zurückspielen. Ich musste leider ein uraltes Backup ohne Redmatic einspielen. Bis das alles wieder gepasst hat... Möchte ich natürlich vermeiden.

Viele Grüße Roland

hobbyquaker commented 4 years ago

Nach schnellem Überfliegen:

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - [red] Uncaught Exception:
Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - TypeError: Converting circular structure to JSON
Mar 13 19:39:13 TaRoCCU3 daemon.err node-red:     at JSON.stringify (<anonymous>)
Mar 13 19:39:13 TaRoCCU3 daemon.err node-red:     at WebSocket.websocket.on (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-alexa-remote2/node_modules/alexa-remote2/alexa-wsmqtt.js:127:111)

Hier wird ein Crash durch node-red-contrib-alexa-remote2 verursacht, da müsstest ein Issue dazu im entsprechenden Github Repo aufmachen.

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - [red] Uncaught Exception:
Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - TypeError: Cannot read property 'user' of undefined
Mar 14 20:00:33 TaRoCCU3 daemon.err node-red:     at rega.exec (/usr/local/addons/redmatic/lib/rega-auth.js:23:21)
Mar 14 20:00:33 TaRoCCU3 daemon.err node-red:     at Request.request [as _callback] (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-rega/index.js:114:17)

Hier hat node-red-contrib-ccu ein Absturz verursacht, da scheint es ein schwerwiegenden, mir bisher unbekannten, Bug zu geben. Darum kümmere ich mich "asap".

Was auch noch auffällt:

[ccu-connection:CCU3]

Du hast einen CCU Connection Node der nicht "localhost" sondern "CCU3" heisst. Beim Einsatz von RedMatic ist es wichtig die Konfiguration des ccu-connection Nodes hinsichtlich CCU und Callback Adresse nicht zu verändern (muss localhost oder 127.0.0.1 sein, ist das der Fall?). Außerdem darf es unter keinen Umständen mehrere ccu-connection Nodes geben - Ausnahme: Du hast mehrere CCUs :)

UserRG commented 4 years ago

Danke für die Info. Den CCU-Config-Node hatte ich nur mal zu Testzwecken geändert und tatsächlich vergessen wieder zurückzustellen. Allerdings hat sich dadurch nichts verändert...

hobbyquaker commented 4 years ago

Zeig mal bitte ein Screenshot der Konfiguration des ccu-connection Nodes.

UserRG commented 4 years ago

CCU-Config1 CCU-Config2 Hi, ich habe die Config inzwischen wieder auf "localhost" geändert. Die Checkboxen sind nicht vollständig zu sehen, sind aber alle angehakt. Ich nutze überwiegend HMwired...

Ich hatte innerhalb eines Tages wieder 3 Abbrüche. Dummerweise habe ich heute neue HausBus-Taster installiert und musste die CCU neustarten, da waren die Logs leider weg...

hobbyquaker commented 4 years ago

Dann einfach mal noch 2 Abstürze abwarten und dann wieder Log zeigen ;)

UserRG commented 4 years ago

Alles klar, ich habe mal die Alexa-Nodes deinstalliert. Auf die kann ich zur Not auch verzichten. Ich hatte mir nur meine eigenen Antworten von Alexa programmiert. Alexa hat mir auf zuruf alles ausgeschalten und mir zum Schluss den Status der Fenster und Türen zugerufen. Das hat Anfangs auch gut funktioniert... Irgendwann war dann der Wurm drin. Irgendwie zickt aber das ganze System. Plötzlich waren zwei Rollos nach unten gefahren, warum ist mir ein Rätsel... Ich werde weiter berichten. Danke erstmal...

UserRG commented 4 years ago

Ich habe passend dazu gerade noch ein seltsames Verhalten. Mir wird ein Fehler bei einem Datenpunkt angezeigt, den ich aber ganz in der Suche/Einstellung finde: Es ist der Ausgang eines Wiredaktors 12/7... Datapoint unknown redmatic.2020-03-22T11_49_50.000Z.log.txt

UserRG commented 4 years ago

Noch eine weitere Erkenntnis: Nachdem ich den "unkown Datapoint" einmal geschalten hatte, wars auch wieder OK...

UserRG commented 4 years ago

Hallo und guten Morgen,

ich habe den Alexa-Skill, der offensichtlich hauptverantwortlich für die vielen Abstürze war entfernt und siehe da, es läuft stabiler.

Den Skill hatte ich eigentlich nur für Text-to-speech über Alexa. Also nur nice to have.

Gibt es hierzu ggf. etwas, das funktioniert?

Ich hatte mir per Alexa-Spachausgabe den Fensterstatus (offen / geschlossen) mitteilen lassen. Jetzt lasse ich mir das per LED-Status an einem Multitaster anzeigen. Geht natürlich auch…

Jedenfalls hatte ich neulich wieder einen Neustart, was aber m.E. an dem CCU-Node lag.

Manchmal scheint es bei den http-Requests zu unsauberen Rückmeldungen zu kommen. Ich fange zwar eigentlich msg.error ab, aber das scheint nicht zu funktionieren, da das Object komplett leer ist.

Habe jetzt einen Try/Catch eingebaut. Scheint bei „Stromzähler / Einspeisezähler“ funktioniert zu haben. Das habe ich jetzt auch für „Prepare Forecast next Days“ übernommen. Dann sollten auch da weniger Fehler auftreten.

Log anbei…

Mit freundlichem Gruß

Roland Grund

Anschrift: Meisenweg 1, 96179 Rattelsdorf

Mobil: 0176 47375380

Von: Sebastian Raff [mailto:notifications@github.com] Gesendet: Dienstag, 17. März 2020 21:58 An: rdmtc/RedMatic RedMatic@noreply.github.com Cc: Author author@noreply.github.com; UserRG roland.grund@gmx.de Betreff: Re: [rdmtc/RedMatic] laufend Abbrüche "Connection Lost" und Neustarts... (#329)

Nach schnellem Überfliegen:

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - [red] Uncaught Exception:

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - TypeError: Converting circular structure to JSON

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: at JSON.stringify ()

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: at WebSocket.websocket.on (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-alexa-remote2/node_modules/alexa-remote2/alexa-wsmqtt.js:127:111)

Hier wird ein Crash durch node-red-contrib-alexa-remote2 verursacht, da müsstest ein Issue dazu im entsprechenden Github Repo aufmachen.

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - [red] Uncaught Exception:

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - TypeError: Cannot read property 'user' of undefined

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: at rega.exec (/usr/local/addons/redmatic/lib/rega-auth.js:23:21)

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: at Request.request [as _callback] (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-rega/index.js:114:17)

Hier hat node-red-contrib-ccu ein Absturz verursacht, da scheint es ein schwerwiegenden, mir bisher unbekannten, Bug zu geben. Darum kümmere ich mich "asap".

Was auch noch auffällt:

[ccu-connection:CCU3]

Du hast einen CCU Connection Node der nicht "localhost" sondern "CCU3" heisst. Beim Einsatz von RedMatic ist es wichtig die Konfiguration des ccu-connection Nodes hinsichtlich CCU und Callback Adresse nicht zu verändern (muss localhost oder 127.0.0.1 sein). Außerdem darf es unter keinen Umständen mehrere ccu-connection Nodes geben - Ausnahme: Du hast mehrere CCUs :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4S3AR3AT2EREOCGQ4HLCDRH7P57ANCNFSM4LLDEY6Q . https://github.com/notifications/beacon/AN4S3AVFSR63GWDJRF4BFGLRH7P57A5CNFSM4LLDEY62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEPD42NA.gif

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756", "url": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

{ "ccu": { "VERSION": "3.51.6", "PRODUCT": "ccu3", "PLATFORM": "rpi3-armv7l", "deviceTypes": [ "HBW-LC4-IN4-DR", "HBW-SD6-Multikey", "HBW-SD6-Multikey-v1", "HBW-SD6-Multikey-v2", "HM-LC-Sw2-FM", "HM-RC-19-SW", "HM-RC-P1", "HM-RCV-50", "HmIP-BWTH", "HMIP-PS", "HMIP-PSM", "HmIP-RCV-50", "HMW-IO-12-Sw14-DR", "HMW-IO-12-Sw7-DR", "HMW-LC-Bl1-DR", "HMW-LC-Dim1L-DR", "HMW-LC-Sw2-DR", "HMW-RCV-50", "HMW-Sen-SC-12-DR" ] }, "redmatic": "5.5.2", "nodejs": "10.19.0", "@node-red-contrib-themes/midnight-red": "1.2.1", "ain2": "3.0.0", "node-red": "1.0.4", "node-red-contrib-doorbird": "0.2.6", "node-red-contrib-smartmeter": "0.2.3", "npm": "6.14.2", "node-red-contrib-alexa-home-skill": "0.1.17", "node-red-contrib-ccu": "3.1.4", "node-red-contrib-combine": "1.8.1", "node-red-contrib-cron-plus": "0.4.0", "node-red-contrib-fritz": "1.3.9", "node-red-contrib-harmony-websocket": "2.2.1", "node-red-contrib-luxtronik2": "0.4.0", "node-red-contrib-magichome-controller": "0.1.3", "node-red-contrib-milight-2": "1.0.8", "node-red-contrib-sun-position": "1.0.14", "node-red-dashboard": "2.19.4", "node-red-node-email": "1.7.7", "node-red-node-openweathermap": "0.2.1", "node-red-node-pushover": "0.0.17", "node-red-node-rbe": "0.2.8", "redmatic-led": "1.1.0", "redmatic-webapp": "0.3.1" }

Filesystem Size Used Available Use% Mounted on /dev/root 975.9M 448.1M 460.6M 49% / devtmpfs 480.9M 0 480.9M 0% /dev tmpfs 485.4M 0 485.4M 0% /dev/shm tmpfs 485.4M 148.0K 485.3M 0% /tmp tmpfs 485.4M 84.0K 485.3M 0% /run tmpfs 485.4M 3.8M 481.7M 1% /var tmpfs 485.4M 0 485.4M 0% /media /dev/mmcblk0p3 6.0G 492.0M 5.2G 8% /usr/local /dev/mmcblk0p1 255.7M 38.6M 217.2M 15% /mnt/boot_par /dev/sda1 28.6G 84.2M 28.5G 0% /media/usb1

176.0M /usr/local/addons/redmatic/var 100.8M /usr/local/addons/redmatic/lib 4.0K /usr/local/addons/redmatic/tmp

Mem: 835820K used, 158312K free, 4088K shrd, 72452K buff, 384880K cached CPU: 0% usr 2% sys 0% nic 97% idle 0% io 0% irq 0% sirq Load average: 0.09 0.09 0.09 1/233 1618 PID PPID USER STAT VSZ %VSZ %CPU COMMAND 1617 1549 root R 3116 0% 2% top -b -n1 852 1 root S 272m 28% 0% java -Xmx128m -Dos.arch=arm -Dlog4j.configuration=file:///etc/config/log4j.xml -Dfile.encoding=ISO-8859-1 -Dgnu.io.rxtx.SerialPorts=/dev/mmd_hmip -jar /opt/HMServer/HMIPServer.jar /etc/crRFD.conf /etc/HMServer.conf 1123 13271 root S 265m 27% 0% node-red 993 1 root S 43632 4% 0% /bin/ReGaHss.community -f /etc/rega.conf -l 2 827 1 root S 26056 3% 0% /bin/rfd -f /etc/config/rfd.conf -l 5 32612 785 root S 18724 2% 0% /bin/hs485d -l 5 -g -i 0 -f /var/etc/hs485d.conf 796 1 root S< 11972 1% 0% /bin/multimacd -f /etc/multimacd.conf -l 5 617 586 root S 9752 1% 0% /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D 614 586 root S 9160 1% 0% /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D 616 586 root S 9064 1% 0% /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D 615 586 root S 9044 1% 0% /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D 551 1 root S 7192 1% 0% /usr/sbin/ntpd -g 0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org 3.de.pool.ntp.org 586 584 root S 6588 1% 0% /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D 376 1 root S 5620 1% 0% /usr/sbin/irqbalance 597 1 root S 4652 0% 0% /usr/sbin/sshd 1549 617 root S 4556 0% 0% /bin/tclsh /www/addons/redmatic/log.cgi 193 1 root S 4392 0% 0% /bin/hss_led -l 6 785 1 root S 4160 0% 0% /bin/hs485dLoader -l 5 -dw /var/etc/hs485d.conf 220 1 root S 4152 0% 0% /sbin/udevd -d 1546 220 root S 4152 0% 0% /sbin/udevd -d 577 1 root S 4088 0% 0% /bin/eq3configd 987 1 root S 4068 0% 0% /bin/eq3-uds-services 591 1 root S 3908 0% 0% /bin/ssdpd 1292 1 root S 3244 0% 0% /usr/sbin/crond -f -l 9 1124 13271 root S 3244 0% 0% logger -p daemon.err -t node-red 619 1 root S 3160 0% 0% /usr/local/addons/cuxd/cuxd 430 1 root S 3116 0% 0% /sbin/syslogd -n -m 0 1 0 root S 3116 0% 0% init 13271 1 root S 3116 0% 0% {redmaticLoader} /bin/sh /usr/local/addons/redmatic/bin/redmaticLoader 433 1 root S 3116 0% 0% /sbin/klogd -n 463 1 root S 3116 0% 0% /sbin/udhcpc -b -t 100 -T 3 -S -x hostname:TaRoCCU3 -i eth0 -F TaRoCCU3 -V eQ3-CCU3 -s /bin/dhcp.script -p /var/run/udhcpc_eth0.pid 1618 1549 root S 3116 0% 0% grep -v ]$ 96 1 root S 2984 0% 0% watchdog -t 5 /dev/watchdog 87 1 root S 2968 0% 0% /usr/bin/psplash -n 392 1 dbus S 2892 0% 0% dbus-daemon --system 534 1 root S 1824 0% 0% /usr/sbin/ifplugd -i eth0 -fI -u0 -d10 538 1 root S 1824 0% 0% /usr/sbin/ifplugd -i wlan0 -MwI -u5 -d5 383 1 root S 1720 0% 0% /usr/sbin/rngd 584 1 root S 1580 0% 0% /usr/sbin/lighttpd-angel -f /etc/lighttpd/lighttpd.conf -D

tcp 0 0 127.0.0.1:1880 0.0.0.0: LISTEN 1123/node-red tcp 0 0 127.0.0.1:2047 0.0.0.0: LISTEN 1123/node-red tcp 0 0 127.0.0.1:2048 0.0.0.0:* LISTEN 1123/node-red

Chain INPUT (policy ACCEPT 7801K packets, 1733M bytes) pkts bytes target prot opt in out source destination
24M 5074M ACCEPT all -- lo 0.0.0.0/0 0.0.0.0/0
0 0 DROP tcp --
0.0.0.0/0 0.0.0.0/0 tcp dpt:8182 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8183 0 0 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:31901 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:31902 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:35987 177 8868 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:38088 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:39099 3 423 DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:161 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:32000 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:32001 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:32002 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:32010 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:39292 0 0 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:31999 0 0 DROP tcp -- * 0.0.0.0/0 0.0.0.0/0 tcp dpt:38181

Feb 24 10:20:13

Feb 29 15:41:37 Package node-red-node-serialport 0.10.0 is up-to-date Package node-red-node-sqlite update 0.4.2 to 0.4.1 Get https://github.com/rdmtc/RedMatic/releases/download/v5.3.10/redmatic-pkg-node-red-node-sqlite-0.4.1.tar.gz Downloaded 6M in 2 seconds File integrity check successful Extracting node-red-node-sqlite.tar.gz Done. Package node-red-contrib-smartmeter 0.2.3 is up-to-date Package node-red-contrib-modbus 5.2.0 is up-to-date Package node-red-contrib-mysensors 3.3.1 is up-to-date Package node-red-contrib-rfxcom update 2.10.0 to 2.9.1 Get https://github.com/rdmtc/RedMatic/releases/download/v5.3.10/redmatic-pkg-node-red-contrib-rfxcom-2.9.1.tar.gz Downloaded 602K in 1 seconds File integrity check successful Extracting node-red-contrib-rfxcom.tar.gz Done. Package node-red-contrib-zigbee 0.17.1 is up-to-date Package node-red-contrib-johnny-five 1.0.0-beta.1 is up-to-date Package node-red-contrib-enocean 0.7.9 is up-to-date Package redmatic-homekit update 3.1.0 to 3.0.5 Get https://github.com/rdmtc/RedMatic/releases/download/v5.3.10/redmatic-pkg-redmatic-homekit-3.0.5.tar.gz Downloaded 18M in 7 seconds File integrity check successful Extracting redmatic-homekit.tar.gz Done. Package node-red-contrib-doorbird 0.2.6 is up-to-date Package redmatic-canbus 1.0.1 is up-to-date Package node-red-contrib-comfoair 0.0.4 is up-to-date

Feb 29 23:20:06 Package node-red-node-serialport 0.10.0 is up-to-date Package node-red-node-sqlite update 0.4.1 to 0.4.2 Get https://github.com/rdmtc/RedMatic/releases/download/v5.4.1/redmatic-pkg-node-red-node-sqlite-0.4.2.tar.gz Downloaded 6M in 5 seconds File integrity check successful Extracting node-red-node-sqlite.tar.gz Done. Package node-red-contrib-smartmeter 0.2.3 is up-to-date Package node-red-contrib-modbus 5.2.0 is up-to-date Package node-red-contrib-mysensors 3.3.1 is up-to-date Package node-red-contrib-rfxcom update 2.9.1 to 2.10.0 Get https://github.com/rdmtc/RedMatic/releases/download/v5.4.1/redmatic-pkg-node-red-contrib-rfxcom-2.10.0.tar.gz Downloaded 605K in 1 seconds File integrity check successful Extracting node-red-contrib-rfxcom.tar.gz Done. Package node-red-contrib-zigbee 0.17.1 is up-to-date Package node-red-contrib-johnny-five 1.0.0-beta.1 is up-to-date Package node-red-contrib-enocean 0.7.9 is up-to-date Package redmatic-homekit update 3.0.5 to 3.1.0 Get https://github.com/rdmtc/RedMatic/releases/download/v5.4.1/redmatic-pkg-redmatic-homekit-3.1.0.tar.gz Downloaded 18M in 14 seconds File integrity check successful Extracting redmatic-homekit.tar.gz Done. Package node-red-contrib-doorbird 0.2.6 is up-to-date Package redmatic-canbus 1.0.1 is up-to-date Package node-red-contrib-comfoair 0.0.4 is up-to-date

Mar 15 18:51:32 Package node-red-contrib-smartmeter 0.2.3 is up-to-date Get https://github.com/rdmtc/RedMatic/releases/download/v5.5.2/redmatic-pkg-node-red-contrib-enocean-0.7.9.tar.gz Downloaded 1M in 1 seconds File integrity check successful Extracting node-red-contrib-enocean.tar.gz Done. Package node-red-contrib-doorbird 0.2.6 is up-to-date

Apr 1 01:00:01 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 1 01:15:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 1 01:30:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 1 01:45:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 1 08:59:19 TaRoCCU3 daemon.err node-red[1123]: [ccu-connection:localhost] < HmIP-RF setValue Error: XML-RPC fault: Generic error (UNREACH) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red[1123]: [ccu-connection:localhost] rpc > HmIP-RF setValue ["0001D3C99C5197:3","STATE",false] < Error: XML-RPC fault: Generic error (UNREACH) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: (node:1123) UnhandledPromiseRejectionWarning: Error: XML-RPC fault: Generic error (UNREACH) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at createFault (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-xmlrpc/lib/deserializer.js:83:21) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at Deserializer.onDone (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-xmlrpc/lib/deserializer.js:89:21) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at SAXStream.emit (events.js:198:13) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at SAXParser.SAXStream._parser.onend (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-xmlrpc/node_modules/sax/lib/sax.js:171:8) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at emit (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-xmlrpc/node_modules/sax/lib/sax.js:325:33) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at end (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-xmlrpc/node_modules/sax/lib/sax.js:363:3) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at SAXParser.end (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-xmlrpc/node_modules/sax/lib/sax.js:137:24) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at SAXStream.end (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-xmlrpc/node_modules/sax/lib/sax.js:209:16) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at IncomingMessage.onend (_stream_readable.js:672:10) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at Object.onceWrapper (events.js:286:20) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at IncomingMessage.emit (events.js:203:15) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at endReadableNT (_stream_readable.js:1145:12) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: at process._tickCallback (internal/process/next_tick.js:63:19) Apr 1 08:59:19 TaRoCCU3 daemon.err node-red: (node:1123) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3) Apr 1 19:06:17 TaRoCCU3 daemon.err node-red[1123]: [function:Datenaufbereitung PV/Strom] TypeError: Cannot read property 'Data' of undefined Apr 2 01:00:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 2 01:15:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 2 01:30:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 2 01:45:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 3 01:00:01 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 3 01:15:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 3 01:30:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 3 01:45:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 3 17:58:02 TaRoCCU3 daemon.err node-red[1123]: [function:Stromzähler / Einspeisezähler] Error: Unvollständige Daten: [object Object] Apr 4 01:00:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 4 01:15:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 4 01:30:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 4 01:45:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 4 11:26:30 TaRoCCU3 daemon.err node-red[1123]: [function:Datenaufbereitung PV/Strom] TypeError: Cannot read property 'Data' of undefined Apr 4 14:32:33 TaRoCCU3 daemon.err node-red[1123]: [MagicHome:ff0fbf3.0e684c] lamp 'LED_TV' not reachable. Apr 4 14:32:33 TaRoCCU3 daemon.err node-red[1123]: [MagicHome:ff0fbf3.0e684c] lamp 'LED_TV' not reachable. Apr 4 14:32:33 TaRoCCU3 daemon.err node-red[1123]: [MagicHome:ff0fbf3.0e684c] lamp 'LED_TV' not reachable. Apr 4 14:32:33 TaRoCCU3 daemon.err node-red[1123]: [MagicHome:ff0fbf3.0e684c] lamp 'LED_TV' not reachable. Apr 4 14:32:33 TaRoCCU3 daemon.err node-red[1123]: [MagicHome:ff0fbf3.0e684c] lamp 'LED_TV' not reachable. Apr 4 14:32:33 TaRoCCU3 daemon.err node-red[1123]: [MagicHome:ff0fbf3.0e684c] lamp 'LED_TV' not reachable. Apr 4 21:27:12 TaRoCCU3 daemon.err node-red[1123]: [function:Stromzähler / Einspeisezähler] Error: Unvollständige Daten: [object Object] Apr 5 01:00:01 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 5 01:15:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 5 01:30:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Apr 5 01:45:00 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined

Sineos commented 4 years ago

Falls es dir um diese geht: Apr 1 01:00:01 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined

Das sieht mir nach einem Programmierfehler in einer deiner eigenen NR Function Module aus. Du versuchst auf eine Eigenschaft eines Objekts zuzugreifen, die es nicht gibt.

UserRG commented 4 years ago

Hi,Ja aber eben nur manchmal... Das ist die Response von Openweather... Manchmal ist das msg-object leer und dann gibts logischerweise den Fehler... Ich denke mit dem try/catch sollte der Fehler abgefangen werden. VGRoland -------- Ursprüngliche Nachricht --------Von: Sineos notifications@github.com Datum: 05.04.20 14:27 (GMT+01:00) An: rdmtc/RedMatic RedMatic@noreply.github.com Cc: UserRG roland.grund@gmx.de, Author author@noreply.github.com Betreff: Re: [rdmtc/RedMatic] laufend Abbrüche "Connection Lost" und Neustarts... (#329) Falls es dir um diese geht: Apr 1 01:00:01 TaRoCCU3 daemon.err node-red[1123]: [function:Prepare Forecast next Days] TypeError: Cannot read property 'dt_txt' of undefined Das sieht mit nach einem Programmierfehler in einer deiner eigenen NR Function Module aus. Du versuchst auf eine Eigenschaft eines Objekts zuzugreifen, die es nicht gibt.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-609408572", "url": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-609408572", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

UserRG commented 4 years ago

Hallo,

noch etwas, was mir aufgefallen ist:

Nach einem Neustart von NodeRed bzw. der CCU3 funktionieren die „get Value“ – Nodes nicht sofort.

Haben diese einmal „geschalten“ funktioniert es wieder.

Hier in diesem Beispiel ist das ein Relais, welches an einem 12er – Eingangsmodul (wired) anliegt.

Das Problem besteht aber auch mit Steckdosen, Licht etc….

Wie gesagt erledigt sich das Problem, sobald sich der Status einmal geändert hat…

Mit freundlichem Gruß

Roland Grund

Anschrift: Meisenweg 1, 96179 Rattelsdorf

Mobil: 0176 47375380

Von: Sebastian Raff [mailto:notifications@github.com] Gesendet: Dienstag, 17. März 2020 21:58 An: rdmtc/RedMatic RedMatic@noreply.github.com Cc: Author author@noreply.github.com; UserRG roland.grund@gmx.de Betreff: Re: [rdmtc/RedMatic] laufend Abbrüche "Connection Lost" und Neustarts... (#329)

Nach schnellem Überfliegen:

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - [red] Uncaught Exception:

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - TypeError: Converting circular structure to JSON

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: at JSON.stringify ()

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: at WebSocket.websocket.on (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-alexa-remote2/node_modules/alexa-remote2/alexa-wsmqtt.js:127:111)

Hier wird ein Crash durch node-red-contrib-alexa-remote2 verursacht, da müsstest ein Issue dazu im entsprechenden Github Repo aufmachen.

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - [red] Uncaught Exception:

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - TypeError: Cannot read property 'user' of undefined

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: at rega.exec (/usr/local/addons/redmatic/lib/rega-auth.js:23:21)

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: at Request.request [as _callback] (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-rega/index.js:114:17)

Hier hat node-red-contrib-ccu ein Absturz verursacht, da scheint es ein schwerwiegenden, mir bisher unbekannten, Bug zu geben. Darum kümmere ich mich "asap".

Was auch noch auffällt:

[ccu-connection:CCU3]

Du hast einen CCU Connection Node der nicht "localhost" sondern "CCU3" heisst. Beim Einsatz von RedMatic ist es wichtig die Konfiguration des ccu-connection Nodes hinsichtlich CCU und Callback Adresse nicht zu verändern (muss localhost oder 127.0.0.1 sein). Außerdem darf es unter keinen Umständen mehrere ccu-connection Nodes geben - Ausnahme: Du hast mehrere CCUs :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4S3AR3AT2EREOCGQ4HLCDRH7P57ANCNFSM4LLDEY6Q .

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756", "url": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

UserRG commented 4 years ago

Hi,

ich hatte heute ein paar Probleme mit einem Firmware-Update eines Drittanbieters (Haus-Bus).

Ich hatte einen Multitaster (wired) im Einsatz. Bei diesem funktionierte der Helligkeitssensor nur sporadisch. Heute hatte ich entdeckt, dass ein Geräte-Firmware-Update zur Verfügung stand und ich habe es mal angeklickt. Großer Fehler wie sich herausstellte. Danach ging nämlich gar nichts mehr am BUS. Kein Licht, Kein Rollo. Nichts.

Ich habe die Taster von Haus-Bus alle abgelernt und gelöscht und auch vom BUS entfernt (Drähte entfernt).

Dann ging wieder alles, nachdem ich die Aktoren und die CCU einmal neu Durchgestartet habe.

Es gab auch noch eine Aktualisierung der Add-On-Version von Hausbus. Diese habe ich ebenfalls aktualisiert und habe nur wieder einen Multitaster in Betrieb genommen. Das scheint auch zu funktionieren, allerdings streikt jetzt Redmatic. Es startet gar nicht erst.

Irgendwie scheint der die Context-Dateien nicht zu bekommen?!?

Kann man das irgendwie retten, oder muss ich alles neu instalieren!?

LOG anbei.

Danke für die HIlfe

Mit freundlichem Gruß

Roland Grund

Anschrift: Meisenweg 1, 96179 Rattelsdorf

Mobil: 0176 47375380

Von: Sebastian Raff [mailto:notifications@github.com] Gesendet: Dienstag, 17. März 2020 21:58 An: rdmtc/RedMatic RedMatic@noreply.github.com Cc: Author author@noreply.github.com; UserRG roland.grund@gmx.de Betreff: Re: [rdmtc/RedMatic] laufend Abbrüche "Connection Lost" und Neustarts... (#329)

Nach schnellem Überfliegen:

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - [red] Uncaught Exception:

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: 13 Mar 19:39:13 - TypeError: Converting circular structure to JSON

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: at JSON.stringify ()

Mar 13 19:39:13 TaRoCCU3 daemon.err node-red: at WebSocket.websocket.on (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-alexa-remote2/node_modules/alexa-remote2/alexa-wsmqtt.js:127:111)

Hier wird ein Crash durch node-red-contrib-alexa-remote2 verursacht, da müsstest ein Issue dazu im entsprechenden Github Repo aufmachen.

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - [red] Uncaught Exception:

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: 14 Mar 20:00:33 - TypeError: Cannot read property 'user' of undefined

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: at rega.exec (/usr/local/addons/redmatic/lib/rega-auth.js:23:21)

Mar 14 20:00:33 TaRoCCU3 daemon.err node-red: at Request.request [as _callback] (/usr/local/addons/redmatic/var/node_modules/node-red-contrib-ccu/node_modules/homematic-rega/index.js:114:17)

Hier hat node-red-contrib-ccu ein Absturz verursacht, da scheint es ein schwerwiegenden, mir bisher unbekannten, Bug zu geben. Darum kümmere ich mich "asap".

Was auch noch auffällt:

[ccu-connection:CCU3]

Du hast einen CCU Connection Node der nicht "localhost" sondern "CCU3" heisst. Beim Einsatz von RedMatic ist es wichtig die Konfiguration des ccu-connection Nodes hinsichtlich CCU und Callback Adresse nicht zu verändern (muss localhost oder 127.0.0.1 sein). Außerdem darf es unter keinen Umständen mehrere ccu-connection Nodes geben - Ausnahme: Du hast mehrere CCUs :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4S3AR3AT2EREOCGQ4HLCDRH7P57ANCNFSM4LLDEY6Q .

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756", "url": "https://github.com/rdmtc/RedMatic/issues/329#issuecomment-600296756", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]