# MQTT Connection lost no further connection possible

**URL:** <https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817>\
**Category:** General\
**Created:** [7 December 2022 12:20 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817 "2022-12-07T12:20:36Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 12:20 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/1 "2022-12-07T12:20:36Z")

</div>

Don't know what happen in detail, while changing layout of dashboard my connections to the running mqtt server inside iobroker get lost. I find no way to reestablish the connection. Inside ioBroker the mqtt service is running. Tried several thing of course restart iobroker  
then `apt update` and `apt full-upgrade` some effect, all my flows do not get connection to the running mqtt server, even there are no error's inside the iobroker log. Help would be great.

---

<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:** [7 December 2022 12:39 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/2 "2022-12-07T12:39:37Z")

</div>

> [@at-bh](#):
>
> ioBroker

Sorry, never used that. You may need to ask in their forum rather than here.

---

<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:** [7 December 2022 13:36 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/3 "2022-12-07T13:36:29Z")

</div>

Is the mqtt broker on the same machine as node-red?

Are you accessing the broker using its IP address? Perhaps that has changed.

Are you able to connect to the broker using something like MQTTExplorer?

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 13:44 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/4 "2022-12-07T13:44:32Z")

</div>

Inside ioBroker I am using mqtt server adapter and nodred plugin ...

Before every thing was working without errors, after changing layout of dashboard the connection get lost. I was trying to make a restore a version from day before, this was successful but same situation no connection to mqtt server

Yes same maschine, access via ip and port, nothing was changed, the only thing that chanced is lost connection. Even when I establish a new mqtt server with different name, there is no connection possible.

Never worked with a MQTTExplorer ... is it an addon?

---

<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:** [7 December 2022 13:53 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/5 "2022-12-07T13:53:06Z")

</div>

> [@at-bh](#):
>
> MQTTExplorer

Google it. It is an application you can install that is extremely useful for testing MQTT.

> [@Colin](#):
>
> Are you accessing the broker using its IP address?

You didn't answer that. Show us how you have configured the broker node in node-red. Also show us a screenshot in node red showing it not connected. You can paste an image here directly.

Do you know how to find the node-red logs in that environment? If not then you will probably have to ask on a relevant forum. Once you have found them then post what the log shows on starting node-red.

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 13:53 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/6 "2022-12-07T13:53:35Z")

</div>

Fount MQTTExplorer will check out and send result in shorten

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 14:11 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/7 "2022-12-07T14:11:39Z")

</div>

what I found is that inside iobroker there is no connection to nodered project ... before my crash I  
had connections to see picture

 ![mqtt no connection with nodered](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a229116f010cc1d54f7a72d502fdc395032496f1.jpeg)  
My question is how to tell nodered to connect a project, seemed this could be the source of failure

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 December 2022 14:38 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/8 "2022-12-07T14:38:10Z")

</div>

> [@at-bh](#):
>
> Before every thing was working without errors, after changing layout of dashboard the connection get lost

Sounds like something you have changed in the flows is crashing node-red. Most common cause is creating a loop in your flow.

You will need to research how to start node red in safe mode on io broker.

Running node red outside of a container like io broker is simple but I don't know if io broker has any options to pass the safe flag to the startup.

---

<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:** [7 December 2022 14:47 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/9 "2022-12-07T14:47:35Z")

</div>

What do you see if you look at the mqtt nodes in the node red editor?

Also show us how they are configured. In particular the server settings inside the mqtt node setup.

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 15:35 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/10 "2022-12-07T15:35:06Z")

</div>

Hi Collin, there was no change in configuration of mqtt node, i will enclos a picture of my configuration  
and before crash the mqtt node setup was working fine without errors, but inside log there is message see  
` Projekte deaktiviert: editorTheme.projects.enabled=false`  
` `

 ![mqtt server settings](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97a256c2b34375bebd3e60ec4f9fc724bc04ebb0.jpeg)` `

---

<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:** [7 December 2022 16:47 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/11 "2022-12-07T16:47:12Z")

</div>

That is not a normal node-red mqtt config node. It should look like this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/3/c34e43444cdd2ef0e875cc8a9bae843d032946d8.png)

So it seems that the node-red you are using is much modified. I think you may have to go to a different forum to get this answered.

Do your node-red flows show correctly? If so what does the mqtt node look like?

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 16:53 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/12 "2022-12-07T16:53:37Z")

</div>

This is my mqtt server setting it looks like Your settings

 ![MQTT Server setting2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/8/e8afaeedcfc058525bacda4c85bcdf9a0c8c39e1.jpeg)

---

<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:** [7 December 2022 16:58 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/13 "2022-12-07T16:58:53Z")

</div>

So is that the right IP address? Is that the address that you have used in MQTTExplorer.

The node should have a connected or disconnected status under it.

I presume you have tried a reboot.

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 17:17 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/14 "2022-12-07T17:17:48Z")

</div>

Yes right IP address, see all topics in MQTT Explorer, so I think that MQTT Server is working and all messages are deploying, only inside node-red there is no display, the MQTT Explores showing all information, and every second there will be changes, so that the MQTT Server is in my opinion working.  
But by clicking on a injection node nothing happens, because there is no connection inside the nodes  
See picture

 ![MQTTExplorer](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d16f61ad7f78c8b856c991df10793f112e95d162.jpeg)

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [7 December 2022 17:20 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/15 "2022-12-07T17:20:57Z")

</div>

... what I will try next, not today but tomorrow, I will reinstall the mqtt instance and if it is furtheron not working I will reinstall iobroker and afterward I will restore my flows,  
... thanks so far ... will keep You informed

---

<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:** [7 December 2022 19:44 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/16 "2022-12-07T19:44:36Z")

</div>

Is the broker running on the same device as Node-RED? If so, that connection should be `localhost` not the IP address. By using the address when they are all on the same machine, you are forcing the connection to go via the external network interface which adds complexity - more things to go wrong. Also likely to be slower and, certainly on older Pi's, will use more CPU.

---

<div class="post-metadata">

**Author:** ![at-bh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/at-bh/32/72219_2.png) [@at-bh](https://discourse.nodered.org/u/at-bh)\
**Post date:** [8 December 2022 11:53 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/17 "2022-12-08T11:53:56Z")

</div>

SOLVED only by reinstall of ioBroker at all,  
was trying several things, starting with simple things

1. atp update / atp upgrade /reboot
2. checking and possible iobroker upgrade self (no effect everything was up to date)
3. several restarts  
--\> no effects furtheron no connection nodered to mqttt even by changing ip-adress to localhost entry  
by the way thanks for hints from TotallyInformation 🙂  
Next steps single reinstall of
4. NodeRed
5. MQTT Server  
--\> no changes same results  
than next  
` **curl -sL https://iobroker.net/install.sh | bash -** `  
reinstall and reconfigure mqtt Server, NodeRed, reinstall all flows from backup  
and now connection is possible, everything is working fine again ... the pitty finally I don't know what happen exactly but one thing nodered need to have a connection entry see picture  
 ![MQTT-NodeRed Communication](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/2/028acf4efb53c3f66c3fc3ba9ea55c823458d216.jpeg)

---

<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:** [22 December 2022 11:54 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-no-further-connection-possible/71817/18 "2022-12-22T11:54:44Z")

</div>

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