Missing protocol

hi,

I recently updated my home assistant to 0.90, mosquitto mqqt broek to 4.1 and zigbee2mqtt to 1.2.1
where before all worked like a charm, i now run into troubles…

this is what i get:

[Info] Configuration file found: /share/zigbee2mqtt/configuration.yaml
[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml
2019-03-23T16:52:47: PM2 log: Launching in no daemon mode
2019-03-23T16:52:48: PM2 log: App [npm:0] starting in -fork mode-
2019-03-23T16:52:48: PM2 log: App [npm:0] online
zigbee2mqtt@1.2.1 start /zigbee2mqtt-1.2.1
node index.js
zigbee2mqtt:info 3/23/2019, 4:52:52 PM Logging to directory: ‘/share/zigbee2mqtt/log/2019-03-23.16-52-51’
zigbee2mqtt:info 3/23/2019, 4:52:53 PM Starting zigbee2mqtt version 1.2.1 (commit #unknown)
zigbee2mqtt:info 3/23/2019, 4:52:53 PM Starting zigbee-shepherd
zigbee2mqtt:info 3/23/2019, 4:52:54 PM zigbee-shepherd started
zigbee2mqtt:info 3/23/2019, 4:52:54 PM Coordinator firmware version: ‘20181224’
zigbee2mqtt:info 3/23/2019, 4:52:54 PM Currently 0 devices are joined:
zigbee2mqtt:warn 3/23/2019, 4:52:54 PM permit_join set to true in configuration.yaml.
zigbee2mqtt:warn 3/23/2019, 4:52:54 PM Allowing new devices to join.
zigbee2mqtt:warn 3/23/2019, 4:52:54 PM Set permit_join to false once you joined all devices.
zigbee2mqtt:info 3/23/2019, 4:52:54 PM Zigbee: allowing new devices to join.
zigbee2mqtt:info 3/23/2019, 4:52:54 PM Connecting to MQTT server at 192.168.1.13
/zigbee2mqtt-1.2.1/node_modules/q/q.js:155
throw e;
^
Error: Missing protocol
at Object.connect (/zigbee2mqtt-1.2.1/node_modules/mqtt/lib/connect/index.js:64:13)
at MQTT.connect (/zigbee2mqtt-1.2.1/lib/mqtt.js:39:28)
at Controller.onZigbeeStarted (/zigbee2mqtt-1.2.1/lib/controller.js:109:19)
at zigbee.start (/zigbee2mqtt-1.2.1/lib/controller.js:165:26)
at shepherd.start (/zigbee2mqtt-1.2.1/lib/zigbee.js:78:17)
at /zigbee2mqtt-1.2.1/node_modules/q/q.js:2055:17
at runSingle (/zigbee2mqtt-1.2.1/node_modules/q/q.js:137:13)
at flush (/zigbee2mqtt-1.2.1/node_modules/q/q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:61:11)
npm
ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.2.1 start: node index.js
npm ERR!
Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.2.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

my config in the HA add-on:

{
“data_path”: “/share/zigbee2mqtt”,
“homeassistant”: true,
“permit_join”: true,
“mqtt_base_topic”: “zigbee2mqtt”,
“mqtt_server”: “192.168.1.13”,
“serial_port”: “/dev/ttyACM0”,
“devices”: ,
“network_key”:
}

yaml config:

homeassistant: true
mqtt:
base_topic: zigbee2mqtt
server: 192.168.1.13
permit_join: true
serial:
port: /dev/ttyACM0

any ideas?

thanks in advance!

You should prefix the mqtt_server server with mqtt:// (http://www.zigbee2mqtt.io/configuration/configuration.html)

thanks for your reply.

when i put in mqqt:// i get the following message:

Info] Configuration written to /share/zigbee2mqtt/configuration.yaml
2019-03-24T14:36:04: PM2 log: Launching in no daemon mode
2019-03-24T14:36:05: PM2 log: App [npm:0] starting in -fork mode-
2019-03-24T14:36:05: PM2 log: App [npm:0] online
zigbee2mqtt@1.2.1 start /zigbee2mqtt-1.2.1
node index.js
zigbee2mqtt:info 3/24/2019, 2:36:09 PM Logging to directory: ‘/share/zigbee2mqtt/log/2019-03-24.14-36-09’
zigbee2mqtt:info 3/24/2019, 2:36:11 PM Starting zigbee2mqtt version 1.2.1 (commit #unknown)
zigbee2mqtt:info 3/24/2019, 2:36:11 PM Starting zigbee-shepherd
zigbee2mqtt:info 3/24/2019, 2:36:12 PM zigbee-shepherd started
zigbee2mqtt:info 3/24/2019, 2:36:12 PM Coordinator firmware version: ‘20181224’
zigbee2mqtt:info 3/24/2019, 2:36:12 PM Currently 0 devices are joined:
zigbee2mqtt:warn 3/24/2019, 2:36:12 PM permit_join set to true in configuration.yaml.
zigbee2mqtt:warn 3/24/2019, 2:36:12 PM Allowing new devices to join.
zigbee2mqtt:warn 3/24/2019, 2:36:12 PM Set permit_join to false once you joined all devices.
zigbee2mqtt:info 3/24/2019, 2:36:12 PM Zigbee: allowing new devices to join.
zigbee2mqtt:info 3/24/2019, 2:36:12 PM Connecting to MQTT server at mqtt://192.168.1.13:1883
zigbee2mqtt:info 3/24/2019, 2:36:12 PM zigbee-shepherd ready
events.js:167
throw er; // Unhandled ‘error’ event
^
Error: Connection refused: Not authorized
at MqttClient._handleConnack (/zigbee2mqtt-1.2.1/node_modules/mqtt/lib/client.js:920:15)
at MqttClient._handlePacket (/zigbee2mqtt-1.2.1/node_modules/mqtt/lib/client.js:350:12)
at work (/zigbee2mqtt-1.2.1/node_modules/mqtt/lib/client.js:292:12)
at Writable.writable._write (/zigbee2mqtt-1.2.1/node_modules/mqtt/lib/client.js:302:5)
at doWrite (/zigbee2mqtt-1.2.1/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/zigbee2mqtt-1.2.1/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/zigbee2mqtt-1.2.1/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (_stream_readable.js:666:20)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
Emitted ‘error’ event at:
at MqttClient._handleConnack (/zigbee2mqtt-1.2.1/node_modules/mqtt/lib/client.js:922:10)
at MqttClient._handlePacket (/zigbee2mqtt-1.2.1/node_modules/mqtt/lib/client.js:350:12)
[… lines matching original stack trace …]
at addChunk (_stream_readable.js:283:12)
npm
ERR! code ELIFECYCLE
npm ERR! errno 1
npm
ERR! zigbee2mqtt@1.2.1 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR!
Failed at the zigbee2mqtt@1.2.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

config in HA add on:

{
“data_path”: “/share/zigbee2mqtt”,
“homeassistant”: true,
“permit_join”: true,
“mqtt_base_topic”: “zigbee2mqtt”,
“mqtt_server”: “mqtt://192.168.1.13:1883”,
“serial_port”: “/dev/ttyACM0”,
“devices”: ,
“network_key”:

yaml condig:

homeassistant: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://192.168.1.13:1883
permit_join: true
serial:
port: /dev/ttyACM0

also with ‘mqtt://192.168.1.13:1883’ and without portnumber 1883 no luck

hope you can help me out.

You need to enter the password and username for the MQTT server in your configuration (because it seems that you’ve set one) (http://www.zigbee2mqtt.io/configuration/configuration.html)

only in the yaml file? because i can’t get a username/password in the HA add-on config

It’s the mqtt_user and mqtt_pass from https://github.com/danielwelch/hassio-zigbee2mqtt

Any solution to this issue? I’m also facing the error “MQTT failed to connect: Missing protocol”