Plus de détection dans BLEA

Bonjour,

J’ai un problème avec BLEA qui ne fonctionne plus depuis cette nuit.

Config :
J’ai actuellement un Pi 4B 4go avec un kit geekworm et un SSD MSATA de 32gb.
Sur un de ses port USB2 j’ai connecté un hub D-link DUB-H7 qui possède sa propre alimentation avec 3 dongle USB sur rallonge (Condbee 2, Z-stick gen 5, Bluetooth Sena ud100).

Problème :
Hier dans la soirée j’ai un micromodule zigbee AQUARA SSM-U01 qui est devenu injoignable et également un interrupteur sans fil AQUARA WXKG11LM qui n’était pas en défaut mais ne communiquait plus (problème non rélglé).
Cette nuit j’ai BLEA qui s’est mis en alarme (bizarrement il y a fallu que je me log avec ID + MDP sur tous mes appareils alors que d’habitude cela reste en mémoire ) :

[2021-07-30 05:50:04][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2021-07-30 05:55:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2021-07-30 06:00:07][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2021-07-30 06:05:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2021-07-30 06:10:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2021-07-30 06:15:03][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2021-07-30 06:15:35][ERROR] : Impossible de lancer le démon blea, vérifiez la log

Ce matin il y avait une alarme « le port n’est pas configuré » et ma clé SENA n’était plus présente sur le port hci1.
En SSH, la commande hciconfig m’indiquait bien que le port était DOWN.

J’avais déjà eu un souci similaire suite à une mise à jour (je n’ai pas eu de mise à jour récemment mais on ne sait jamais) du coup j’ai désinstallé Bluepi en SSH sudo pip3 uninstall bluepy et j’ai relancé les dépendances et le démon depuis Jeedom.

A l’heure qu’il est tout est au vert, mon antenne SENA est bien active sur hci1, les logs sont bons, la page santé de Jeedom aussi mais je n’ai toujours pas de détection de mon nut et de mes porte clés TILE. Si je lance un scan, aucun accessoire n’est détecté.

J’ajoute ici le dernier log :

********************************************************
*			 Installation des dépendances			 *
********************************************************
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Hit:5 https://deb.nodesource.com/node_14.x buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libatlas-base-dev is already the newest version (3.10.3-8).
build-essential is already the newest version (12.6).
libffi-dev is already the newest version (3.2.1-9).
libopenjp2-7 is already the newest version (2.3.0-2+deb10u2).
python3-serial is already the newest version (3.4-4).
python3-setuptools is already the newest version (40.8.0-1).
python3-dev is already the newest version (3.7.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.21.0-1).
libtiff5 is already the newest version (4.1.0+git191117-2~deb10u2).
rfkill is already the newest version (2.33.1-0.1).
bluetooth is already the newest version (5.50-1.2~deb10u1+rpt2).
libbluetooth-dev is already the newest version (5.50-1.2~deb10u1+rpt2).
libssl-dev is already the newest version (1.1.1d-0+deb10u6+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 8 not upgraded.
Need to get 0 B/1197 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 68421 files and directories currently installed.)
Preparing to unpack .../python3_3.7.3-1_arm64.deb ...
running python pre-rtupdate hooks for python3.7...
Unpacking python3 (3.7.3-1) over (3.7.3-1) ...
Preparing to unpack .../bluez_5.50-1.2~deb10u1+rpt2_arm64.deb ...
Unpacking bluez (5.50-1.2~deb10u1+rpt2) over (5.50-1.2~deb10u1+rpt2) ...
Preparing to unpack .../python3-pip_18.1-5+rpt1_all.deb ...
Unpacking python3-pip (18.1-5+rpt1) over (18.1-5+rpt1) ...
Setting up python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...
running python post-rtupdate hooks for python3.7...
Setting up bluez (5.50-1.2~deb10u1+rpt2) ...
Setting up python3-pip (18.1-5+rpt1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for systemd (241-7~deb10u8) ...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: setuptools in /usr/local/lib/python3.7/dist-packages (57.4.0)
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.20.1-2+deb10u3).
libglib2.0-dev is already the newest version (2.58.3-2+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyudev in /usr/local/lib/python3.7/dist-packages (0.22.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pyudev) (1.12.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/dist-packages (3.5)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pybluez in /usr/local/lib/python3.7/dist-packages (0.23)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (8.3.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (1.20.3)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: bluepy in /usr/local/lib/python3.7/dist-packages (1.1.4)
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib
creating build/lib/bluepy
copying bluepy/scanner.py -> build/lib/bluepy
copying bluepy/btle.py -> build/lib/bluepy
copying bluepy/thingy52.py -> build/lib/bluepy
copying bluepy/scan_fuzz.py -> build/lib/bluepy
copying bluepy/get_services.py -> build/lib/bluepy
copying bluepy/sensortag.py -> build/lib/bluepy
copying bluepy/__init__.py -> build/lib/bluepy
copying bluepy/blescan.py -> build/lib/bluepy
copying bluepy/uuids.json -> build/lib/bluepy
copying bluepy/bluez-src.tgz -> build/lib/bluepy
copying bluepy/bluepy-helper.c -> build/lib/bluepy
copying bluepy/Makefile -> build/lib/bluepy
/usr/local/lib/python3.7/dist-packages/setuptools/dist.py:700: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  % (opt, underscore_opt))
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
running build
running build_py
copying bluepy/bluepy-helper -> build/lib/bluepy
running install_lib
copying build/lib/bluepy/uuids.json -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/bluez-src.tgz -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/scanner.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/btle.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/thingy52.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/bluepy-helper -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/scan_fuzz.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/get_services.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/sensortag.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/__init__.py -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/Makefile -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/bluepy-helper.c -> /usr/local/lib/python3.7/dist-packages/bluepy
copying build/lib/bluepy/blescan.py -> /usr/local/lib/python3.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/scanner.py to scanner.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/btle.py to btle.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/thingy52.py to thingy52.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/scan_fuzz.py to scan_fuzz.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/get_services.py to get_services.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/sensortag.py to sensortag.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/__init__.py to __init__.cpython-37.pyc
byte-compiling /usr/local/lib/python3.7/dist-packages/bluepy/blescan.py to blescan.cpython-37.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing top-level names to bluepy.egg-info/top_level.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
adding license file 'LICENSE.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python3.7/dist-packages/bluepy-1.1.4-py3.7.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python3.7/dist-packages/bluepy-1.1.4-py3.7.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Installing thingy52 script to /usr/local/bin
/usr/local/lib/python3.7/dist-packages/setuptools/dist.py:700: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  % (opt, underscore_opt))
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (2.6.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (2.6.1)
********************************************************
*			 Installation terminée					*
********************************************************

Si quelqu’un a une idée, merci d’avance.

Salut,

J’ai réussi à faire repartir.
J’ai fait une mise à jour du pi :
sudo apt-get update
sudo apt-get upgrade
Reboot depuis Jeedom
Installation des dépendances depuis Jeedom
En SSH : hciconfighci0: Type: Primary Bus: USB
Dans la config de BLEA j’ai passé le « port clé Bluetooth » sur hci0 et mes badges sont revenus.

Problème réglé à court terme mais si quelqu’un peut m’expliquer comment sans intervention ça a pu planter comme ça ?
Ce qui m’interpelle le plus c’est d’avoir dû me logger ce matin pour me connecter à Jeedom en local alors qu’en me couchant j’étais connecté.

Je vais me pencher maintenant sur les modules Zigbee que j’ai perdu hier soir… :sweat:

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.