Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest dev release doesn't working #15371

Closed
Ivano62 opened this issue Dec 5, 2022 · 6 comments
Closed

Latest dev release doesn't working #15371

Ivano62 opened this issue Dec 5, 2022 · 6 comments
Labels
problem Something isn't working

Comments

@Ivano62
Copy link

Ivano62 commented Dec 5, 2022

What happened?

After upgrade to latest dev release zigbee2mqtt doesn't start. I get get this error:

Using '/app/data' as data directory
Zigbee2MQTT:error 2022-12-05 17:11:32: Failed to call 'OnEvent' 'stop' (TypeError: Cannot read properties of undefined (reading 'getDevices')
at Zigbee.devices (/app/lib/zigbee.ts:275:30)
at OnEvent.stop (/app/lib/extension/onEvent.ts:37:42)
at Controller.callExtensions (/app/lib/controller.ts:316:40)
at Controller.stop (/app/lib/controller.ts:193:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9))
Zigbee2MQTT:error 2022-12-05 17:11:32: Failed to call 'Frontend' 'stop' (TypeError: Cannot read properties of null (reading 'clients')
at Frontend.stop (/app/lib/extension/frontend.ts:83:39)
at Controller.callExtensions (/app/lib/controller.ts:316:40)
at Controller.stop (/app/lib/controller.ts:193:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9))
Zigbee2MQTT:error 2022-12-05 17:11:32: Not connected to MQTT server!
Zigbee2MQTT:error 2022-12-05 17:11:32: Cannot send message: topic: 'zigbee2mqtt/bridge/state', payload: 'offline
TypeError: Cannot read properties of undefined (reading 'end')
at MQTT.disconnect (/app/lib/mqtt.ts:129:21)
at Controller.stop (/app/lib/controller.ts:198:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9)

What did you expect to happen?

It start without any errors

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

dev ba2d9ae

Adapter firmware version

0x26720700

Adapter

RaspBee2

Debug log

Using '/app/data' as data directory
Zigbee2MQTT:error 2022-12-05 17:11:32: Failed to call 'OnEvent' 'stop' (TypeError: Cannot read properties of undefined (reading 'getDevices')
at Zigbee.devices (/app/lib/zigbee.ts:275:30)
at OnEvent.stop (/app/lib/extension/onEvent.ts:37:42)
at Controller.callExtensions (/app/lib/controller.ts:316:40)
at Controller.stop (/app/lib/controller.ts:193:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9))
Zigbee2MQTT:error 2022-12-05 17:11:32: Failed to call 'Frontend' 'stop' (TypeError: Cannot read properties of null (reading 'clients')
at Frontend.stop (/app/lib/extension/frontend.ts:83:39)
at Controller.callExtensions (/app/lib/controller.ts:316:40)
at Controller.stop (/app/lib/controller.ts:193:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9))
Zigbee2MQTT:error 2022-12-05 17:11:32: Not connected to MQTT server!
Zigbee2MQTT:error 2022-12-05 17:11:32: Cannot send message: topic: 'zigbee2mqtt/bridge/state', payload: 'offline
TypeError: Cannot read properties of undefined (reading 'end')
at MQTT.disconnect (/app/lib/mqtt.ts:129:21)
at Controller.stop (/app/lib/controller.ts:198:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9)

@Ivano62 Ivano62 added the problem Something isn't working label Dec 5, 2022
@danieledwardgeorgehitchcock
Copy link
Contributor

Could you just check and make sure your MQTT server is functioning correctly?

@Ivano62
Copy link
Author

Ivano62 commented Dec 5, 2022

My MQTT server is functioning correctly, in fact, as soon as I downgrade to the stable version 1.28.4 zigbee2mqtt starts regularly without any problem.
The problem has been introduced since the last two dev releases.
Thanks

@Ivano62
Copy link
Author

Ivano62 commented Dec 7, 2022

I've installed latest dev version (d075f07), it fails see below, so I revert to latest stable version. I hope the problem will be solved. Thanks

Zigbee2MQTT:info 2022-12-07 10:27:28: Logging to console and directory: '/app/data/log/2022-12-07.10-27-27' filename: log.txt
Zigbee2MQTT:error 2022-12-07 10:27:28: Failed to call 'OnEvent' 'stop' (TypeError: Cannot read properties of undefined (reading 'getDevices')
at Zigbee.devices (/app/lib/zigbee.ts:275:30)
at OnEvent.stop (/app/lib/extension/onEvent.ts:37:42)
at Controller.callExtensions (/app/lib/controller.ts:316:40)
at Controller.stop (/app/lib/controller.ts:193:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9))
Zigbee2MQTT:error 2022-12-07 10:27:28: Failed to call 'Frontend' 'stop' (TypeError: Cannot read properties of null (reading 'clients')
at Frontend.stop (/app/lib/extension/frontend.ts:83:39)
at Controller.callExtensions (/app/lib/controller.ts:316:40)
at Controller.stop (/app/lib/controller.ts:193:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9))
Zigbee2MQTT:error 2022-12-07 10:27:28: Not connected to MQTT server!
Zigbee2MQTT:error 2022-12-07 10:27:28: Cannot send message: topic: 'zigbee2mqtt/bridge/state', payload: 'offline
Zigbee2MQTT:info 2022-12-07 10:27:28: Disconnecting from MQTT server
TypeError: Cannot read properties of undefined (reading 'end')
at MQTT.disconnect (/app/lib/mqtt.ts:129:21)
at Controller.stop (/app/lib/controller.ts:198:9)
at stop (/app/index.js:111:5)
at process.handleQuit (/app/index.js:117:9)

@Ivano62
Copy link
Author

Ivano62 commented Dec 7, 2022

Add some details:

$ docker -v
Docker version 20.10.21, build baeda1f

$ uname -a
Linux raspberry 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux

$ dpkg --list | grep libseccomp
ii libseccomp2:armhf 2.5.1-1~bpo10+1 armhf high level interface to Linux seccomp filter

@Ivano62
Copy link
Author

Ivano62 commented Dec 7, 2022

With latest dev release (83fae81) it seems work correctly.
Thanks

@Koenkk
Copy link
Owner

Koenkk commented Dec 7, 2022

Great, then it was the same issue as #15380

@Koenkk Koenkk closed this as completed Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants