No access to the Zigbee2mqtt interface

I realized yesterday that I no longer had access to the Zigbee2mqtt interface IP:8080
On Firefox

Connection failed

Firefox can’t establish a connection to the server at 192.168.xx.xxx:8080.

On Chrome:

This site is unreachable

192.168.xx.xxx refuses to connect

The Zigbee2MQTT logs:

Using '/app/data' as data directory
Starting Zigbee2MQTT without watchdog.
[2024-11-09 14:14:49] info:     z2m: Logging to console, file (filename: log.log)
[2024-11-09 14:14:49] info:     z2m: Starting Zigbee2MQTT version 1.41.0 (commit #cc31cea)
[2024-11-09 14:14:49] info:     z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-09 14:14:50] info:     zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-11-09 14:14:50] info:     zh:zstack:znp: Serialport opened
[2024-11-09 14:14:50] info:     zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-11-09 14:14:51] info:     zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-11-09 14:15:05] info:     zh:zstack:znp: Port closed
[2024-11-09 14:15:10] error:    z2m: Error while starting zigbee-herdsman
[2024-11-09 14:15:10] error:    z2m: Failed to start zigbee
[2024-11-09 14:15:10] error:    z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-11-09 14:15:10] error:    z2m: Exiting...
[2024-11-09 14:15:10] error:    z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:113:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)

ls -l /dev/serial/by-id
lrwxrwxrwx 1 root root 13 oct.  31 16:18 usb-0658_0200-if00 -> ../../ttyACM1
lrwxrwxrwx 1 root root 13 nov.   9 15:15 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 oct.  10 17:18 usb-Arduino__www.arduino.cc__0042_85036313330351508161-if00 -> ../../ttyACM0

ACM1: Z-Wave
USB0: Zigbee
ACM0: RF-link
I unplugged and replugged the dongle, which lights up blue.
I restarted the mini PC over SSH; too bad there’s no way to do it from the interface, with a button :blush:, for example. Because if you’re not at home, you can’t restart the PC or RPi.
The interface is accessible.

The problem is solved, but… why did it fail?

Regarding the link you shared (in the logs: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions)

There are several causes:

In any case, it’s happening on the Z2M side :smiley:

No access to the interface again.
No information returned by the sensors anymore.

docker ps returns
eclipse-mosquitto:2.0.15 « /docker-entrypoint.… » 18 months ago Up 4 weeks gladys-z2m-mqtt

and
docker logs gladys-z2m-mqtt

1739956703: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739958504: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739960305: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739960880: Client mqttjs_66807f06 disconnected.
1739962106: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739963907: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739965708: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739967509: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739969310: Saving in-memory database to /mosquitto/config//mosquitto.db.
1739971111: Saving in-memory database to /mosquitto/config//mosquitto.db.

In the log.log file in the folder /var/lib/gladysassistant/zigbee2mqtt/z2m/log/2025-01-30.15-18-31
here are the last lines:

[2025-02-19 10:27:53] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Compteur Mesure Elec Chauffe-eau', payload '{"current":0,"energy":0.05,"linkquality":94,"power":0,"voltage":226.1}'
[2025-02-19 10:27:54] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Lixee TIC', payload '{"active_register_tier_delivered":"TH..","apparent_power":5611,"available_power":9,"current_index_tarif":2,"current_summ_delivered":63014,"current_tarif":"HC et Week-End","current_tier1_summ_delivered":22237,"current_tier2_summ_delivered":27717,"current_tier3_summ_delivered":13061,"linkquality":116,"meter_serial_number":"022061758725","mot_d_etat":"000000","relais":0,"relais_breakout":{"relais1":0,"relais2":0,"relais3":0,"relais4":0,"relais5":0,"relais6":0,"relais7":0,"relais8":0},"rms_current":16,"rms_current_max":90,"status_register":"003AC401","status_register_breakout":{"cache_borne_dist":"ferme","comm_euridis":"activee avec securite","contact_sec":"ouvert","depassement_ref_pow":0,"etat_cpl":"nouveau_verrouille","horloge":"correcte","organe_coupure":"ferme","pointe_mobile":"AUCUN","preavis_pointe_mobile":"AUCUN","producteur":0,"sens_energie_active":"positive","surtension_phase":0,"sync_cpl":"non_synchronise","tarif_dist":"index_4","tarif_four":"index_2","tempo_demain":"UNDEF","tempo_jour":"UNDEF","type_tic":"standard"},"update":{"installed_version":1,"latest_version":16,"state":"available"},"update_available":true,"warn_d_p_s":0}'
[2025-02-19 10:27:57] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Compteur Mesure Elec Chauffe-eau', payload '{"current":0,"energy":0.05,"linkquality":69,"power":0,"voltage":226.4}'
[2025-02-19 10:28:00] info: 	zh:zstack:znp: Port closed
[2025-02-19 10:28:00] info: 	zh:zstack:znp: closing
[2025-02-19 10:28:00] error: 	z2m: Adapter disconnected, stopping
[2025-02-19 10:28:00] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline'
[2025-02-19 10:28:00] info: 	z2m: Disconnecting from MQTT server
[2025-02-19 10:28:00] info: 	z2m: Stopping zigbee-herdsman...
[2025-02-19 10:28:00] info: 	z2m: Stopped zigbee-herdsman
[2025-02-19 10:28:00] info: 	z2m: Stopped Zigbee2MQTT

The last write in the z2m folder is dated 19/02/2025 at 11:28:00 (database.db and state.json)
The last write in the mqtt folder is today at 17:51:02
Size of zigbee2mqtt log folder: 908 MB; can we delete log folders?

Size of gladys-production.duckdb: 1 353 996 kb on 22/02/2025 at 04:00:00 (today)

In background tasks, the Zigbee2MQTT Backup failed 3 days ago (Backup request time’s out)

In System, in the Containers section
/gladys-z2m-zigbee2mqtt 3 months Stopped

In Services, zigbee2mqtt is Started

I unplugged and replugged the adapter.

I think I must have moved it when I reconnected my laptop, which is next to the mini PC, when I came back from vacation.

I did a docker restart gladys-z2m-mqtt
but that didn’t change anything.

I stopped the service on the z2m config page and restarted it.

Everything went back to normal.

2 Likes