Closed michaeldbr closed 5 years ago
Since today i have the same issue. Is this a known issue?
The MQTT authentication fails, can you try connecting to your MQTT server via an MQTT client (e.g. https://mqttfx.jensd.de/)
I just tried with an IOS MQTT client to connect to my raspberry and this works... I tried changing the MQTT link to localhost, the ip address and I also changed the port all in Zigbee2mqtt configuration. This all resulted in an error “can’t connect to MQTT broker”. The weird thing is that MQTT mosquito once says there is a connection and a second later there is no connection...
1542919857: New client connected from 172.30.32.1 as 08962d6a-8a27-4158-9527-05d6b.
The ip starting with 172. Is not used in my network... but mosquito says that is HomeAssistant...
After the connection above mosquito give the error:
1542918379: New connection from 172.30.32.1 on port 1883.
1542918379: Socket error on client
For those having the problem, do you all have no authentication on the MQTT server?
Seems to be an hassio issue: https://github.com/danielwelch/hassio-zigbee2mqtt/issues/71
Okay,
So I have hassio installed with just Zigbee2mqtt addon, connecting to a mqtt server on different machine altogether, upgrading to v2 has completely broken zigbee network
Also tried full restore of v1.8 working snapshot, automatically upgrades to v2.0, during addon boot up resulting with no zigbee network. So down grading does not work
Even tried deleting db, and re-pairing, this just causes the device to constantly crash and reboot
Hope this helps in trying to figure out what’s broken, log also warning node-js needs upgrading (not compatible).
As stated above, I have mqtt server on another device, there is no issue to connecting with mqtt, if the database has no devices, it connects just fine, it’s when devices are added to db the addon just crashes and then reboots in constant cycle!
I have just taken it off line, hope this can be sorted out, is it possible to setup a v1.8 branch please, until we have resolution for this issue thank you for all the effort you guys are putting in to project.
On my system the problem was solved by setting the anonymous setting on true, for the hassio mosquitto broker.
{ "logins": [], "anonymous": true, "customize": { "active": false, "folder": "mosquitto" }, "certfile": "fullchain.pem", "keyfile": "privkey.pem" }
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi guys, I need some help! I came from pimatic to home assistant because I couldn’t get it stable.. after some tweaking I got Hassio working well! At the moment I
have:
RPI3B with an Arduino and also a relayshield working on it. The relayshield is for my sealing light. I have a Mi-Light bridge connected by limitlessLed and some networking scanning for home detection by Nmap. Now I came at the point I want some sensors so my house can control itself. Idea is to use xiaomi sensors with Zigbee2mqtt. But after some attempts of installing I can’t get it to work... I flashed the CC2531 with the firmware as mentioned with the flasher and software from TI. I think it works?? I really dont know how to check this. And followed the complete steps as mentioned here on github. I installed node version 11.x but Zigbee2mqtt is still mentioning that I installed the wrong node version...My config of Zigbee2mqtt is:
{ "data_path": "/share/zigbee2mqtt", "homeassistant": true, "permit_join": true, "mqtt_base_topic": "zigbee2mqtt", "mqtt_server": "mqtt://homeassistant", "serial_port": "/dev/ttyACM0" }
My config at mosquito broker:
{ "logins": [], "anonymous": false, "customize": { "active": false, "folder": "mosquitto" }, "certfile": "fullchain.pem", "keyfile": "privkey.pem" }
And my error at Zigbee2mqtt:
Info] Configuration file found. Will overwrite configurable fields with values from add-on configuration [Info] Configuration written to /share/zigbee2mqtt/configuration.yaml 2018-11-20T21:39:48: PM2 log: Launching in no daemon mode 2018-11-20T21:39:49: PM2 log: App [npm:0] starting in -fork mode- 2018-11-20T21:39:49: PM2 log: App [npm:0] online
Error: Connection refused: Not authorized at MqttClient._handleConnack (/zigbee2mqtt-0.2.0/node_modules/mqtt/lib/client.js:920:15) at MqttClient._handlePacket (/zigbee2mqtt-0.2.0/node_modules/mqtt/lib/client.js:350:12) at work (/zigbee2mqtt-0.2.0/node_modules/mqtt/lib/client.js:292:12) at Writable.writable._write (/zigbee2mqtt-0.2.0/node_modules/mqtt/lib/client.js:302:5) at doWrite (/zigbee2mqtt-0.2.0/node_modules/readable-stream/lib/_stream_writable.js:428:64) at writeOrBuffer (/zigbee2mqtt-0.2.0/node_modules/readable-stream/lib/_stream_writable.js:417:5) at Writable.write (/zigbee2mqtt-0.2.0/node_modules/readable-stream/lib/_stream_writable.js:334:11) at Socket.ondata (_stream_readable.js:639:20) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zigbee2mqtt@0.2.0 start:
node index.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zigbee2mqtt@0.2.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-11-20T21_40_41_654Z-debug.log 2018-11-20T21:40:41: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT] 2018-11-20T21:40:41: PM2 log: App [npm:0] starting in -fork mode- 2018-11-20T21:40:41: PM2 log: App [npm:0] onlineThanks for the help in advance guys!!!