Zigbee2MQTT crashes regularly and have to restart it manually

Hello,
I’m having problems with Zigbee2MQTT.
Zigbee2MQTT crashes regularly and I have to restart it manually.
When I look at the Zigbee2MQTT log, I don’t see anything in particular (below the log):


Zigbee2MQTT:info  2023-12-01 15:05:51: Zbminil2 (0x048727fffe7b13bb): ZBMINIL2 - SONOFF Zigbee smart switch (no neutral) (EndDevice)
Zigbee2MQTT:info  2023-12-01 15:05:51: Prise Nous (0xa4c138da1782d161): A1Z - Nous Smart plug (with power monitoring) (Router)
Zigbee2MQTT:info  2023-12-01 15:05:51: Zigbee: disabling joining new devices.
Zigbee2MQTT:info  2023-12-01 15:05:51: Connecting to MQTT server at mqtt://core-mosquitto:1883
Zigbee2MQTT:info  2023-12-01 15:05:53: Connected to MQTT server
Zigbee2MQTT:info  2023-12-01 15:05:53: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
Zigbee2MQTT:info  2023-12-01 15:05:53: MQTT publish: topic 'zigbee2mqtt/Interrupteur_Aqara/availability', payload '{"state":"online"}'
Zigbee2MQTT:info  2023-12-01 15:05:53: MQTT publish: topic 'zigbee2mqtt/Aqara | Z2M Capteur eau 1/availability', payload '{"state":"online"}'
Zigbee2MQTT:info  2023-12-01 15:05:53: MQTT publish: topic 'zigbee2mqtt/Ampoule LED Tuya/availability', payload '{"state":"offline"}'
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/Zbminil2/availability', payload '{"state":"offline"}'
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/Prise Nous/availability', payload '{"state":"offline"}'
Zigbee2MQTT:info  2023-12-01 15:05:54: Started frontend on port 8099
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/Interrupteur_Aqara', payload '{"action":null,"battery":100,"device_temperature":19,"last_seen":"2023-12-01T04:45:34.438Z","linkquality":105,"power_outage_count":13,"voltage":3035}'
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/Aqara | Z2M Capteur eau 1', payload '{"battery":90,"battery_low":false,"device_temperature":21,"last_seen":"2023-12-01T04:23:01.367Z","linkquality":42,"power_outage_count":6,"tamper":false,"voltage":2985,"water_leak":false}'
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/Ampoule LED Tuya', payload '{"brightness":193,"color":{"h":342,"hue":342,"s":97,"saturation":97},"color_mode":"hs","color_temp":129,"last_seen":"2023-11-25T17:36:54.802Z","linkquality":135,"state":"OFF"}'
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/Zbminil2', payload '{"last_seen":"2023-11-24T14:49:34.830Z","linkquality":63,"power_on_behavior":"off","state":"OFF","update":{"installed_version":4110,"latest_version":4110,"state":"idle"},"update_available":null}'
Zigbee2MQTT:info  2023-12-01 15:05:54: MQTT publish: topic 'zigbee2mqtt/Prise Nous', payload '{"child_lock":"UNLOCK","current":0,"energy":0,"indicator_mode":"off/on","last_seen":"2023-11-24T15:02:46.160Z","linkquality":120,"power":0,"power_outage_memory":"off","state":"OFF","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":239}'
Zigbee2MQTT:info  2023-12-01 15:05:54: Zigbee2MQTT started!

When I look at the Supervisor log, I just see 2 messages about Zigbee2MQTT:[supervisor.addons.options] Unknown option ‘base_topic’ for Zigbee2MQTT (45df7312_zigbee2mqtt) and [supervisor.addons.addon] Watchdog found addon Zigbee2MQTT is failed, restarting…
(below the log) :


