-
Notifications
You must be signed in to change notification settings - Fork 41
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
unable to connect to mqtt server #367
Comments
I'm getting the same after the last Home Assistant update. Here's my log
|
Same! Installed from HACS |
Me too! Configuration is just at once completely empty, and I can not find a good example how it should look (i am running the hassio -?- add on). This is my log:
|
if it helps some one: settings: |
I was not able to save any configuration. After "save" it just disappears on refresh.
|
That did the trick! Thanx! |
Did not work for me :( |
Reinstalling gave me this. Removing the settings:
mqttserver: addon_core_mosquitto
mqttport: ''
mqttusername: ''
mqttpassword: ''
mqttsecure: false
basetopic: zigbee2mqtt
homeassistantdiscoverybasetopic: homeassistant
lowbatterythreshold: 30
allowjointimeout: 20
autosetlastseen: false
devicespollingschedule: '*/12 * * * *'
networkscanschedule: 0 */3 * * * |
I have the same error but can't understand how to fix it. |
created docker-compse file for mqtt server, zigbee2mqtt and zigbee2mqttserverassistant. docker zigbee2mqtt is succesfully connected to mqtt server, but zigbee2mqttassistant does not connect to mqtt: Tried already different variants to Z2MA_Settings for mqttserver as eg. 127.0.0.1:1883 ,etc but nne did work. Please help.
this is docker-compose file:
version: '3'
services:
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
volumes:
- ./data:/app/data
- /run/udev:/run/udev:ro
devices:
- /dev/ttyACM0
privileged: true
environment:
- TZ=Europe/Amsterdam
- "homeassistant:true"
network_mode: host
mqtt:
container_name: mqtt-server
image: eclipse-mosquitto
ports:
#- "1883:1883"
- "9001:9001"
this is (partial) log of zigbee2mqttassist:
Starting Zigbee2MqttAssistant v0.3.157+Branch.master.Sha.ea388c3bbc2d43c4c9c62f27bb6764911ba4acc9...
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {97c39648-838d-4fed-950e-b75a1858763f} may be persisted to storage in unencrypted form.
Hosting environment: Production
Content root path: /app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down.
(base) kurt@kurt-VG086AA-UUZ-m9770ch ~/Documents/Docker/zigbee2mqtt $ docker logs assist
Starting Zigbee2MqttAssistant v0.3.157+Branch.master.Sha.ea388c3bbc2d43c4c9c62f27bb6764911ba4acc9...
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {97c39648-838d-4fed-950e-b75a1858763f} may be persisted to storage in unencrypted form.
Hosting environment: Production
Content root path: /app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down.
warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0]
Unable to connect to MQTT server mqtt-server.
MQTTnet.Exceptions.MqttCommunicationException: Resource temporarily unavailable
---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000001, 11): Resource temporarily unavailable
at System.Net.Dns.InternalGetHostByName(String hostName)
at System.Net.Dns.ResolveCallback(Object context)
The text was updated successfully, but these errors were encountered: