Bonjour, je suis nouveaux sur le serveur et je me permet de demander votre aide car j’ai suivi tous les conseils du topic mais impossible de lancer ZigbeeMqtt .
J’ai désinstaller ZHA et HACS qui apparemment pouvais impacter (et les autres), ainsi que vérifier mon code, réinstaller Mqtt et ZigbeeMqtt plusieurs fois
mais Z2M m’affiche toujours erreur « 502 Bad Gateway ».
J’ai quelques idées dans la têtes sur la provenance du problèmes notamment le « herdsman »,mais je n’es pas trouver comment l’activer et je ne suis pas sur de ma configuration des port .
Mon bridge est un Sonoff v2 donc normalement un E brancher en direct sur ma carte et doit normalement bien communiquer car jusqu’à présent il était utiliser pour ZHA et fonctionner parfaitement
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231220133340-if00
et donc j’ai rajouter
adapter: ember
j’ai crée un utilisateur exprès mqtt/mqtt.
/Ma version de HA
- Core2024.5.4
- Supervisor2024.06.2
- Operating System12.4
- Interface utilisateur20240501.1
/
-Mon code ZigbeeMqtt en yaml
homeassistant: true
advanced:
network_key:
- 191
- 42
- 126
- 147
- 147
- 25
- 189
- 48
- 213
- 51
- 109
- 222
- 205
- 149
- 167
- 180
pan_id: 29297
ext_pan_id:
- 10
- 153
- 237
- 83
- 132
- 138
- 164
- 23
mqtt:
base_topic: zigbee2mqtt
server: mqtt://core-mosquitto
user: mqtt
password: mqtt
serial:
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231220133340-if00
adapter: ember
frontend:
port: 8099
Journal zigbeemqtt
[22:36:01] INFO: Preparing to start...
[22:36:01] INFO: Socat enabled
[22:36:01] INFO: Starting socat
Socat startup parameters:
Options: -d -d
Master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
Slave: tcp-listen:1883,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
[22:36:02] INFO: Starting socat process ...
2024/06/26 22:36:02 socat[47] N PTY is /dev/pts/0
2024/06/26 22:36:02 socat[47] N listening on AF=2 0.0.0.0:1883
[22:36:03] INFO: Starting Zigbee2MQTT...
[2024-06-26 22:36:08] info: z2m: Logging to console, file (filename: log.log)
[2024-06-26 22:36:08] info: z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-26 22:36:08] info: z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-26 22:36:08] info: zh:ember: Using default stack config.
[2024-06-26 22:36:08] info: zh:ember: ======== Ember Adapter Starting ========
[2024-06-26 22:36:08] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-06-26 22:36:08] info: zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-26 22:36:08] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-06-26 22:36:08] info: zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Total frames: RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Cancelled : RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: DATA frames : RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: DATA bytes : RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Retry frames: RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: ACK frames : RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: NAK frames : RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: nRdy frames : RX=0, TX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: CRC errors : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Comm errors : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Length < minimum: RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Length > maximum: RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Bad controls : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Bad lengths : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Bad ACK numbers : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Out of buffers : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Retry dupes : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: Out of sequence : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: ACK timeouts : RX=0
[2024-06-26 22:36:08] info: zh:ember:uart:ash: ======== ASH stopped ========
[2024-06-26 22:36:08] error: zh:ember:uart:ash: Failed to init port with error Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231220133340-if00 adapter: ezsp
[2024-06-26 22:36:08] error: z2m: Error while starting zigbee-herdsman
[2024-06-26 22:36:08] error: z2m: Failed to start zigbee
[2024-06-26 22:36:08] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-26 22:36:08] error: z2m: Exiting...
[2024-06-26 22:36:09] error: z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:850:19)
at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
at Zigbee.start (/app/lib/zigbee.ts:62:27)
at Controller.start (/app/lib/controller.ts:109:27)
at start (/app/index.js:107:5)
-Mon Code Mqtt en yaml
logins:
- username: mqtt
password: mqtt
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: false
folder: mosquitto
Journal mqtt
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[21:59:04] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
s6-rc: info: service legacy-services successfully started
[21:59:05] INFO: Starting NGINX for authentication handling...
[21:59:06] INFO: Starting mosquitto MQTT broker...
2024-06-26 21:59:06: Warning: Mosquitto should not be run as root/administrator.
2024-06-26 21:59:06: mosquitto version 2.0.18 starting
2024-06-26 21:59:06: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-06-26 21:59:06: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-06-26 21:59:06: ├── Username/password checking enabled.
2024-06-26 21:59:06: ├── TLS-PSK checking enabled.
2024-06-26 21:59:06: └── Extended authentication not enabled.
2024-06-26 21:59:06: Opening ipv4 listen socket on port 1883.
2024-06-26 21:59:06: Opening ipv6 listen socket on port 1883.
2024-06-26 21:59:06: Opening websockets listen socket on port 1884.
2024-06-26 21:59:06: mosquitto version 2.0.18 running
2024-06-26 21:59:06: New connection from ::1:48586 on port 1883.
2024-06-26 21:59:06: Client <unknown> disconnected due to protocol error.
[21:59:07] INFO: Successfully send discovery information to Home Assistant.
[21:59:07] INFO: Successfully send service information to the Supervisor.
2024-06-26 21:59:52: New connection from 172.30.32.2:53776 on port 1883.
2024-06-26 21:59:52: Client <unknown> closed its connection.
2024-06-26 22:01:52: New connection from 172.30.32.2:57472 on port 1883.
2024-06-26 22:01:52: Client <unknown> closed its connection.
2024-06-26 22:03:03: New connection from 172.30.32.1:59519 on port 1883.
2024-06-26 22:03:03: New client connected from 172.30.32.1:59519 as 3T3RBRwGLblYrAvIO8s5gC (p2, c1, k60, u'homeassistant').
2024-06-26 22:03:04: Client 3T3RBRwGLblYrAvIO8s5gC disconnected.
2024-06-26 22:03:04: New connection from 172.30.32.1:57305 on port 1883.
2024-06-26 22:03:04: New client connected from 172.30.32.1:57305 as 6bYE7cHN8B3LlnjngPR7qF (p2, c1, k60, u'homeassistant').
2024-06-26 22:03:29: New connection from 172.30.32.1:57023 on port 1883.
2024-06-26 22:03:29: New client connected from 172.30.32.1:57023 as 2pX9VY1x5aYOq0d4MjIXHl (p2, c1, k60, u'mqtt').
2024-06-26 22:03:29: Client 2pX9VY1x5aYOq0d4MjIXHl disconnected.
2024-06-26 22:03:36: New connection from 172.30.32.1:55281 on port 1883.
2024-06-26 22:03:36: New client connected from 172.30.32.1:55281 as 0ePHQ2kbMkIrRpDgkh5Y1x (p2, c1, k60, u'mqtt').
2024-06-26 22:03:52: New connection from 172.30.32.2:58664 on port 1883.
2024-06-26 22:03:52: Client <unknown> closed its connection.
2024-06-26 22:05:11: Client 6bYE7cHN8B3LlnjngPR7qF has exceeded timeout, disconnecting.
2024-06-26 22:05:52: New connection from 172.30.32.2:56018 on port 1883.
2024-06-26 22:05:52: Client <unknown> closed its connection.
2024-06-26 22:07:19: New connection from 172.30.32.1:58171 on port 1883.
2024-06-26 22:07:19: New client connected from 172.30.32.1:58171 as 4wMsr9ZflE8vGmjtV0gOZa (p2, c1, k60, u'mqtt').
2024-06-26 22:07:19: Client 4wMsr9ZflE8vGmjtV0gOZa disconnected.
2024-06-26 22:07:52: New connection from 172.30.32.2:44084 on port 1883.
2024-06-26 22:07:52: Client <unknown> closed its connection.
2024-06-26 22:09:52: New connection from 172.30.32.2:36778 on port 1883.
2024-06-26 22:09:52: Client <unknown> closed its connection.
2024-06-26 22:11:52: New connection from 172.30.32.2:44906 on port 1883.
2024-06-26 22:11:52: Client <unknown> closed its connection.
2024-06-26 22:13:52: New connection from 172.30.32.2:49170 on port 1883.
2024-06-26 22:13:52: Client <unknown> closed its connection.
2024-06-26 22:15:52: New connection from 172.30.32.2:59172 on port 1883.
2024-06-26 22:15:52: Client <unknown> closed its connection.
2024-06-26 22:17:52: New connection from 172.30.32.2:41496 on port 1883.
2024-06-26 22:17:52: Client <unknown> closed its connection.
2024-06-26 22:19:52: New connection from 172.30.32.2:39996 on port 1883.
2024-06-26 22:19:52: Client <unknown> closed its connection.
2024-06-26 22:21:52: New connection from 172.30.32.2:39152 on port 1883.
2024-06-26 22:21:52: Client <unknown> closed its connection.
2024-06-26 22:23:52: New connection from 172.30.32.2:36222 on port 1883.
2024-06-26 22:23:52: Client <unknown> closed its connection.
2024-06-26 22:25:52: New connection from 172.30.32.2:41068 on port 1883.
2024-06-26 22:25:52: Client <unknown> closed its connection.
2024-06-26 22:27:52: New connection from 172.30.32.2:54048 on port 1883.
2024-06-26 22:27:52: Client <unknown> closed its connection.
2024-06-26 22:29:06: Saving in-memory database to /data//mosquitto.db.
2024-06-26 22:29:53: New connection from 172.30.32.2:43210 on port 1883.
2024-06-26 22:29:53: Client <unknown> closed its connection.
2024-06-26 22:31:53: New connection from 172.30.32.2:50840 on port 1883.
2024-06-26 22:31:53: Client <unknown> closed its connection.
2024-06-26 22:33:53: New connection from 172.30.32.2:57828 on port 1883.
2024-06-26 22:33:53: Client <unknown> closed its connection.
2024-06-26 22:35:53: New connection from 172.30.32.2:45178 on port 1883.
2024-06-26 22:35:53: Client <unknown> closed its connection.
2024-06-26 22:37:53: New connection from 172.30.32.2:54004 on port 1883.
2024-06-26 22:37:53: Client <unknown> closed its connection.
2024-06-26 22:39:53: New connection from 172.30.32.2:54796 on port 1883.
2024-06-26 22:39:53: Client <unknown> closed its connection.
2024-06-26 22:41:53: New connection from 172.30.32.2:51314 on port 1883.
2024-06-26 22:41:53: Client <unknown> closed its connection.
2024-06-26 22:43:53: New connection from 172.30.32.2:54582 on port 1883.
2024-06-26 22:43:53: Client <unknown> closed its connection.
2024-06-26 22:45:53: New connection from 172.30.32.2:36918 on port 1883.
2024-06-26 22:45:53: Client <unknown> closed its connection.
2024-06-26 22:47:53: New connection from 172.30.32.2:56286 on port 1883.
2024-06-26 22:47:53: Client <unknown> closed its connection.
-Port mqtt normal: 1883
Merci d’avoir lu mon message, j’ai essayer d’être le plus clair possible, et d’inclure le plus d’information possible
j’attend vos retour