Message : Unexpected error between WebSocket Daemon and Python Daemon

Bonjour,

J’ai souhaité rajouter un nouveau périphérique sur mon jmqtt après l’avoir rajouté à mon réseau sous Z2M et j’ai ce message qui apparait à chaque fois :

2021-12-07 17:57:24 jMQTT Id 41 : Unexpected error between WebSocket Daemon and Python Daemon
J’ai relancé le daemon et identique
J’ai activé les logs en Debug mais pas plus d’éléments …

Merci

Bonjour à tous,
Je viens de galérer avec JMQTT et le brocker qui restait au rouge !!
J’ai donc finalement restaurer une sauvegarde sur une SD saine.
Par contre j’ai toujours des messages toute les 2 à 3 minutes :

"Id 426 : Unexpected error between WebSocket Daemon and Python Daemon"

Déjà ce matin j’ai eu ce problème et en plus pas d’inclusion possible. Maintenant j’ai pu ajouter un ESP.
J’ai également Zingbeelinker qui fonctionne en « Client MQTT + Z2M »

Mes logs de JMQTT:

File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:02,965][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:04,570][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:09,693][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:14,772][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:19,866][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:24,977][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:30,086][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:35,200][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:40,284][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:45,379][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:50,505][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:34:55,608][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:00,703][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:05,805][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:09,188][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:14,497][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:19,592][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:24,738][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:30,761][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:35,896][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:35:41,032][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 342, in run_forever
dispatcher.read(self.sock.sock, read, check)
AttributeError: 'Dispatcher' object has no attribute 'read'
[2021-12-07 17:47:57,624][ERROR]    : BrkId:  426 : Unexpected disconnection from broker!
[2021-12-07 17:47:59,029][ERROR]    : BrkId:  426 : WebSocket client encountered an Error!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 369, in run_forever
dispatcher.read(self.sock.sock, read, check)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 52, in read
if not read_callback():
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 335, in read
op_code, frame = self.sock.recv_data_frame(True)
File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 406, in recv_data_frame
frame = self.recv_frame()
File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 445, in recv_frame
return self.frame_buffer.recv_frame()
File "/usr/local/lib/python3.7/dist-packages/websocket/_abnf.py", line 337, in recv_frame
self.recv_header()
File "/usr/local/lib/python3.7/dist-packages/websocket/_abnf.py", line 293, in recv_header
header = self.recv_strict(2)
File "/usr/local/lib/python3.7/dist-packages/websocket/_abnf.py", line 372, in recv_strict
bytes_ = self.recv(min(16384, shortage))
File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 529, in _recv
return recv(self.sock, bufsize)
File "/usr/local/lib/python3.7/dist-packages/websocket/_socket.py", line 126, in recv
"Connection to remote host was lost.")
websocket._exceptions.WebSocketConnectionClosedException: Connection to remote host was lost.

Par ailleurs, lors de ma dernière inclusion 3 équipements ont étaient créés « 1234 » = ID du Brocker, Jeedom et Zigbee2mqtt qui n’arrête pas de récupérer mes équipements Zigbee. C’est normal ou je peux les supprimer ?

Merci par avance
Stéphane

Bonsoir
certains équipement doivent avoir des retain et sont donc maintenu dans le broker
install mqttexplorer si pas déja fait et supprime ces equipements avec celui-ci puis dans jeedom aussi.

Bonjour Olive,
Je peux supprimer les 3 ?

Tu peut tout supprimer de toute façon ceux qui existent vraiment vont renvoyer des données et vont réapparaitre.

OK fait
Merci !!
Par contre une idée sur les messages d’erreur ?

Bonjour,

Attention, veuillez faire une recherche avant de poster, la même question avait été posée moins d’une heure avant

1 « J'aime »

Bonjour,
Effectivement mais je pensais avoir réglé le problème mais il est revenu. Le premier sujet avait était clôturé entre temps.
Merci
Stéphane

Non, du tout. Nous sommes dans le « premier » sujet créé par @kwet, j’ai déplacé votre message dans celui-ci.

Vous aviez effectivement créé un post similaire il y a quelques jours qui a été effectivement fermé comme vous expliquez, mais je ne parlais même pas de celui-là.

@kwet @steph38G
Essai de redémarrer jeedom ça calme je jeux parfois

A ok désolé je ferai plus attention la prochaine fois.
Bonne soirée
Stéphane

Trop fort Olive,
Apparemment ca la effectivement calmé !!
Je laisse passer la nuit pour voir.
Bonne soirée
Stéphane

1 « J'aime »

Je lance un reboot aussi mais j’ai tout de même pu réaliser l’inclusion de mon nouveau périphérique malgré le message pour information.

1 « J'aime »

Bonjour à tous,
Le problème revient avec toujours le même message après avoir essayé une inclusion dans JMQTT.
Le Brocker est au vert et tout est fonctionnel sauf l’inclusion qui ne fait pas apparaitre mon nouveau équipement qui apparait bien dans MQTT Explorer.
ZigbeeLinker fonctionne également.
mes log :

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1756, in loop_forever
    rc = self._loop(timeout)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1164, in _loop
    rc = self.loop_read()
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1556, in loop_read
    rc = self._packet_read()
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 2389, in _packet_read
    byte = self._sock_recv(1)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 640, in _sock_recv
    return self._sock.recv(bufsize)
AttributeError: 'NoneType' object has no attribute 'recv'
Exception in thread Thread-8:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1756, in loop_forever
    rc = self._loop(timeout)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1164, in _loop
    rc = self.loop_read()
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1556, in loop_read
    rc = self._packet_read()
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 2389, in _packet_read
    byte = self._sock_recv(1)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 640, in _sock_recv
    return self._sock.recv(bufsize)
AttributeError: 'NoneType' object has no attribute 'recv'

Exception in thread Thread-21:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1756, in loop_forever
    rc = self._loop(timeout)
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1164, in _loop
    rc = self.loop_read()
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1556, in loop_read
    rc = self._packet_read()
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 2419, in _packet_read
    data = self._sock_recv(self._in_packet['to_process'])
  File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 640, in _sock_recv
    return self._sock.recv(bufsize)
AttributeError: 'NoneType' object has no attribute 'recv'

Merci par avance
Stéphane

Bonjour,

J’ai la même erreur « Unexpected error between WebSocket Daemon and Python Daemon ») avec mon Pi3. Par contre, sur ma machine de test qui est sous un Pi2, cette erreur n’apparait pas.
Cette erreur entraine de très gros ralentissement du Pi3 qui nécessite un reboot "sauvage’ :frowning:

jMQTT est-il incompatible avec un OS 64 bits ?

C’est ma seule explication car sur le mois dernier, mon Pi2 fonctionne correctement et j’ai dû rebooter mon Pi3 au moins une dizaine de fois.

Configuration du mon Pi3 : Debian 10 + Zigbee2MQTT installé manuellement + jMQTT
Configuration de mon Pi2 : Debian10 + ZigbeeLinker + jMQTT car je teste d’autres capteurs sous MQTT.

Sinon, quelqu’un a-t-il trouvé une solution ?

Merci d’avance.

Pour le moment la discussion continue coté Github ici : Problème inclusion et message « Unexpected error between WebSocket Daemon and Python Daemon » · Issue #121 · Domochip/jMQTT (github.com)

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