23-12-01 15:01:55 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug 84b9e87b
23-12-01 15:01:55 INFO (MainThread) [supervisor.backups.manager] Backup 84b9e87b starting stage addons
23-12-01 15:01:55 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on 45df7312_zigbee2mqtt
23-12-01 15:01:55 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon 45df7312_zigbee2mqtt
23-12-01 15:01:55 INFO (MainThread) [supervisor.backups.manager] Backup 84b9e87b starting stage finishing_file
23-12-01 15:01:55 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug 84b9e87b completed
23-12-01 15:01:55 INFO (MainThread) [supervisor.docker.addon] Updating image zigbee2mqtt/zigbee2mqtt-aarch64:1.33.2-1 to zigbee2mqtt/zigbee2mqtt-aarch64:1.34.0-1
23-12-01 15:01:55 INFO (MainThread) [supervisor.docker.interface] Downloading docker image zigbee2mqtt/zigbee2mqtt-aarch64 with tag 1.34.0-1.
23-12-01 15:02:06 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
23-12-01 15:02:06 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
23-12-01 15:02:06 INFO (MainThread) [supervisor.api.middleware.security] /backups/84b9e87b/info access from cebe7a76_hassio_google_drive_backup
23-12-01 15:02:06 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
23-12-01 15:02:06 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
23-12-01 15:02:33 INFO (MainThread) [supervisor.addons.addon] Add-on '45df7312_zigbee2mqtt' successfully updated
23-12-01 15:02:36 INFO (SyncWorker_5) [supervisor.docker.manager] Cleanup images: ['zigbee2mqtt/zigbee2mqtt-aarch64:1.33.2-1']
23-12-01 15:02:36 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-12-01 15:02:36 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/zigbee2mqtt/hassio-zigbee2mqtt repository
23-12-01 15:02:36 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/Minims/homeassistant-addons repository
23-12-01 15:02:37 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup repository
23-12-01 15:02:37 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-12-01 15:02:37 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-12-01 15:02:37 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-12-01 15:02:44 INFO (MainThread) [supervisor.store] Loading add-ons from store: 79 all - 0 new - 0 remove
23-12-01 15:02:44 INFO (MainThread) [supervisor.store] Loading add-ons from store: 79 all - 0 new - 0 remove
23-12-01 15:02:44 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:03:17 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:03:21 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:03:21 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:03:21 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:03:22 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning addon_45df7312_zigbee2mqtt application
23-12-01 15:03:39 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:03:39 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on zigbee2mqtt/zigbee2mqtt-aarch64 with version 1.34.0-1
23-12-01 15:03:40 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:03:40 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:04:56 INFO (SyncWorker_2) [supervisor.docker.manager] Restarting homeassistant
23-12-01 15:05:02 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Zigbee2MQTT is failed, restarting...
23-12-01 15:05:02 INFO (SyncWorker_6) [supervisor.docker.manager] Cleaning addon_45df7312_zigbee2mqtt application
23-12-01 15:05:03 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:05:03 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)
23-12-01 15:05:19 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on zigbee2mqtt/zigbee2mqtt-aarch64 with version 1.34.0-1
23-12-01 15:05:19 WARNING (MainThread) [supervisor.addons.options] Unknown option 'base_topic' for Zigbee2MQTT (45df7312_zigbee2mqtt)

My software configuration:

  • Core 2023.11.3
  • Supervisor 2023.11.6
  • Operating System 11.1

My hardware configuration:

  • Raspberry Pi 3
  • Sonoff Zigbee 3.0 Dongles Plus version P connected to an extension cable
  • Z-Wave USB stick

Has this already happened to any of you?
Thanks for your help because I’m lost.

Show your Zigbee2MQTT configuration

Sorry for the oversight.
My Zigbee2MQTT configuration:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: secret_login
  password: secret_password
serial:
  port: /dev/ttyUSB0

I should add that when Z2M works, all my Z2M devices work.

Thanks @francisp for your help.

remove base_topic: zigbee2mqtt from the configuration, the add-on adds that itself.

To be honest, I had added this line after searching for several hours on the Forum, but the unstable behavior of Z2M was already present before I had this line…
But I’m going to remove it and restart Z2M and keep an eye on it.