# MQTT was working well then not - NR says connected but no data

**URL:** <https://discourse.nodered.org/t/mqtt-was-working-well-then-not-nr-says-connected-but-no-data/66503>\
**Category:** General\
**Created:** [16 August 2022 14:20 UTC](https://discourse.nodered.org/t/mqtt-was-working-well-then-not-nr-says-connected-but-no-data/66503 "2022-08-16T14:20:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbmgf7](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rbmgf7](https://discourse.nodered.org/u/rbmgf7)\
**Post date:** [16 August 2022 14:20 UTC](https://discourse.nodered.org/t/mqtt-was-working-well-then-not-nr-says-connected-but-no-data/66503/1 "2022-08-16T14:20:52Z")

</div>

Noob problems.

Had Mosquitto and NR running well for a couple days then suddenly this morning, it just stopped. I was suddenly getting erratic data on another subscribed client. Ran a debug on NR and the data was sporadic and sometimes went into an endless run form a client publishing. However the client (Click PLC) was publishing just fine.

Rebooted everything and had minor troubles. Found Mosquitto services turned off so turned it on. Now NR is saying it's connected in the command prompt and the MQTT In node shows connected but still no data in the debug.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 August 2022 14:47 UTC](https://discourse.nodered.org/t/mqtt-was-working-well-then-not-nr-says-connected-but-no-data/66503/2 "2022-08-16T14:47:28Z")

</div>

Install MQTTExplorer on your PC and connect to the broker. That should give you information on where the problem lies.

Also you can look at the mosquitto log  
`sudo cat /var/log/mosquitto/mosquitto.log`  
or/and  
`sudo tail -f /var/log/mosquitto/mosquitto.log`

---

<div class="post-metadata">

**Author:** ![rbmgf7](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rbmgf7](https://discourse.nodered.org/u/rbmgf7)\
**Post date:** [16 August 2022 15:34 UTC](https://discourse.nodered.org/t/mqtt-was-working-well-then-not-nr-says-connected-but-no-data/66503/3 "2022-08-16T15:34:07Z")

</div>

So it's somewhat working. Before I could receive data every second. Now if I deploy, it might spit out the data once but not every time.

MQTT Explorer says the Click PLC is offline but it's not?

Mosquitto is on Windows Server 2012.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 August 2022 15:54 UTC](https://discourse.nodered.org/t/mqtt-was-working-well-then-not-nr-says-connected-but-no-data/66503/4 "2022-08-16T15:54:49Z")

</div>

> [@rbmgf7](#):
>
> Mosquitto is on Windows

No doubt Google will help you find the log.

> [@rbmgf7](#):
>
> MQTT Explorer says the Click PLC is offline but it's not?

How do you know it is not?

---

<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:** [15 October 2022 15:55 UTC](https://discourse.nodered.org/t/mqtt-was-working-well-then-not-nr-says-connected-but-no-data/66503/5 "2022-10-15T15:55:23Z")

</div>

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