Démon en ligne, mais plus de remontée

Salut,

J’utilise TGW depuis quelques mois maintenant.
J’ai un problème sur une antenne Raspberry qui est en Ethernet, j’ai remarqué, que le démon reste « en ligne » mais que plus rien ne remonte. Je prends une clé avec un nut et je me mets devant, rien.
Je suis obligé de redémarrer le service sur l’objet du plugin et là magie ça remarche.

image

Niveau log :

OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:[org.bluez.Error.Failed] No discovery started
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Unspecified error
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Unspecified error
ERROR:BLEGateway:Failed to send message to topic home/TGW_2617/BTtoMQTT/78BDBC5A3CB7
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Unspecified error
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Unspecified error
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Unspecified error
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:[org.bluez.Error.Failed] No discovery started
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:Disconnected from MQTT broker with reason code = Unspecified error
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/opt/TheengsGateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 208, in connect_mqtt
self.client.connect(
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
File "/opt/TheengsGateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.9/socket.py", line 843, in create_connection
raise err
File "/usr/lib/python3.9/socket.py", line 831, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
ERROR:BLEGateway:[org.bluez.Error.Failed] No discovery started

Il s’agit d’une PI3 avec son BT interne.

Côté jeedom :

Côté PI :
image

Côté dépendances :

[2025-03-27 16:58:23] *************************************
[2025-03-27 16:58:23] *   Launch install of dependencies  *
[2025-03-27 16:58:23] *************************************
[2025-03-27 16:58:23] == Version Debian:11
[2025-03-27 16:58:23] == Version Python:3.9.2
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0      5      0 --:--:-- --:--:-- --:--:--     5
[2025-03-27 16:58:25] Hit:1 http://deb.debian.org/debian bullseye InRelease
[2025-03-27 16:58:25] Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
[2025-03-27 16:58:25] Get:3 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB]
[2025-03-27 16:58:25] Get:4 http://archive.raspberrypi.org/debian bullseye InRelease [39.0 kB]
[2025-03-27 16:58:26] Get:5 http://security.debian.org/debian-security bullseye-security/main armhf Packages [343 kB]
[2025-03-27 16:58:27] Get:6 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [347 kB]
[2025-03-27 16:58:27] Get:7 http://security.debian.org/debian-security bullseye-security/main Translation-en [228 kB]
[2025-03-27 16:58:27] Get:8 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [329 kB]
[2025-03-27 16:58:27] Get:9 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [322 kB]
[2025-03-27 16:58:27] Fetched 1,680 kB in 3s (529 kB/s)
[2025-03-27 16:58:35] Reading package lists...
[2025-03-27 16:58:40] ********************************
[2025-03-27 16:58:44] *  Install dependencies & venv  *
[2025-03-27 16:58:44] ********************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0      5      0 --:--:-- --:--:-- --:--:--     5
100     2  100     2    0     0      5      0 --:--:-- --:--:-- --:--:--     5
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pip in /opt/TheengsGateway/lib/python3.9/site-packages (25.0.1)
Requirement already satisfied: setuptools in /opt/TheengsGateway/lib/python3.9/site-packages (77.0.3)
Collecting setuptools
Downloading setuptools-78.1.0-py3-none-any.whl.metadata (6.6 kB)
Downloading setuptools-78.1.0-py3-none-any.whl (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 4.0 MB/s eta 0:00:00
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 77.0.3
Uninstalling setuptools-77.0.3:
Successfully uninstalled setuptools-77.0.3
Successfully installed setuptools-78.1.0
[2025-03-27 16:59:20] ****************************
[2025-03-27 16:59:20] *  Install TheengsGateway  *
[2025-03-27 16:59:20] ****************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0      5      0 --:--:-- --:--:-- --:--:--     5
100     2  100     2    0     0      5      0 --:--:-- --:--:-- --:--:--     5
[2025-03-27 16:59:23] Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
[2025-03-27 16:59:23] Requirement already satisfied: TheengsGateway in /opt/TheengsGateway/lib/python3.9/site-packages (1.5.0)
[2025-03-27 16:59:23] Requirement already satisfied: bleak>=0.19.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (0.22.2)
[2025-03-27 16:59:23] Requirement already satisfied: bluetooth-clocks<1.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (0.2.0)
[2025-03-27 16:59:23] Requirement already satisfied: bluetooth-numbers<2.0,>=1.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (1.1.2)
[2025-03-27 16:59:23] Requirement already satisfied: importlib-metadata in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (8.5.0)
[2025-03-27 16:59:23] Requirement already satisfied: paho-mqtt<3.0.0,>=2.0.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (2.1.0)
[2025-03-27 16:59:23] Requirement already satisfied: pycryptodomex>=3.18.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (3.20.0)
[2025-03-27 16:59:23] Requirement already satisfied: TheengsDecoder>=1.7.8 in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (1.8.5)
[2025-03-27 16:59:23] Requirement already satisfied: bluetooth-adapters>=0.15.3 in /opt/TheengsGateway/lib/python3.9/site-packages (from TheengsGateway) (0.19.4)
[2025-03-27 16:59:23] Requirement already satisfied: async-timeout<5,>=3.0.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from bleak>=0.19.0->TheengsGateway) (4.0.3)
[2025-03-27 16:59:23] Requirement already satisfied: dbus-fast<3,>=1.83.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from bleak>=0.19.0->TheengsGateway) (2.24.2)
[2025-03-27 16:59:23] Requirement already satisfied: typing-extensions>=4.7.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from bleak>=0.19.0->TheengsGateway) (4.12.2)
[2025-03-27 16:59:23] Requirement already satisfied: aiooui>=0.1.1 in /opt/TheengsGateway/lib/python3.9/site-packages (from bluetooth-adapters>=0.15.3->TheengsGateway) (0.1.6)
[2025-03-27 16:59:23] Requirement already satisfied: uart-devices>=0.1.0 in /opt/TheengsGateway/lib/python3.9/site-packages (from bluetooth-adapters>=0.15.3->TheengsGateway) (0.1.0)
[2025-03-27 16:59:23] Requirement already satisfied: usb-devices>=0.4.5 in /opt/TheengsGateway/lib/python3.9/site-packages (from bluetooth-adapters>=0.15.3->TheengsGateway) (0.4.5)
[2025-03-27 16:59:24] Requirement already satisfied: zipp>=3.20 in /opt/TheengsGateway/lib/python3.9/site-packages (from importlib-metadata->TheengsGateway) (3.20.2)
[2025-03-27 16:59:24] ***************************
[2025-03-27 16:59:24] *      Install ended      *
[2025-03-27 16:59:24] ***************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:11 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:12 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:13 --:--:--     0

