# Mosquitto broker to HiveMq connection issues

**URL:** <https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057>\
**Category:** MQTT\
**Created:** [July 4, 2026, 12:41pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057 "2026-07-04T12:41:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyc1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@andyc1](https://community.hivemq.com/u/andyc1)\
**Post date:** [July 4, 2026, 12:41pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/1 "2026-07-04T12:41:14Z")

</div>

I am running Mosquitto broker in Home Assistant. I had previously successfully connected a bridge to HiveMQ and was receiving the subscribed messages (visible in HiveMQ web client). I made some changes to the structure of the topics in the Mosquitto bridge config file, and it broke the connection. Now I can’t get the bridge connection working at all. Here is my current bridge .config file, along with the moquitto broker logs. Can anyone please help? It was working before I changed the topic structure in Block 3…

 ![Screenshot 2026-07-04 at 13.29.39](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/9/9b8b18a52b86f38682fe62245a11a9ad2323087b.png)

```auto
2026-07-04 13:35:25: Connecting bridge sa_local_inbound_stream (192.168.86.163:1883)

```

2026-07-04 13:35:25: Connecting bridge hm\_cloud\_outbound (8214ec1f1483481e933c1d9c70ced7ee.s1.eu.hivemq.cloud:8883)

2026-07-04 13:35:25: mosquitto version 2.1.2 running

2026-07-04 13:35:25: New connection from ::1:36290 on port 1883.

2026-07-04 13:35:25: Protocol error from ::1:36290: First packet not CONNECT (0A).

2026-07-04 13:35:25: Client ::1 [::1:36290] disconnected: protocol error.

[13:35:26] INFO: Successfully send discovery information to Home Assistant.

[13:35:26] INFO: Successfully send service information to the Supervisor.

---

<div class="post-metadata">

**Author:** ![SShet](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@SShet](https://community.hivemq.com/u/SShet)\
**Post date:** [July 6, 2026, 8:59am UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/2 "2026-07-06T08:59:35Z")

</div>

Hello @andyc1

Welcome to HiveMQ Community Forum.  
The issue is with the wildcard characters ( **`#`** ) in your **Block 3** topic mappings. Mosquitto bridge topic configuration doesn’t use wildcards in the same way as MQTT topic filters.

**The problem in your configuration:**

```auto
topic solar_assistant/# out 0 energyos/pt/sv_2026_009/site_01/solar_assistant/ #
topic shelly/# out 0 energyos/pt/sv_2026_009/site_01/shelly/ #

```

**Corrected configuration:**

```auto
topic solar_assistant/# out 0 energyos/pt/sv_2026_009/site_01/solar_assistant/

topic shelly/# out 0 energyos/pt/sv_2026_009/site_01/shelly/

```

After making this change, restart your Mosquitto broker and the bridge connection to HiveMQ Cloud should work again.

We hope this helps.

Regards,  
Sheetal from HiveMQ Support

---

<div class="post-metadata">

**Author:** ![andyc1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@andyc1](https://community.hivemq.com/u/andyc1)\
**Post date:** [July 6, 2026, 9:57am UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/3 "2026-07-06T09:57:16Z")

</div>

Thanks for your response Sheetal, however after amending the topics in the .config file and restarting the broker, I still get the same error in the logs:

```auto
2026-07-06 10:53:39: Connecting bridge hm_cloud_outbound (8214ec1f1483481e933c1d9c70ced7ee.s1.eu.hivemq.cloud:8883)

```

2026-07-06 10:53:39: mosquitto version 2.1.2 running

2026-07-06 10:53:40: New connection from ::1:56758 on port 1883.

2026-07-06 10:53:40: Protocol error from ::1:56758: First packet not CONNECT (0A).

---

<div class="post-metadata">

**Author:** ![hivemq-support](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/hivemq-support/32/357_2.png) [@hivemq-support](https://community.hivemq.com/u/hivemq-support)\
**Post date:** [July 6, 2026, 4:15pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/4 "2026-07-06T16:15:08Z")

</div>

Hello Andy,

If you revert to the original topic structure (block 3) does the bridge connection work?  
For more insight into your configuration, can you share the HiveMQ bridge config.xml and mosquitto.conf?

Regards,  
Gil

---

<div class="post-metadata">

**Author:** ![andyc1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@andyc1](https://community.hivemq.com/u/andyc1)\
**Post date:** [July 9, 2026, 3:54pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/5 "2026-07-09T15:54:13Z")

</div>

Hi Gil,

No it doesn’t even connect when i revert back to original simple topic structure. I’m using HiveMQ Cloud, so don’t think I have a config.xml i can share with you. I’m bridging a local Mosquitto broker from inside a Home Assistant OS container to a HiveMQ Cloud tier over TLS port `8883`. Here is my local bridge config file:

 ![Screenshot 2026-07-09 at 16.41.43](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/b/b2d20aa5b7aa383e70ef7309c44dcafffb7668fa.png)

My HiveMQ cluster endpoint is 8214ec1f1483481e933c1d9c70ced7ee.s1.eu.hivemq.cloud

The local mosquitto error logs:

 ![Screenshot 2026-07-09 at 16.51.20](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/6/6ed6409da02872fe95e07a88f7d30e600135d78d.png)

---

<div class="post-metadata">

**Author:** ![hivemq-support](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/hivemq-support/32/357_2.png) [@hivemq-support](https://community.hivemq.com/u/hivemq-support)\
**Post date:** [July 9, 2026, 9:50pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/6 "2026-07-09T21:50:29Z")

</div>

​Hello Andy,  
​

I’m having difficulty locating your cluster through our backoffice.  
Can you please provide the email address (organization owner) for cluster 8214ec1f1483481e933c1d9c70ced7ee.s1.eu.hivemq.cloud?  
​

With your consent, I would like to create a temporary credential and test the connection from my side.

Are you able to bump up the Mosquitto logging to DEBUG to give us more logging?  
​I see the connection initiated to port 8883, but nothing else is written afterwards.

Regards,  
Gil

---

<div class="post-metadata">

**Author:** ![andyc1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@andyc1](https://community.hivemq.com/u/andyc1)\
**Post date:** [July 9, 2026, 11:02pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/7 "2026-07-09T23:02:40Z")

</div>

Hi Gil, email address is [Andy.cocker@gmail.com](mailto:Andy.cocker@gmail.com) I’ll get the debug logs and forward in the morning. Thanks for your assistance.

Andy

---

<div class="post-metadata">

**Author:** ![hivemq-support](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/hivemq-support/32/357_2.png) [@hivemq-support](https://community.hivemq.com/u/hivemq-support)\
**Post date:** [July 10, 2026, 2:50pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/8 "2026-07-10T14:50:51Z")

</div>

Hello Andy,​

The organization ID bound to the address [Andy.cocker@gmail.com](mailto:Andy.cocker@gmail.com) is “n0z8zi” with cluster endpoint:  
b7a5fa5670d0410cb9eea1c45ec08a4b.s1.eu.hivemq.cloud  
…and not ​

8214ec1f1483481e933c1d9c70ced7ee.s1.eu.hivemq.cloud

Could you please confirm?  
​  
Regards,  
Gil

---

<div class="post-metadata">

**Author:** ![andyc1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@andyc1](https://community.hivemq.com/u/andyc1)\
**Post date:** [July 10, 2026, 3:18pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/9 "2026-07-10T15:18:57Z")

</div>

Hi Gil, no, the organization is Solviva and the endpoint is 8214ec1f1483481e933c1d9c70ced7ee.s1.eu.hivemq.cloud - See screengrab:

Also here are the debug logs from Mosquitto broker

```auto

[16:12:59] INFO: Starting mosquitto MQTT broker...
2026-07-10 16:12:59: Loading config file '/share/mosquitto/energyos.conf'
2026-07-10 16:12:59: Info: running mosquitto as user: root.
2026-07-10 16:12:59: Warning: Mosquitto should not be run as root/administrator.
2026-07-10 16:12:59: Restored 412 base messages
2026-07-10 16:12:59: Restored 412 retained messages
2026-07-10 16:12:59: Restored 3 clients
2026-07-10 16:12:59: Restored 1 subscriptions
2026-07-10 16:12:59: Restored 0 client messages
2026-07-10 16:12:59: mosquitto version 2.1.2 starting
2026-07-10 16:12:59: Config loaded from /etc/mosquitto/mosquitto.conf.
2026-07-10 16:12:59: Bridge support available.
2026-07-10 16:12:59: Persistence support available.
2026-07-10 16:12:59: TLS support available.
2026-07-10 16:12:59: TLS-PSK support available.
2026-07-10 16:12:59: Websockets support available.
2026-07-10 16:12:59: Loading plugin: /usr/share/mosquitto/go-auth.so
2026-07-10 16:12:59: ├── Username/password checking enabled.
2026-07-10 16:12:59: ├── TLS-PSK checking enabled.
2026-07-10 16:12:59: └── Extended authentication not enabled.
2026-07-10 16:12:59: Plugin has registered to receive 'reload' events.
2026-07-10 16:12:59: Plugin has registered to receive 'basic-auth' events.
2026-07-10 16:12:59: Plugin has registered to receive 'acl-check' events.
2026-07-10 16:12:59: Plugin has registered to receive 'psk-key' events.
2026-07-10 16:12:59: Opening ipv4 listen socket on port 1883.
2026-07-10 16:12:59: Opening ipv6 listen socket on port 1883.
2026-07-10 16:12:59: Opening ipv4 listen socket on port 1884.
2026-07-10 16:12:59: Opening ipv6 listen socket on port 1884.
2026-07-10 16:12:59: Connecting bridge sa_local_inbound_stream ([192.168.86.163:1883](http://192.168.86.163:1883))
2026-07-10 16:12:59: Bridge core-mosquitto.sa_local_inbound_stream sending CONNECT
2026-07-10 16:12:59: Bridge local.core-mosquitto.hm_cloud_outbound doing local SUBSCRIBE on topic energyos/pt/sv_2026_009/site_01/solar_assistant/solar_assistant/#
2026-07-10 16:12:59: Bridge local.core-mosquitto.hm_cloud_outbound doing local SUBSCRIBE on topic energyos/pt/sv_2026_009/site_01/Shelly/Shelly/#
2026-07-10 16:12:59: Connecting bridge hm_cloud_outbound (8214ec1f1483481e933c1d9c70ced7ee.s1.eu.hivemq.cloud:8883)
2026-07-10 16:12:59: Bridge core-mosquitto.hm_cloud_outbound sending CONNECT
2026-07-10 16:12:59: mosquitto version 2.1.2 running
2026-07-10 16:12:59: Received CONNACK on connection local.core-mosquitto.sa_local_inbound_stream.
2026-07-10 16:12:59: Bridge local.core-mosquitto.sa_local_inbound_stream sending SUBSCRIBE (Mid: 64, Topic: #, QoS: 0, Options: 0x00)
2026-07-10 16:12:59: Received PUBACK from local.core-mosquitto.sa_local_inbound_stream (Mid: 63, RC:0)
2026-07-10 16:12:59: Received SUBACK from local.core-mosquitto.sa_local_inbound_stream
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/grid_charge_point_2/state', ... (1 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/time_point_5/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/grid_peak_shaving_power/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/max_charge_current/state', ... (2 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/battery_absorption_charge_voltage/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/capacity_point_3/state', ... (2 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/battery_equalization_charge_voltage/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/voltage_point_6/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/grid_charge_point_4/state', ... (1 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/max_solar_power/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/generator_stop_capacity/state', ... (3 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/power_point_4/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/grid_voltage_high/state', ... (5 bytes))
2026-07-10 16:12:59: Received PUBLISH from local.core-mosquitto.sa_local_inbound_stream (d0, q0, r1, m0, 'solar_assistant/inverter_1/use_timer/state', ... (1 bytes))

```

> **(attachments)**
>
> ![Screenshot 2026-07-10 at 16.05.27.jpg](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/c/ccc94026939b2ee15e12bb83699d811135ce026b.jpeg)

---

<div class="post-metadata">

**Author:** ![hivemq-support](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/hivemq-support/32/357_2.png) [@hivemq-support](https://community.hivemq.com/u/hivemq-support)\
**Post date:** [July 10, 2026, 5:25pm UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/10 "2026-07-10T17:25:38Z")

</div>

​

Hello Andy,  
​

Organization ID = n0z8zi is Organization name = Solviva.  
This can also be verified by clicking on the Organizations button in the top left of your console:  
 ![](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/7/7f79130b4375380e7d61bd9818776eb3a1a2c44e.png)

When I login to your organization, I can only see 1 cluster:

 ![](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/7/7f0a3feb0a8f44df61c2fff909f76c8b954db872.png)

Can you share similar screenshots when you login to cloud console and include:

1. Organization button → Members section
2. Cloud clusters screen

Regards,  
Gil

---

<div class="post-metadata">

**Author:** ![andyc1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@andyc1](https://community.hivemq.com/u/andyc1)\
**Post date:** [July 11, 2026, 11:01am UTC](https://community.hivemq.com/t/mosquitto-broker-to-hivemq-connection-issues/4057/11 "2026-07-11T11:01:10Z")

</div>

Hi Gil, very strange; I see a different cluster than you.

 ![image.png](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/b/ba8a295bd24a77939189f783224a26b71285a4d3.png)
