Seit 3.12. wird mir folgendes angezheigt (Ausschnitt):
2021.12.03 19:33:34 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at ./FHEM/73_PRESENCE.pm line 984.
2021.12.03 19:33:34 1: stacktrace:
2021.12.03 19:33:34 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (984)
2021.12.03 19:33:34 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:34 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:34 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:34 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:34 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:34 1: PERL WARNING: Use of uninitialized value $hcitool in concatenation (.) or string at ./FHEM/73_PRESENCE.pm line 997.
2021.12.03 19:33:34 1: stacktrace:
2021.12.03 19:33:34 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (997)
2021.12.03 19:33:34 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:34 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:34 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:34 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:34 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:34 1: PERL WARNING: Use of uninitialized value $hcitool in scalar chomp at ./FHEM/73_PRESENCE.pm line 998.
2021.12.03 19:33:34 1: stacktrace:
2021.12.03 19:33:34 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (998)
2021.12.03 19:33:34 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:34 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:34 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:34 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:34 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:34 1: PERL WARNING: Use of uninitialized value $hcitool in -x at ./FHEM/73_PRESENCE.pm line 1000.
2021.12.03 19:33:34 1: stacktrace:
2021.12.03 19:33:34 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (1000)
2021.12.03 19:33:34 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:34 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:34 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:34 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:34 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:34 2: PRESENCE (a51K) - error while processing check: no hcitool binary found. Please check that the bluez-package is properly installed
2021.12.03 19:33:54 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at ./FHEM/73_PRESENCE.pm line 984.
2021.12.03 19:33:54 1: stacktrace:
2021.12.03 19:33:54 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (984)
2021.12.03 19:33:54 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:54 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:54 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:54 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:54 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:54 1: PERL WARNING: Use of uninitialized value $hcitool in concatenation (.) or string at ./FHEM/73_PRESENCE.pm line 997.
2021.12.03 19:33:54 1: stacktrace:
2021.12.03 19:33:54 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (997)
2021.12.03 19:33:54 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:54 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:54 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:54 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:54 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:54 1: PERL WARNING: Use of uninitialized value $hcitool in scalar chomp at ./FHEM/73_PRESENCE.pm line 998.
2021.12.03 19:33:54 1: stacktrace:
2021.12.03 19:33:54 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (998)
2021.12.03 19:33:54 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:54 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:54 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:54 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:54 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:54 1: PERL WARNING: Use of uninitialized value $hcitool in -x at ./FHEM/73_PRESENCE.pm line 1000.
2021.12.03 19:33:54 1: stacktrace:
2021.12.03 19:33:54 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (1000)
2021.12.03 19:33:54 1: main::PRESENCE_DoLocalBluetoothScan called by FHEM/Blocking.pm (194)
2021.12.03 19:33:54 1: main::BlockingStart called by FHEM/Blocking.pm (107)
2021.12.03 19:33:54 1: main::BlockingCall called by ./FHEM/73_PRESENCE.pm (714)
2021.12.03 19:33:54 1: main::PRESENCE_StartLocalScan called by fhem.pl (3427)
2021.12.03 19:33:54 1: main::HandleTimeout called by fhem.pl (695)
2021.12.03 19:33:54 2: PRESENCE (a51H) - error while processing check: no hcitool binary found. Please check that the bluez-package is properly installed
Ich habe dort keine Änderungen ausgeführt.
CPU-Auslastung heute Morgen bei 98 Prozent und Speicher knapp.
Nach einem Neustart des Pi läuft dann alles eine kurze Zeit, dann gehts von vorne los.
top - 16:21:09 up 11:02, 2 users, load average: 0,34, 1,17, 1,33
Tasks: 136 total, 1 running, 86 sleeping, 0 stopped, 1 zombie
%Cpu(s): 8,4 us, 2,2 sy, 0,0 ni, 89,3 id, 0,0 wa, 0,0 hi, 0,1 si, 0,0 st
KiB Mem : 948296 total, 586748 free, 204016 used, 157532 buff/cache
KiB Swap: 102396 total, 47192 free, 55204 used. 686264 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14995 fhem 20 0 136968 130308 8732 S 33,8 13,7 0:59.42 perl
14996 root 20 0 0 0 0 I 8,9 0,0 0:03.97 kworker/3:2-eve
15190 pi 20 0 8536 3288 2796 R 1,3 0,3 0:02.67 top
15000 fhem 20 0 137552 40120 27284 S 1,0 4,2 0:03.19 node /usr/local
10 root 20 0 0 0 0 I 0,3 0,0 0:14.21 rcu_sched
536 root 20 0 124344 3244 2464 S 0,3 0,3 0:21.14 Xorg
14991 root 20 0 0 0 0 I 0,3 0,0 0:00.08 kworker/1:2-eve
1 root 20 0 28056 3772 3044 S 0,0 0,4 0:04.26 systemd
2 root 20 0 0 0 0 S 0,0 0,0 0:00.09 kthreadd
3 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_par_gp
6 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/0:0H-kb
8 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0,0 0,0 0:24.10 ksoftirqd/0
11 root 20 0 0 0 0 I 0,0 0,0 0:00.00 rcu_bh
12 root rt 0 0 0 0 S 0,0 0,0 0:00.06 migration/0
Was kann ich tun?
Ob Speicher und CPU mit dem Zusammenhängt oder was Ursache/Auswirkung ist: keine Ahnung.
Aber ich vermute, dass die stacktrace-Ausgaben wegen dem kommen:
Zitat
2021.12.03 19:33:54 2: PRESENCE (a51H) - error while processing check: no hcitool binary found. Please check that the bluez-package is properly installed
Da wird der Aufruf eben nichts oder etwas nicht erwartetes zurückgeben und dann kommt es eben zu uninitialized etc.
Wäre noch hilfreich: welche Plattform(en) also HW, OS, BT-Modul/-Dongle, BT-Tag wo fhem läuft und wo BT abgefragt wird usw.
EDIT: HW vermute ich mal ein PI? Last von 33% ("Momentanaufnahme") und 13,7% Speicher durch fhem sieht jetzt nicht so schlimm aus? Auch sonst sieht top doch ok aus? Gut ab und an geht die CPU wohl hoch... ;) SD-Karte? Wenn du sonst nichts gemacht hast inkl. kein OS-/fhem-Update...
EDIT: hatte vor längerer Zeit auch mal Probleme mit BT/Presence. Ähnlich (bis auf CPU/Speicher) wie bei dir, nach Boot eine Zeitlang gut (manchmal sogar 1-2 Tage) und dann wieder Probleme... Habe ich aber mit einem externen BT-Dongle in den Griff bekommen. Wobei es lange so aussah (und ich das immer noch denke), dass es mit einem OS-Update zu tun hatte. Ein neu aufgesetztes Testsystem mit bewusst etwas älterem Buster hatte die Probleme nicht. Dann auch dieses System einem Update unterzogen -> Probleme... Es gibt noch einen Thread bzgl. BT-Presence und hoher CPU Last. Ist allerdings auf einem PI-Zero...
Gruß, Joachim
Ich habe eine Pi 3b+ mit SSD unter "Raspbian GNU/Linux 9 (stretch)" mit eingestecktem BT-Dongle SL7411BK.
Läuft schon seit Jahren.
OS-Update habe ich schon lange nicht mehr gemacht. Nur Änderungen und Updates (täglich) in fhem.
Natürlich habe ich einige DOIFS geändert, die berühren aber BT nicht.
Zitatund wo BT abgefragt wird
Wie meinst du das? Presence für Handy-DT und Xiaomi. Alles lief ja lange klaglos.
Ich versuche, den anderen Beitrag zu finden. Es ist halt nur merkwürdig, dass ich bisher diese Probleme nicht hatte. Ich könnte fhem noch mal zum Test um einige Tage zurücksetzen (configdb).
Danke für die Hilfe. Vielleicht fällt ja noch jemandem etwas dazu ein.
Naja ich meinte (falls 2 unterschiedliche Systeme):
worauf läuft fhem und worauf läuft das BT/hcitool etc.
Viel Erfolg, Joachim
Ales nur auf dem einen Pi.