Côté log plugin :

[2025-04-03 06:47:06] ERROR  : Erreur sur la fonction cron du plugin : Error decrypting ciphertext with OpenSSL

Si jamais il faut autre chose.

Bonsoir,

Tu as déjà cela dans le log d’installation des dépendances :
E: dpkg was interrupted, you must manually run ‹ sudo dpkg --configure -a › to correct the problem.

Donc il faut faire cela en SSH :
sudo dpkg --configure -a

Et pour le dysfonctionnement, je vois cela :
OSError: [Errno 101] Network is unreachable

Je pense que le reste découle de cela.

Salut Fabrice,

Intéressant effectivement. Sur une autre PI antenne, j’ai rien eu comme retour.
Sur celle du portail, j’ai eu :

sudo dpkg --configure -a Setting up bluez (5.55-3.1+rpt2+deb11u2) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for dbus (1.12.28-0+deb11u1) ...

Car même si c’est une erreur de réseau, la PI est en ethernet mais les erreurs derrières sont bluez et mqtt.

J’ai vérifié l’adressage, DNS etc. Tout semble OK.

boss@PI-PORTAIL:~ $ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:14:ee:6e brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.54/24 brd 192.168.2.255 scope global dynamic noprefixroute eth0
       valid_lft 60132sec preferred_lft 46213sec
    inet6 2001:861:3a83:57b0:adec:3f9f:14c4:5afa/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 86192sec preferred_lft 14192sec
    inet6 fe80::337e:f8b4:40cb:4a3a/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether b8:27:eb:41:bb:3b brd ff:ff:ff:ff:ff:ff
