# MQTT connection breaks when deploying, re-established when deploying again

**URL:** https://discourse.nodered.org/t/mqtt-connection-breaks-when-deploying-re-established-when-deploying-again/78350
**Category:** General
**Created:** [11 May 2023 09:11 UTC](https://discourse.nodered.org/t/mqtt-connection-breaks-when-deploying-re-established-when-deploying-again/78350 "2023-05-11T09:11:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![dieterbk](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dieterbk](https://discourse.nodered.org/u/dieterbk)
#### Post date: [11 May 2023 10:39 UTC](https://discourse.nodered.org/t/mqtt-connection-breaks-when-deploying-re-established-when-deploying-again/78350/2 "2023-05-11T10:39:46Z")

</div>

After searching a little bit deeper I found the following:

[MQTT not reconnecting on edit if only only one mqtt node using the config node #3927](https://discourse.nodered.org/t/mqtt-not-reconnecting-if-only-only-one-mqtt-node-using-it/69381)

This is a known bug and already fixed (hopefully will be released in the next version)

After adding a second MQTT node it is working as expected, MQTT connection is stable after deploying

---

_[View the full topic](https://discourse.nodered.org/t/mqtt-connection-breaks-when-deploying-re-established-when-deploying-again/78350)._
