z2m Service restaring all the time #22849
Replies: 3 comments 2 replies
-
Hi - were you able to find any further information about this? I have set up a new installation of zigbee2mqtt on a linux VM hosted on proxmox. I am running the same version 1.37.1 commit cda867a and seeing the same continual restarting of z2m for no apparent reason. I am running a Sonoff ZBDongle-P which had an older firmware but I flashed it so it's now running the same 20230507 version. After spending 3 days trying to figure out the problem I came across this message and stopped the service, moved to /opt/zigbee2mqtt and ran sudo npm start. So far I have 32 minutes of uptime without any restart when previously it was restarting every 1 to 2 minutes non stop. |
Beta Was this translation helpful? Give feedback.
-
It usually is a permissions problem on the Zigbee2MQTT directory. |
Beta Was this translation helpful? Give feedback.
-
This was my solution: |
Beta Was this translation helpful? Give feedback.
-
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: z2m: Received Zigbee message from 'BB EG Gaestebad', type 'attributeReport', cluster 'msRelativeHumidity', data '{"measuredValue":7740}' from endpoint 1 with groupID 0
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: z2m: MQTT publish: topic 'zigbee2mqtt/BB EG Gaestebad', payload '{"battery":60,"humidity":77.4,"last_seen":"2024-05-31T13:12:45+02:00","linkquality":156,"temperature":20.7}'
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100]
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100]
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0}
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: --- parseNext []
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,10,204]
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,10,204]
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,10] - 204
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":10}
May 31 13:12:45 raspberrypi node[563973]: [2024-05-31 13:12:45] debug: zh:zstack:unpi:parser: --- parseNext []
May 31 13:12:51 raspberrypi systemd[1]: zigbee2mqtt.service: start operation timed out. Terminating.
May 31 13:12:51 raspberrypi node[563973]: [2024-05-31 13:12:51] debug: z2m: Saving state to file /opt/zigbee2mqtt/data/state.json
May 31 13:12:51 raspberrypi node[563973]: [2024-05-31 13:12:51] debug: z2m: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"offline"}'
May 31 13:12:51 raspberrypi node[563973]: [2024-05-31 13:12:51] info: z2m: Disconnecting from MQTT server
May 31 13:12:51 raspberrypi node[563973]: [2024-05-31 13:12:51] info: z2m: Stopping zigbee-herdsman...
I do not know why z2m is rrestarting ervery minute (2Minutes) the devices reporting values before are also not unique.
Zigbee2MQTT version
1.37.1 commit: cda867a
Coordinator type
zStack3x0
Coordinator revision
20230507
Coordinator IEEE Address
0x........
Frontend version
0.6.167
Stats
Can somebody help?
Carsten
P.S.: if I run in /opt/zigbee2mqtt/
sudo npm start
z2m is running without problems
Beta Was this translation helpful? Give feedback.
All reactions