boss@PI-PORTAIL:~ $ ip route
default via 192.168.2.1 dev eth0 proto dhcp src 192.168.2.54 metric 202
192.168.2.0/24 dev eth0 proto dhcp scope link src 192.168.2.54 metric 202
boss@PI-PORTAIL:~ $ ping -c3 $(ip route | awk '/default/ {print $3}')
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=1.05 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.970 ms

64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.973 ms

--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.970/0.996/1.047/0.035 ms
boss@PI-PORTAIL:~ $ ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=7.09 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=7.09 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=115 time=6.27 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 6.266/6.816/7.092/0.389 ms
boss@PI-PORTAIL:~ $ ping -c3 google.com
PING google.com(par10s49-in-x0e.1e100.net (2a00:1450:4007:80c::200e)) 56 data bytes
64 bytes from par10s49-in-x0e.1e100.net (2a00:1450:4007:80c::200e): icmp_seq=1 ttl=117 time=16.8 ms
64 bytes from par10s49-in-x0e.1e100.net (2a00:1450:4007:80c::200e): icmp_seq=2 ttl=117 time=16.4 ms
64 bytes from par10s49-in-x0e.1e100.net (2a00:1450:4007:80c::200e): icmp_seq=3 ttl=117 time=16.1 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 16.120/16.442/16.793/0.275 ms
boss@PI-PORTAIL:~ $ cat /etc/resolv.conf
# Generated by resolvconf
domain WORKGROUP
nameserver 192.168.2.138
nameserver 192.168.2.1
nameserver 2001:861:3a83:57b0:bcc4:5032:4bb7:c1fb

les erreurs mqtt c’est justement qu’il se fait déco du broker donc on revient au problème réseau, c’est étrange en ethernet d’avoir des déco comme ça.
le broker est où? sur jeedom via mqtt manager?

l’erreur sur bluez c’est p-e lié à dpkg configure qui n’était pas terminé, mais pour moi c’est pas lié au déco réseau; autrement dit, tu avais p-e 2 problèmes.

c’est voulu d’avoir de l’ipv6 sur cette machine en interne?
jeedom aussi est en ipv6?
je ne sais pas trop si ca peut avoir un impact

edit:
ton jeedom a une consommation mémoire énorme j’ai l’impression: 60% de 16go! + le swap qui est rempli
si à un moment ca sature c’est p-e une source de soucis pour les clients qui essaient de s’y connecter

Oui, désolé, je ne l’ai pas indiqué, mais oui le Broker, c’est celui de Jeedom, tout à fait, via MQTT Manager.

Pour bluez, c’est fait, c’est bon à savoir.

Je me suis fait la même remarque sur l’IPV6. Il me semblait l’avoir désactivé pourtant. je vais le faire comme ça pas de problème. D’ailleurs, j’ai l’impression que pihole aussi propose un DNS IPV6.

Pour la consommation mémoire, je n’arrive pas à trouver d’où cela vient. Je voulais tenter de mettre le broker à l’extérieur de Jeedom car c’est depuis que j’ai intensifié l’utilisation de MQTT que j’ai ce souci de consommation. Bonne ou mauvaise idée ? C’est effectivement la remarque que je me suis faite, les clients sont peut-être rejetés… ?

sans log ou autre élément concret difficile de l’affirmer mais je lance des pistes.
ce qui est clair c’est que le pi a des déco du réseau ou en tout cas déco du broker mqtt
donc je dirais que:

  • soit il a un problème général de connexion réseau
  • soit il a un problème avec le broker et donc soit la source est sur le client (le pi) soit sur le broker (jeedom)

tu tournes sur des vm?

Oui, Mips je tourne sur des VM.

Pour le log de MQTT Manager, j’ai des erreurs, mais difficile de savoir si c’est au même instant car je n’ai pas l’heure de l’autre côté. Et ça date d’il y a 2 jours.

[2025-04-02 09:57:21] ERROR  : Error on send to jeedom : {"message":"Request failed with status code 500","name":"AxiosError","stack":"AxiosError: Request failed with status code 500
at settle (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:1913:12)
at IncomingMessage.handleStreamEnd (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:2995:11)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.5.1","Content-Length":"1456","Accept-Encoding":"gzip, compress, deflate, br"},"httpAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":false,"noDelay":true,"path":null},"requests":{},"sockets":{"127.0.0.1:80:":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_closeAfterHandlingError":false,"_events":{"close":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":1},"allowHalfOpen":false,"_eventsCount":7,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null,"parser":null,"_httpMessage":{"_events":{},"_eventsCount":7,"outputData":[],"outputSize":0,"writable":true,"destroyed":false,"_last":true,"chunkedEncoding":false,"shouldKeepAlive":false,"maxRequestsOnConnectionReached":false,"_defaultKeepAlive":true,"useChunkedEncodingByDefault":true,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"strictContentLength":false,"_contentLength":"1456","_hasBody":true,"_trailer":"","finished":true,"_headerSent":true,"_closed":false,"_header":"POST /plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded
User-Agent: axios/1.5.1
Content-Length: 1456
Accept-Encoding: gzip, compress, deflate, br
Host: 127.0.0.1
Connection: close
","_keepAliveTimeout":0,"method":"POST","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","_ended":true,"res":{"_events":{"end":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"httpVersionMajor":1,"httpVersionMinor":0,"httpVersion":"1.0","complete":true,"rawHeaders":["Date","Wed, 02 Apr 2025 09:57:21 GMT","Server","Apache","X-Content-Type-Options","nosniff","X-Frame-Options","sameorigin","X-XSS-Protection","1; mode=block","Referrer-Policy","strict-origin-when-cross-origin","Permissions-Policy","accelerometer=(),battery=(),fullscreen=(self),geolocation=(),camera=(),ambient-light-sensor=(self),autoplay=(self)","Content-Security-Policy","default-src 'self' file: data: blob: filesystem:;script-src-attr 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr *.googleapis.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr;script-src-elem 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr;img-src 'self' * data:;style-src 'self' 'unsafe-inline';style-src-attr 'self' 'unsafe-inline';worker-src blob:;frame-src 'self' *.jeedom.com *.google.com *.google.fr *.googleapis.com data:;","Access-Control-Allow-Origin","*","Access-Control-Allow-Credentials","true","Access-Control-Allow-Headers","origin, x-requested-with, content-type","Access-Control-Allow-Methods","PUT, GET, POST, DELETE, OPTIONS","Content-Length","0","Connection","close","Content-Type","text/html; charset=UTF-8"],"rawTrailers":[],"aborted":false,"upgrade":false,"url":"","method":null,"statusCode":500,"statusMessage":"Internal Server Error","_consuming":false,"_dumped":false,"_eventsCount":4,"responseUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","redirects":[]},"aborted":false,"timeoutCb":null,"upgradeOrConnect":false,"parser":null,"maxHeadersCount":null,"reusedSocket":false,"host":"127.0.0.1","protocol":"http:","_redirectable":{"_events":{},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"_options":{"maxRedirects":21,"maxBodyLength":null,"protocol":"http:","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","method":"POST","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.5.1","Content-Length":"1456","Accept-Encoding":"gzip, compress, deflate, br"},"agents":{},"beforeRedirects":{},"hostname":"127.0.0.1","port":"","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"maxHeaderSize":16384,"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0}},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":443,"protocol":"https:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}}}},"pathname":"/plugins/mqtt2/core/php/jeeMqtt2.php","search":"?apikey=XXXXXXXXX"},"_ended":true,"_ending":true,"_redirectCount":0,"_redirects":[],"_requestBodyLength":1456,"_requestBodyBuffers":[],"_eventsCount":3,"_currentUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX"}}}]},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":1},"method":"post","url":"http://127.0.0.1:80/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","data":"{\"home\":{\"TGW_2648\":{\"BTtoMQTT\":{\"DCDA0CCEDADE\":{\"manufacturerdata\":\"280b0040dcda0ccedadc01000002\",\"name\":\"CERSM-wd1-5A\",\"id\":\"DC:DA:0C:CE:DA:DE\",\"rssi\":-80,\"mfr\":\"CHACON\"},\"5004A3B2F618\":{\"id\":\"50:04:A3:B2:F6:18\",\"rssi\":-64,\"servicedatauuid\":\"fef3\",\"servicedata\":\"4a1723465856441134b1348262c081f52b061a2377f20f43b840a4\"}}}},\"tgw\":{\"2595\":{\"LWT\":\"offline\"},\"2617\":{\"LWT\":\"offline\"},\"2648\":{\"LWT\":\"offline\"},\"2765\":{\"LWT\":\"offline\"}},\"shellies\":{\"shellyem-pvcar-pisc\":{\"online\":false},\"shellymini-ambiances\":{\"online\":false},\"shellymini-pergola\":{\"online\":false},\"shellymini-veranda\":{\"online\":false},\"shellymini-parking\":{\"online\":false},\"shellymini-petanque\":{\"online\":false},\"shellyem-linkypvm\":{\"online\":false},\"shellyem-climvmc\":{\"online\":false},\"shellymini-escalier\":{\"online\":false},\"shellymini-carport\":{\"online\":false},\"shellymini-alim\":{\"online\":false},\"shelly_ecs\":{\"online\":false},\"shellymini-extsalon\":{\"online\":false},\"shellyplus1-piscine\":{\"online\":false},\"shellyplus1pm_cumulus\":{\"online\":false}},\"mqttmanager\":{\"state\":\"offline\"},\"zigbee2mqtt\":{\"bridge\":{\"state\":{\"state\":\"offline\"}}},\"openevse-garage\":{\"announce\":{\"ebc0\":{\"state\":\"disconnected\",\"id\":\"94b555a1ebc0\",\"name\":\"borne-garage\"}}},\"state\":{\"F0F5BD743284\":{\"up\":false,\"reason\":\"LWT\"},\"F0F5BD73709C\":{\"up\":false,\"reason\":\"LWT\"},\"F0F5BD73777C\":{\"up\":false,\"reason\":\"LWT\"}},\"openevse-carport\":{\"announce\":{\"9c94\":{\"state\":\"disconnected\",\"id\":\"94b5557d9c94\",\"name\":\"borne-carport\"}}}}"},"code":"ERR_BAD_RESPONSE","status":500}
[2025-04-02 09:57:22] ERROR  : Reconnection to mqtt server
[2025-04-02 09:57:22] ERROR  : Error on connection to mqtt server : Error: connect ECONNREFUSED 127.0.0.1:8883

