NEWS
UNSOLVED IOBroker & PivCCU laufen auf RPi instabil
-
Systemdata Bitte Ausfüllen Hardwaresystem: Pi2 Arbeitsspeicher: 1GB Festplattenart: SD-Karte Betriebssystem: Linux Node-Version: 10.x.x Nodejs-Version: 10.17.0 NPM-Version: 6.11.3 Installationsart: Skript Image genutzt: Ja Hallo Gemeinde,
Ich habe seit geraumer Zeit ein instabiles System.
Könnt ihr mir Hilfestellung in der Analyse geben. Leider kann ich nicht sagen, ob die pivCCU das Problem ist oder iobroker...Über Eure Unterstüzung bin ich jetzt schon mal sehr dankbar.
-
@jensmaehn sagte in IOBroker & PivCCU laufen auf RPi instabil:
Könnt ihr mir Hilfestellung in der Analyse geben.
Gerne mit ein wenig mehr Infos.
@jensmaehn sagte in IOBroker & PivCCU laufen auf RPi instabil:
Leider kann ich nicht sagen, ob die pivCCU das Problem ist oder iobroker...
Was hältst du von einer dritten Möglichkeit?
Der RasPi!- Wieviele Instanzen?
- mit Raspbian lite oder full?
- Was für ein Netzteil?
- Hängen da noch Verbraucher an GPIO oder USB?
Außerdem wären noch ein paar Infos hilfreich, was unter "läuft instabil" zu verstehen ist.
-
Also, ich habe aktuell 20 Instanzen laufen, keine Verbraucher an GPIO noch USB.
Ähm, die Frage nach Rasbian full oder lite, wüsste ich gerade nicht zu beantworten noch wie ich es herauskriegen soll.
Wegen dem Netzteil kann ich heute abend nachschauen.Was verstehe ich mit Instabilität: manches mal hängt sich IObroker während eines Adapter updates via Admin webinterface auf.
Ein anderes Mal scheint die Kommunikation zwischen Iobroker und pivccu abzubrechen. Und dann gibt es noch die Momente, in denen die pivccu die Verbindung zu den Homematic Ip Devices verliert. -
@jensmaehn sagte in IOBroker & PivCCU laufen auf RPi instabil:
ich habe aktuell 20 Instanzen laufen,
Das ist es!
bei 1GB RAM kan es ab 15 Instanzen eeng werden. 20 Instanzen UND piVCCU ist mit Sicherheit die Ursache
Bei einem Adapter Update wird nämlich noch weiteres RAM benötigt, das dann nicht zur Verfügung steht.Was sagt denn top?
Wir hatten vor einigen Tagen exakt die gleiche Diskussion, da war es dann auch dass das RAM am Limit war und bei Updates in die Knie ging
-
Hier ein Auszug aus PS -Aux
pi@All-In-One_RasPi:~ $ ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.6 27028 5776 ? Ss 16:41 0:01 /sbin/init root 2 0.0 0.0 0 0 ? S 16:41 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? I< 16:41 0:00 [rcu_gp] root 4 0.0 0.0 0 0 ? I< 16:41 0:00 [rcu_par_gp] root 8 0.0 0.0 0 0 ? I< 16:41 0:00 [mm_percpu_wq] root 9 0.0 0.0 0 0 ? S 16:41 0:00 [ksoftirqd/0] root 10 0.1 0.0 0 0 ? I 16:41 0:10 [rcu_sched] root 11 0.0 0.0 0 0 ? I 16:41 0:00 [rcu_bh] root 12 0.0 0.0 0 0 ? S 16:41 0:00 [migration/0] root 13 0.0 0.0 0 0 ? S 16:41 0:00 [cpuhp/0] root 14 0.0 0.0 0 0 ? S 16:41 0:00 [cpuhp/1] root 15 0.0 0.0 0 0 ? S 16:41 0:00 [migration/1] root 16 0.0 0.0 0 0 ? S 16:41 0:00 [ksoftirqd/1] root 17 0.0 0.0 0 0 ? I 16:41 0:00 [kworker/1:0-eve] root 19 0.0 0.0 0 0 ? S 16:41 0:00 [cpuhp/2] root 20 0.0 0.0 0 0 ? S 16:41 0:00 [migration/2] root 21 0.0 0.0 0 0 ? S 16:41 0:00 [ksoftirqd/2] root 24 0.0 0.0 0 0 ? S 16:41 0:00 [cpuhp/3] root 25 0.0 0.0 0 0 ? S 16:41 0:00 [migration/3] root 26 0.0 0.0 0 0 ? S 16:41 0:00 [ksoftirqd/3] root 29 0.0 0.0 0 0 ? S 16:41 0:00 [kdevtmpfs] root 30 0.0 0.0 0 0 ? I< 16:41 0:00 [netns] root 31 0.0 0.0 0 0 ? I 16:41 0:00 [kworker/0:1-eve] root 32 0.0 0.0 0 0 ? I 16:41 0:00 [kworker/1:1-mm_] root 34 0.0 0.0 0 0 ? S 16:41 0:00 [khungtaskd] root 35 0.0 0.0 0 0 ? S 16:41 0:00 [oom_reaper] root 36 0.0 0.0 0 0 ? I< 16:41 0:00 [writeback] root 37 0.0 0.0 0 0 ? S 16:41 0:00 [kcompactd0] root 38 0.0 0.0 0 0 ? I< 16:41 0:00 [crypto] root 39 0.0 0.0 0 0 ? I< 16:41 0:00 [kblockd] root 40 0.0 0.0 0 0 ? S 16:41 0:00 [watchdogd] root 41 0.0 0.0 0 0 ? I< 16:41 0:00 [rpciod] root 42 0.0 0.0 0 0 ? I< 16:41 0:00 [kworker/u9:0-hc] root 43 0.0 0.0 0 0 ? I< 16:41 0:00 [xprtiod] root 46 0.0 0.0 0 0 ? S 16:41 0:00 [kswapd0] root 47 0.0 0.0 0 0 ? I< 16:41 0:00 [nfsiod] root 58 0.0 0.0 0 0 ? I< 16:41 0:00 [kthrotld] root 60 0.0 0.0 0 0 ? I< 16:41 0:00 [iscsi_eh] root 61 0.0 0.0 0 0 ? I< 16:41 0:00 [dwc_otg] root 62 0.0 0.0 0 0 ? I< 16:41 0:00 [DWC Notificatio] root 63 0.0 0.0 0 0 ? S< 16:41 0:00 [vchiq-slot/0] root 64 0.0 0.0 0 0 ? S< 16:41 0:00 [vchiq-recy/0] root 65 0.0 0.0 0 0 ? S< 16:41 0:00 [vchiq-sync/0] root 66 0.0 0.0 0 0 ? S 16:41 0:00 [vchiq-keep/0] root 67 0.0 0.0 0 0 ? S< 16:41 0:00 [SMIO] root 69 0.0 0.0 0 0 ? S 16:41 0:00 [irq/86-mmc1] root 71 0.0 0.0 0 0 ? I< 16:41 0:00 [mmc_complete] root 72 0.0 0.0 0 0 ? I< 16:41 0:00 [kworker/2:1H-kb] root 73 0.0 0.0 0 0 ? I< 16:41 0:01 [kworker/0:1H-kb] root 75 0.0 0.0 0 0 ? S 16:41 0:00 [jbd2/mmcblk0p2-] root 76 0.0 0.0 0 0 ? I< 16:41 0:00 [ext4-rsv-conver] root 78 0.0 0.0 0 0 ? I< 16:41 0:00 [ipv6_addrconf] root 80 0.0 0.0 0 0 ? I< 16:41 0:00 [kworker/3:1H-kb] root 103 0.0 0.5 26904 5148 ? Ss 16:41 0:01 /lib/systemd/systemd-journald root 137 0.0 0.3 14584 3196 ? Ss 16:41 0:04 /lib/systemd/systemd-udevd root 153 0.0 0.0 0 0 ? I 16:41 0:00 [kworker/u8:2-ev] root 230 0.0 0.0 0 0 ? S< 16:41 0:00 [SMIO] root 248 0.0 0.0 0 0 ? I< 16:41 0:00 [mmal-vchiq] root 249 0.0 0.0 0 0 ? I< 16:41 0:00 [mmal-vchiq] root 250 0.0 0.0 0 0 ? I< 16:41 0:00 [mmal-vchiq] root 261 0.0 0.0 0 0 ? I 16:41 0:00 [kworker/u8:3-ev] root 272 0.0 0.0 0 0 ? I< 16:41 0:00 [cfg80211] root 273 0.0 0.0 0 0 ? I< 16:41 0:00 [brcmf_wq/mmc1:0] root 275 0.0 0.0 0 0 ? S 16:41 0:00 [brcmf_wdog/mmc1] nobody 385 0.0 0.2 5296 2284 ? Ss 16:41 0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket root 388 0.0 0.2 23756 2504 ? Ssl 16:41 0:00 /usr/sbin/rsyslogd -n root 390 0.0 0.4 7412 4308 ? Ss 16:41 0:00 /lib/systemd/systemd-logind avahi 395 0.0 0.3 6528 3004 ? Ss 16:41 0:05 avahi-daemon: running [All-In-OneRasPi.local] message+ 397 0.0 0.3 6512 3316 ? Ss 16:41 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopi avahi 409 0.0 0.0 6396 312 ? S 16:41 0:00 avahi-daemon: chroot helper root 420 0.0 0.4 10000 3840 ? Ss 16:41 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant root 425 0.0 0.2 5696 2292 ? Ss 16:41 0:00 /usr/sbin/cron -f root 476 0.0 0.0 2084 136 ? S 16:41 0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 460800 noflow - b8:27:eb root 478 0.0 0.0 0 0 ? I< 16:41 0:00 [kworker/u9:2-hc] root 483 0.0 0.3 7076 3176 ? Ss 16:41 0:00 /usr/lib/bluetooth/bluetoothd systemd+ 513 0.0 0.3 16968 3464 ? Ssl 16:41 0:00 /lib/systemd/systemd-timesyncd root 515 0.0 0.2 6648 2088 ? Ss 16:41 0:00 /sbin/dhclient -4 -v -pf /run/dhclient.br0.pid -lf /var/lib/dhcp root 571 0.0 0.1 4588 1280 tty1 Ss+ 16:41 0:00 /sbin/agetty --noclear tty1 linux root 592 0.0 0.5 10208 5140 ? Ss 16:41 0:00 /usr/sbin/sshd -D redis 619 1.4 0.4 30092 4304 ? Ssl 16:41 2:26 /usr/bin/redis-server 127.0.0.1:6379 iobroker 625 1.3 5.9 161832 56652 ? Ssl 16:41 2:21 iobroker.js-controller root 645 0.0 0.0 0 0 ? I 18:42 0:00 [kworker/3:0-mm_] iobroker 661 0.1 5.2 151360 50032 ? Sl 16:41 0:18 io.admin.0 root 716 0.0 0.2 8188 1956 ? Ss 16:41 0:00 /usr/bin/lxc-start --lxcpath /var/lib/piVCCU3 --name lxc --pidfi root 727 0.0 0.0 3116 448 ? Ss 16:41 0:00 init root 848 0.0 0.2 4392 2836 ? S 16:41 0:02 /bin/hss_led -l 6 iobroker 883 0.0 0.0 2892 4 ? Ss 16:41 0:00 dbus-daemon --system root 914 0.0 0.1 3116 1648 ? S 16:41 0:00 /sbin/syslogd -n -m 0 root 916 0.0 0.0 3116 324 ? S 16:41 0:00 /sbin/klogd -n root 936 0.0 0.0 3116 0 ? Ss 16:41 0:00 /sbin/udhcpc -b -t 100 -T 3 -S -x hostname:ccu3-webui -i eth0 -F root 1031 0.0 0.1 1824 1036 ? S 16:41 0:00 /usr/sbin/ifplugd -i eth0 -fI -u0 -d10 iobroker 1040 0.1 3.9 140092 37616 ? Sl 16:41 0:10 io.discovery.0 iobroker 1063 0.1 4.4 147224 41888 ? Sl 16:41 0:11 io.web.0 root 1072 0.0 0.3 7192 3588 ? Ss 16:41 0:00 /usr/sbin/ntpd -g ntp.homematic.com root 1093 0.0 0.0 4088 544 ? S 16:41 0:00 /bin/eq3configd root 1101 0.0 0.0 1580 136 ? S 16:41 0:00 /usr/sbin/lighttpd-angel -f /etc/lighttpd/lighttpd.conf -D root 1104 0.0 0.4 6584 4320 ? S 16:41 0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D root 1108 0.0 0.2 3908 2708 ? S 16:41 0:00 /bin/ssdpd root 1144 0.0 0.5 7780 5108 ? S 16:41 0:01 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D root 1145 0.0 0.5 7784 5344 ? S 16:41 0:01 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D root 1146 0.0 0.5 7776 5108 ? S 16:41 0:01 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D root 1147 0.0 0.5 7696 5412 ? S 16:41 0:01 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D root 1160 0.0 0.3 11964 2896 ? S<l 16:41 0:00 /bin/multimacd -f /etc/multimacd.conf -l 5 root 1204 0.0 1.3 17972 12904 ? Sl 16:42 0:02 /bin/rfd -f /etc/config/rfd.conf -l 5 iobroker 1219 0.8 5.1 152024 48596 ? Sl 16:42 1:27 io.history.0 root 1233 0.8 9.2 256764 87324 ? Sl 16:42 1:21 java -Xmx128m -Dos.arch=arm -Dlog4j.configuration=file:///etc/co iobroker 1256 1.0 8.8 186296 83544 ? Sl 16:42 1:48 io.javascript.0 iobroker 1324 0.3 4.9 149004 46560 ? Sl 16:42 0:31 io.rpi2.0 iobroker 1378 0.1 4.1 143264 39828 ? Sl 16:42 0:10 io.socketio.0 iobroker 1419 0.1 4.9 150828 46520 ? Sl 16:42 0:14 io.cloud.0 iobroker 1443 0.1 6.2 162100 58804 ? Sl 16:42 0:14 io.backitup.0 iobroker 1463 0.2 5.2 151260 49536 ? Sl 16:42 0:20 io.hm-rega.1 root 1475 0.0 0.0 4068 588 ? S 16:42 0:00 /bin/eq3-uds-services root 1482 0.2 1.8 34900 17832 ? Sl 16:42 0:25 /bin/ReGaHss.community -f /etc/rega.conf -l 2 root 1522 0.0 0.4 5488 4328 ? Ss 16:42 0:01 /opt/mh/openvpn --daemon --config /usr/local/etc/config/addons/m root 1550 0.0 0.1 3244 1732 ? S 16:42 0:00 /usr/sbin/crond -f -l 9 iobroker 1569 0.1 4.4 145192 41764 ? Sl 16:42 0:16 io.tradfri.0 iobroker 1604 0.2 5.2 153996 49764 ? Sl 16:42 0:28 io.yahka.0 iobroker 1656 3.5 5.8 157604 55736 ? Sl 16:42 5:52 io.info.0 iobroker 1730 0.1 4.6 147264 44132 ? Sl 16:42 0:19 io.sonos.0 iobroker 2118 0.2 5.3 151932 50940 ? Sl 16:42 0:25 io.hm-rpc.0 iobroker 2141 0.2 4.8 151100 46064 ? Sl 16:43 0:25 io.yahka.1 iobroker 2328 0.1 3.9 139772 37228 ? Sl 16:43 0:10 io.scenes.0 iobroker 2357 0.1 4.6 148208 43704 ? Sl 16:43 0:14 io.sonoff.0 iobroker 2536 0.9 5.7 156612 54120 ? Sl 16:43 1:35 io.mqtt-client.0 root 7386 0.0 0.0 0 0 ? I< 16:46 0:00 [kworker/1:0H-kb] root 8805 0.0 0.0 0 0 ? I 18:48 0:00 [kworker/2:0-cgr] root 14020 0.0 0.0 0 0 ? I< 19:16 0:00 [kworker/2:2H] root 15285 0.0 0.0 0 0 ? I< 19:17 0:00 [kworker/1:2H] root 17925 0.0 0.0 0 0 ? I 19:19 0:00 [kworker/2:2-mm_] root 17936 0.0 0.0 0 0 ? I< 19:19 0:00 [kworker/3:0H] root 18963 0.0 0.0 0 0 ? I< 19:20 0:00 [kworker/0:2H] root 20037 0.0 0.0 0 0 ? I 19:21 0:00 [kworker/3:1-mm_] root 20533 0.0 0.0 0 0 ? I 16:56 0:02 [kworker/0:0-eve] root 24650 0.0 0.0 0 0 ? I 19:24 0:00 [kworker/2:1-eve] root 25874 0.0 0.0 0 0 ? I< 19:25 0:00 [kworker/1:1H] root 26213 0.0 0.0 0 0 ? I< 19:25 0:00 [kworker/0:0H] root 27064 0.0 0.0 0 0 ? I 19:26 0:00 [kworker/3:2-mm_] root 27269 0.0 0.0 0 0 ? I< 19:26 0:00 [kworker/2:0H] root 27270 0.0 0.0 0 0 ? I< 19:26 0:00 [kworker/3:2H] root 27635 0.0 0.0 0 0 ? I 19:26 0:00 [kworker/0:2-cgr] root 28015 0.0 0.0 0 0 ? I 19:26 0:00 [kworker/u8:0-ev] root 29312 0.0 0.0 0 0 ? I 19:27 0:00 [kworker/2:3-cgr] root 29321 0.1 0.6 11528 5756 ? Ss 19:27 0:00 sshd: pi [priv] pi 29495 0.0 0.5 9656 4868 ? Ss 19:28 0:00 /lib/systemd/systemd --user pi 29498 0.0 0.1 28692 1292 ? S 19:28 0:00 (sd-pam) pi 29505 0.0 0.3 11528 3336 ? R 19:28 0:00 sshd: pi@pts/1 pi 29508 0.2 0.4 6664 4296 pts/1 Ss 19:28 0:00 -bash pi 31730 0.0 0.3 8144 2936 pts/1 R+ 19:29 0:00 ps -aux
-
Mein Netzteil für den Pi ist von Hama und liefert laut Typenschild bei 5V DC 2,4A... Sollte also ausreichend sein, oder?
-
@jensmaehn
Setze bitte das log in Code-Tags!Das Netzteil ist ja längst außen vor.
Du hast zu viele Instanzen -
@Homoran
Hab jetzt mal auf 15 aktive Adapter reduziert und beobachte weiter, danke schon mal für den Hinweis -
Ich schätze auch, dass es am RAM liegt. Betreibe selbst auch einen Pi3b+ mit pivccu und dem iob. Obwohl ich die Anzahl der aktiven Instanzen schon so gering wie möglich halte und normalerweise immer noch vermeintlich genug freier Speicher angezeigt wird, habe ich auch alle paar Wochen mal "Hänger". In irgendwelchen Situationen scheint kurzfristig mal mehr benötigt zu werden, was das System dann in die Knie zwingt. Woran es bei den Hängern im Betrieb lag, konnte ich noch nie exakt feststellen, jedoch konnte ich das Problem schon künstlich herbeiführen und live in top/htop beobachten.
Daher liegt hier jetzt auch schon der Pi4/4GB bereit und wartet darauf, die Aufgaben demnächst zu übernehmen. Bis ich Erfahrungsberichte liefern kann, dauert es aber noch eine Weile.