Seite 1 von 1

Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 17. Dez 2021 18:49
von guinnes
Hallo
Ich habe seit einigen Monaten unerklärliche Abstürze von meinem Openhab-System ( Raspberry, OH-Version 2.5.12-1 )
Das System macht scheinbar nichts mehr, weder rrd4j noch MySql zeichnen Werte auf, das syslog und daemon.log laufen voll bis die SD-Karte voll ist.
Hier ein Auszug der syslog zum Zeitpunkt des Ausfalls :

Code: Alles auswählen

Dec 17 13:05:01 openhab CRON[17675]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 17 13:15:01 openhab CRON[18159]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 17 13:17:02 openhab CRON[18255]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 17 13:25:01 openhab CRON[18637]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 17 13:35:01 openhab CRON[19138]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 17 13:38:58 openhab rngd[378]: stats: bits received from HRNG source: 860064
Dec 17 13:38:58 openhab rngd[378]: stats: bits sent to kernel pool: 813312
Dec 17 13:38:58 openhab rngd[378]: stats: entropy added to kernel pool: 813312
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS 140-2 successes: 43
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS 140-2 failures: 0
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS 140-2(2001-10-10) Monobit: 0
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS 140-2(2001-10-10) Poker: 0
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS 140-2(2001-10-10) Runs: 0
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS 140-2(2001-10-10) Long run: 0
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
Dec 17 13:38:58 openhab rngd[378]: stats: HRNG source speed: (min=229.114; avg=521.258; max=550.999)Kibits/s
Dec 17 13:38:58 openhab rngd[378]: stats: FIPS tests speed: (min=2.636; avg=14.398; max=31.371)Mibits/s
Dec 17 13:38:58 openhab rngd[378]: stats: Lowest ready-buffers level: 2
Dec 17 13:38:58 openhab rngd[378]: stats: Entropy starvations: 0
Dec 17 13:38:58 openhab rngd[378]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us
Dec 17 13:45:01 openhab CRON[19627]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 17 13:55:01 openhab CRON[20126]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Dec 17 14:00:20 openhab karaf[622]: Exception in thread "OH-EventHandlerExecutor-1" Exception in thread "OH-EventHandlerExecutor-2" Exception in thread "OH-EventHandlerExecutor-3" java.lang.NullPointerException
Dec 17 14:00:20 openhab karaf[622]: Exception in thread "OH-EventHandlerExecutor-4" #011at java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:216)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:444)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Dec 17 14:00:20 openhab karaf[622]: Exception in thread "OH-EventHandlerExecutor-5" #011at java.lang.Thread.run(Thread.java:748)
Dec 17 14:00:20 openhab karaf[622]: java.lang.NullPointerException
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:213)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:444)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Dec 17 14:00:20 openhab karaf[622]: Exception in thread "OH-EventHandlerExecutor-6" #011at java.lang.Thread.run(Thread.java:748)
Dec 17 14:00:20 openhab karaf[622]: java.lang.NullPointerException
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:213)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:444)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Dec 17 14:00:20 openhab karaf[622]: #011at java.lang.Thread.run(Thread.java:748)
Dec 17 14:00:20 openhab karaf[622]: java.lang.NullPointerException
Dec 17 14:00:20 openhab karaf[622]: #011at java.util.concurrent.LinkedBlockingQueue.dequeue(LinkedBlockingQueue.java:213)
..................
Dec 17 14:00:20 openhab karaf[622]: Exception in thread "OH-EventHandlerExecutor-270" Exception in thread "OH-EventHandlerExecutor-271" Exception in thread "OH-EventHandlerExecutor-269" Exception in thread "OH-EventHandlerExecutor-268" Exception in thread "OH-EventHandlerExecutor-267" Exception in thread "OH-EventHandlerExecutor-266" Exception in thread "OH-EventHandlerExecutor-265" Exception in thread "OH-EventHandlerExecutor-264" Exception in thread "OH-EventHandlerExecutor-263" Exception in thread "OH-EventHandlerExecutor-262" Exception in thread "OH-EventHandlerExecutor-261" Exception in thread "OH-EventHandlerExecutor-260" Exception in thread "OH-EventHandlerExecutor-259" Exception in thread "OH-EventHandlerExecutor-258" Exception in thread "OH-EventHandlerExecutor-257" Exception in thread "OH-EventHandlerExecutor-256" Exception in thread "OH-EventHandlerExecutor-255" Exception in thread "OH-EventHandlerExecutor-254" Exception in thread "OH-EventHandlerExecutor-253" Exception in thread "OH-EventHandlerExecutor-252" Exception in thread "OH-EventHandlerExecutor-251" Exception in thread "OH-EventHandlerExecutor-250" Exception in thread "OH-EventHandlerExecutor-249" Exception in thread "OH-EventHandlerExecutor-248" Exception in thread "OH-EventHandlerExecutor-247" Exception in thread "OH-EventHandlerExecutor-246" Exception in thread "OH-EventHandlerExecutor-245" Exception in thread "OH-EventHandlerExecutor-244" Exception in thread "OH-EventHandlerExecutor-243" Exception in thread "OH-EventHandlerExecutor-242" Exception in thread "OH-EventHandlerExecutor-241" Exception in thread "OH-EventHandlerExecutor-240" Exception in thread "OH-EventHandlerExecutor-239" Exception in thread "OH-EventHandlerExecutor-238" Exception in thread "OH-EventHandlerExecutor-237" Exception in thread "OH-EventHandlerExecutor-236" Exception in thread "OH-EventHandlerExecutor-235" Exception in thread "OH-EventHandlerExecutor-234" Exception in thread "OH-EventHandlerExecutor-233" Exception in thread "OH-EventHandlerExecutor-232" Exception in thread "OH-EventHandlerExecutor-231" Exception in thread "OH-EventHandlerExecutor-230" Exception in thread "OH-EventHandlerExecutor-229" Exception in thread "OH-EventHandlerExecutor-228" Exception in thread "OH-EventHandlerExecutor-227" Exception in thread "OH-EventHandlerExecutor-226" Exception in thread "OH-EventHandlerExecutor-225" Exception in thread "OH-EventHandlerExecutor-224" Exception in thread "OH-EventHandlerExecutor-223" Exception in thread "OH-EventHandlerExecutor-222" Exception in thread "OH-EventHandlerExecutor-221" Exception in thread "OH-EventHandlerExecutor-220" Exception in thread "OH-EventHandlerExecutor-219" Exception in thread "OH-EventHandlerExecutor-218" Exception in thread "OH-EventHandlerExecutor-274" Exception in thread "OH-EventHandlerExecutor-217" Exception in thread "OH-EventHandlerExecutor-216" Exception in thread "OH-EventHandlerExecutor-215" Exception in thread "OH-EventHandlerExecutor-214" Exception in thread "OH-EventHandlerExecutor-275" Exception in thread "OH-EventHandlerExecutor-276" Exception in thread "OH-EventHandlerExecutor-277" Exception in thread "OH-EventHandlerExecutor-278" Exception in thread "OH-EventHandlerExecutor-279" Exception in thread "OH-EventHandlerExecutor-280" Exception in thread "OH-EventHandlerExecutor-281" Exception in thread "OH-EventHandlerExecutor-282" Exception in thread "OH-EventHandlerExecutor-283" Exception in thread "OH-EventHandlerExecutor-284" Exception in thread "OH-EventHandlerExecutor-213" Exception in thread "OH-EventHandlerExecutor-212" Exception in thread "OH-EventHandlerExecutor-211" Exception in thread "OH-EventHandlerExecutor-210" Exception in thread "OH-EventHandlerExecutor-209" Exception in thread "OH-EventHandlerExecutor-208" Exception in thread "OH-EventHandlerExecutor-207" Exception in thread "OH-EventHandlerExecutor-206" Exception in thread "OH-EventHandlerExecutor-205" Exception in thread "OH-EventHandlerExecutor-204" Exception in thread "OH-EventHandlerExecutor-203" Exception in thread "OH-EventHandlerExecutor-202" Exception in thread "OH-EventHandlerExecutor-201" Exception in thread "OH-EventHandlerExecutor-200" Exception in thread "OH-EventHandlerExecutor-199" Exception in thread "OH-EventHandlerExecutor-285" Exception in thread "OH-EventHandlerExecutor-273" Exception in thread "OH-EventHandlerExecutor-272" #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Hat jemand von euch eine Erklärung ?

