# Mosquitto broker (Bridged vs unBridge) working vs not working

**URL:** <https://discourse.nodered.org/t/mosquitto-broker-bridged-vs-unbridge-working-vs-not-working/65176>\
**Category:** General\
**Created:** [16 July 2022 01:58 UTC](https://discourse.nodered.org/t/mosquitto-broker-bridged-vs-unbridge-working-vs-not-working/65176 "2022-07-16T01:58:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [16 July 2022 01:58 UTC](https://discourse.nodered.org/t/mosquitto-broker-bridged-vs-unbridge-working-vs-not-working/65176/1 "2022-07-16T01:58:17Z")

</div>

Hi folks, it's been a wile. _I'm ba-ack!_

I have one of my headless RasPies running a **CAD LCD** display on it.  
2 x 16 and some buttons.

At one level it connects to my central MQTT broker and they talk to one another.  
There is also some local MQTT stuff of which the bigger network doesn't need to know.

I have the `mosquitto.config` set to BRIDGE the two brokers. (I'll get to that soon)  
And I run a `python` script and all is well in the world - other than the local message getting into the bigger network.

So I remove the bridge and restart the mosquitto service.

The script fails - miserably - and all the MQTT nodes that are set to talk to the local broker don't connect.

If I check the status of the mosquitto.service I am told it is running.

Would someone mind helping me get through this mine field?

---

<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 July 2022 05:51 UTC](https://discourse.nodered.org/t/mosquitto-broker-bridged-vs-unbridge-working-vs-not-working/65176/2 "2022-07-16T05:51:15Z")

</div>

> [@Trying\_to\_learn](#):
>
> So I remove the bridge and restart the mosquitto service.

Check the mosquito log.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [16 July 2022 07:18 UTC](https://discourse.nodered.org/t/mosquitto-broker-bridged-vs-unbridge-working-vs-not-working/65176/3 "2022-07-16T07:18:50Z")

</div>

Thanks Colin....

I'm stupid and after looking there, found the cause.  
Seems I stupidly put an empty line in the bridge and so when I looked at it, I didn't associate the next lines as part of the bridge....

Commented them out also and all seems to be now working.

---

<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:** [30 July 2022 07:19 UTC](https://discourse.nodered.org/t/mosquitto-broker-bridged-vs-unbridge-working-vs-not-working/65176/4 "2022-07-30T07:19:05Z")

</div>

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