# MQTT is not talking

**URL:** <https://discourse.nodered.org/t/mqtt-is-not-talking/21652>\
**Category:** General\
**Created:** [13 February 2020 12:34 UTC](https://discourse.nodered.org/t/mqtt-is-not-talking/21652 "2020-02-13T12:34:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland.lanz](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@roland.lanz](https://discourse.nodered.org/u/roland.lanz)\
**Post date:** [13 February 2020 12:34 UTC](https://discourse.nodered.org/t/mqtt-is-not-talking/21652/1 "2020-02-13T12:34:12Z")

</div>

I am a beginner and I cant get it to work. I use Home assistant and Node-Red latest version.  
I got two inject with Topic "light/garage\_out" and Paylod "On" / "Off" connected to one MQTT-out, Server: HA-1@192.168.1.87:1883 no username or password.  
One MQTT-in connected to a debug.

Connected is Ok but it dont work.

Logg:  
[13:31:00] INFO: Setup mosquitto configuration  
[13:31:00] INFO: No local user available  
[13:31:00] INFO: Initialize [Hass.io](http://Hass.io) Add-on services  
[13:31:00] INFO: Initialize Home Assistant discovery  
[13:31:00] INFO: Start Mosquitto daemon  
1581597060: mosquitto version 1.6.3 starting  
1581597060: Config loaded from /etc/mosquitto.conf.  
1581597060: Loading plugin: /usr/share/mosquitto/auth-plug.so  
1581597060: |-- \*\*\* auth-plug: startup  
1581597060: ├── Username/password checking enabled.  
1581597060: ├── TLS-PSK checking enabled.  
1581597060: └── Extended authentication not enabled.  
1581597060: Opening ipv4 listen socket on port 1883.  
1581597060: Opening ipv6 listen socket on port 1883.  
1581597060: Opening websockets listen socket on port 1884.  
1581597060: Opening ipv4 listen socket on port 8883.  
1581597060: Opening ipv6 listen socket on port 8883.  
1581597060: Opening websockets listen socket on port 8884.  
1581597060: Warning: Mosquitto should not be run as root/administrator.  
1581597061: New connection from 192.168.1.87 on port 1883.  
1581597062: Socket error on client , disconnecting.  
1581597062: New connection from 192.168.1.87 on port 1883.  
1581597062: New client connected from 192.168.1.87 as auto-D9004764-F203-5A2F-0EF7-8B33FFC2C788 (p2, c1, k60).  
1581597072: New connection from 192.168.1.87 on port 1883.  
1581597072: New client connected from 192.168.1.87 as HA-1 (p2, c0, k120).

What can I do?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 February 2020 13:42 UTC](https://discourse.nodered.org/t/mqtt-is-not-talking/21652/2 "2020-02-13T13:42:52Z")

</div>

Doesn't work in what way?

You do have some issues:

> [@roland.lanz](#):
>
> Warning: Mosquitto should not be run as root/administrator.

Generally a really bad idea to run services as root as it can leave gaping security holes. It also might cause permissions issues. Mosquitto, when installed correctly, creates its own user and group and sets permissions correctly.

> [@roland.lanz](#):
>
> 1581597060: ├── Username/password checking enabled.  
> 1581597060: ├── TLS-PSK checking enabled.

Possible that this might be getting in the way?

> [@roland.lanz](#):
>
> 1581597061: New connection from 192.168.1.87 on port 1883.  
> 1581597062: Socket error on client , disconnecting.

You need to track down what is causing that.

---

<div class="post-metadata">

**Author:** ![roland.lanz](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@roland.lanz](https://discourse.nodered.org/u/roland.lanz)\
**Post date:** [13 February 2020 14:15 UTC](https://discourse.nodered.org/t/mqtt-is-not-talking/21652/3 "2020-02-13T14:15:16Z")

</div>

I installing in Home Assistant thru an Add-In. There is no place to change these posts.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 February 2020 14:19 UTC](https://discourse.nodered.org/t/mqtt-is-not-talking/21652/4 "2020-02-13T14:19:33Z")

</div>

The first relates to how Mosquitto was installed. The 2nd relates to how it was configured.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 April 2020 14:19 UTC](https://discourse.nodered.org/t/mqtt-is-not-talking/21652/5 "2020-04-13T14:19:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