Re: Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 17. Dez 2021 19:55
von sihui
guinnes hat geschrieben: 17. Dez 2021 18:49 Ich habe seit einigen Monaten unerklärliche Abstürze
SD Karte verabschiedet sich, sofort Backup machen.

Re: Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 17. Dez 2021 20:43
von guinnes
sihui hat geschrieben: 17. Dez 2021 19:55 SD Karte verabschiedet sich, sofort Backup machen.
Backup hab ich heute noch gemacht. Ich habe allerdings die SD-Karte auch schon 3 Mal ersetzt ( innerhalb eines Jahres ). Aber der Tipp ist gut, werd ich morgen probieren
Zusätzlich hab ich in der kern.log noch folgenden Eintrag gefunden ( zu Zeitpunkt des Ausfalls ) :

Code: Alles auswählen

Dec 17 14:00:24 openhab kernel: [98496.929636] cgroup: fork rejected by pids controller in /system.slice/openhab2.service

Re: Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 17. Dez 2021 21:56
von udo1toni
Kann auch mit einer schlechten Stromversorgung zusammenhängen.

Gegen zu häufiges Ableben von SD-Karten hilft ZRAM.

Re: Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 18. Dez 2021 11:09
von guinnes
udo1toni hat geschrieben: 17. Dez 2021 21:56 Kann auch mit einer schlechten Stromversorgung zusammenhängen.
Da ist ein Original Raspberry Netzteil dran mit ( glaube ich ) 5 Ampere
Gegen zu häufiges Ableben von SD-Karten hilft ZRAM.
Was ist ZRAM ?

Re: Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 18. Dez 2021 11:21
von udo1toni
Das ist ein Tool, welches mit openHABian installiert werden kann. Grob gesagt erzeugt ZRAM eine RAMdisk und lagert alle Dateien dorthin aus, welche ständig beschrieben werden. Wenn man den Rechner ordentlich herunter fährt (sudo shutdown -h now) schreibt ZRAM die Dateien auf die SD-Karte und beendet sich. So wird aus hunderttausenden Schreibzugriffen ein Schreibzugriff.

Nachteil: Wenn der Rechner nicht ordentlich heruntergefahren wird, gehen alle geschriebenen Daten verloren. Das sind insbesondere die Logs und die persistierten Daten in openHAB.

Wegen Netzteil: Auch ein Original Netzteil (hat vermutlich eher 2,5 A) kann kaputt gehen. Die frage ist halt, wie sauber die gelieferte Spannung ist, das kann man im Zweifel nur mit einem Oszilloskop wirklich erfassen.

Re: Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 18. Dez 2021 12:05
von guinnes
Danke für die Antwort.
Ich hatte mir folgendes überlegt :
Am Raspberry ist eine 2 TByte Platte angeschlossen mit 3 Partitionen :
0 : 5 GByte eingehängt unter /var/log/openhab2
1 : 5 GByte eingehängt unter /var/lib/openhab2
2 : 1853 GByte eingehängt unter MySqlData

Wenn ich nun die 0. Partition auf 50 GByte vegrößere und die unter /var/log einhänge müßten sich die Schreibzugriffe auf ein Minimum reduzieren

Was hältst du davon, würde das Sinn machen ?

Re: Unerklärliche Abstürze von OH 2.5.12-1

Verfasst: 19. Dez 2021 01:16
von udo1toni
Ja, natürlich kannst Du externe Medien genauso gut verwenden. :)