Closed odtgit closed 5 years ago
:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.
with only one user defined it runs but not properly:
odt@cube ~> mosquitto_pub -d -t 'tellsticknet/ACCA540219F3/command/sensor/officewindow/state' -n -r
Client mosqpub|32496-cube sending CONNECT
Client mosqpub|32496-cube received CONNACK
Connection Refused: not authorised.
Error: The connection was refused.
This is the config with one user:
odt@cube /u/s/h/a/d/a0d7b954_mqtt> cat options.json
{
"log_level": "debug",
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"web": {
"enabled": true,
"ssl": false
},
"broker": {
"enabled": true,
"enable_ws": false,
"enable_mqtt": true,
"enable_ws_ssl": false,
"enable_mqtt_ssl": false,
"allow_anonymous": false
},
"mqttusers": [
{
"username": "***",
"password": "***",
"readonly": false,
"topics": [
"#"
]
}
]
}⏎
Probably a related issue on my end, I'm finding it does start, but takes an exponentially longer time depending on the number of users.
1 user: Started normally 2 users: Took maybe a minute 3 users: About 8 minutes 4 users: 45 minutes (21:46 - 22:29) 5 users: Almost 3 hours. I started it at 22:53, looks like it was up by 1:46am, though I'd gone to sleep.
The log gets as far as
[cont-init.d] 20-mqtt_broker.sh: executing...
INFO: Adding configuration for MQTT Server...
INFO: Setting configuration for mqtt...
And just sits there for however long it takes.
A new version with fixes for all 3 problems will drop shortly.
Fixed in https://github.com/hassio-addons/addon-mqtt/releases/tag/v1.0.1
GitHubMQTT Server & Web client - Community Hass.io Add-on for Home Assistant - hassio-addons/addon-mqtt
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Problem/Motivation
After upgrade from 0.3.0 to 1.0.0 the MQTT Server does not start properly
Expected behavior
That it would work with the same config as previously (4 users). But only starts up with 1.
Actual behavior
Proposed changes
fix the loop