le swap est tombé à 0 :


il redémarre tous les 24h maintenant et repasse :

J’ai suivi les conseils d’ici car config deb11 :

Et ce post surtout qui indique une fuite mémoire du plugin xiaomi avec debian11 (sans log ni rien).

Sur ce point, je suis en train de migrer mon réseau zigbee vers une clé zigbee pour à terme sortir du plugin xiaomi.

Pour plugin-xiaomihome regardes ceci plutot: Rendre le plugin XiaomiHome fonctionnel sous Debian 12 - #3 par Eridani78; pour debian 11 le point 3) suffit

pour surveiller d’autres plugins potentiels: Mémoire qui baisse progressivement depuis 4.4 ou Debian 11 - #75 par Mips

alors je conseillerais de sortir mqtt si tu maitrises un peu
si tu es sous proxmox, je conseille les scripts de tteck et pour mqtt je conseille emqx à la place de mosquitto qui est nettement plus sympa: Proxmox VE Helper-Scripts (et on peut même en mettre 2 en actif/actif sur 2 noeuds différents, c’est encore plus sympa)

Bonjour Benjamin,

Regardes ici :

Depuis, je ne consomme plus de Swap.

1 « J'aime »

Oui, c’est effectivement la solution que j’avais en tête, les scripts de tteck sont vraiment tops :slight_smile:
Tu confirmes mon objectif.

Merci pour ces deux liens, je ne les avais pas vus ! Je vais les mettre en place tout de suite et voir si la fuite se calme (le redémarrage du démon ne me plaisait pas). Toutefois, je veux sortir de Xiaomi, donc ça sera ça de moins à terme. Mais merci pour la reprise du code que tu as faite.

Question : ce n’est pas valable sous Debian11 du coup tes modifications ?

A voir du coup, si cela est la cause de mon plantage de l’antenne en question.

Gloups, Salut Fabrice, va bien ?

Bon bein…

4,1G    /var/log/journal

C’est corrigé aussi.

Valable pour les deux

1 « J'aime »