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

zigbee2mqttassistant not connecting to mosquitto: Name or service not known #223

Open
Daneild opened this issue Jan 17, 2021 · 1 comment

Comments

@Daneild
Copy link

Daneild commented Jan 17, 2021

Hi,
Raspberry 3, fresh install, i have found an issue and a solution,
zigbee2mqttassistant is not able to connect to mosquitto due to fact thas is not in the same network,

Application started. Press Ctrl+C to shut down. warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0] Unable to connect to MQTT server mosquitto. MQTTnet.Exceptions.MqttCommunicationException: Name or service not known ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name or service not known

i have edited docker-compose.yal and add:

networks:
    - iotstack_nw

After that docker-compose up -d and all was ok.

I post here maybe will be and update on file IOTstack/.templates/zigbee2mqttassistant/service.yml

  zigbee2mqttassistant:
    container_name: zigbee2mqttassistant
    image: carldebilly/zigbee2mqttassistant
    restart: unless-stopped
    env_file:
      - ./services/zigbee2mqttassistant/zigbee2mqttassistant.env
    ports:
      - 8880:80
    environment:
      - VIRTUAL_HOST=~^zigbee2mqttassistant\..*\.xip\.io
      - VIRTUAL_PORT=8880
    **networks:
    - iotstack_nw**

Maybe i am right, maybe not, but at least if someone will have the same issue, will find here an answer :)

@Daneild Daneild changed the title zigbee2mqttassistant not connecting to mosquitto zigbee2mqttassistant not connecting to mosquitto: Name or service not known Jan 17, 2021
@SensorsIot
Copy link

This repo is dead. Maybe you go to https://github.com/SensorsIot/IOTstack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants