# Cedalo claims it cannot connect to broker (MQTT)

**URL:** <https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850>\
**Category:** Errors\
**Created:** [August 22, 2023, 2:48pm UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850 "2023-08-22T14:48:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alekacz](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alekacz](https://forum.cedalo.com/u/alekacz)\
**Post date:** [August 22, 2023, 2:48pm UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/1 "2023-08-22T14:48:13Z")

</div>

Hello,

We have both MQTT and Cedalo running within a docker environment in Debian. System has 2 cores (CPU) and 16GB of RAM as we noticed memory utilization being quite high.

Recently over the weekend it appears that any time you log in to the Cedalo webpage I’m met with the image/screen “We could not connect to your broker”. This prevents any interaction with the webpage entirely, so even checking connections or configurations isn’t possible via web.

This also goes hand in hand in noticing that CPU/Memory will spike, hang the system and the container for Cedalo ends up crashing / restarting. To my understanding Cedalo is simply a front end to display the data that the broker (MQTT) ingests; So I would not understand why Cedalo would or could be the reason for such resource intensivity.

I’ve deleted and recreated the container for Cedalo a few times now with fresh configurations and appears that the crashing stabilized for the most part, though this morning I observed again resources spiking high, causing a crash and restarting the Cedalo container.

Accessing the Cedalo home page on the actual VM that it is running on allowed me to access without any issue. Top right corner I could see Mosquitto (the broker) as a valid connection and no real issues past that. Today I’m experiencing the same “We could not connect to your broker” on both the local system as well as attempting to access the webpage remotely.

All this is to say, the system statistics in the background are all updating and displaying accurate information on the data ingested etc through MQTT. Realistically everything looks to be functioning, just actual web ui access is a dud.

Any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [August 23, 2023, 3:12pm UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/2 "2023-08-23T15:12:05Z")

</div>

Hello alekacz,

Can you tell me exactly what you are using? We have two products, Mosquitto and Streamsheets.  
The Mosquitto broker has a Management Center as a web UI.  
Both are either open source or as a paid version available.

Could you clarify what product, version and if paid or OS you are using. 🙂

Best

Tizian

---

<div class="post-metadata">

**Author:** ![alekacz](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alekacz](https://forum.cedalo.com/u/alekacz)\
**Post date:** [August 23, 2023, 4:06pm UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/3 "2023-08-23T16:06:05Z")

</div>

Hi Tizian,

We are utilizing Mosquitto as our broker within a Docker container that is within our Debian virtual machine.

It is open source, unpaid version.

Additionally we have a container running cedalo management which Mosquitto is added as a connection.

In regards to Mosquitto, I believe it is version 5 as per the docker page: [Docker](https://hub.docker.com/_/eclipse-mosquitto)

Attached as well is the issue at hand where accessing Management Center (Cedalo)

 ![cedaloIssue](https://canada1.discourse-cdn.com/flex030/uploads/streamsheets/original/1X/b6a3aa3571ac2529038a0608439b4dd4a694dec3.png)

As I was attempting to gather that screenshot, CPU util shot through the roof, and the Cedalo instance in the docker container had restarted. This is a somewhat reoccurring issue now, I’m wondering if there is a limitation on the number of data ingested, could we be exceeding it?

Thank you for your reply.

---

<div class="post-metadata">

**Author:** ![alekacz](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alekacz](https://forum.cedalo.com/u/alekacz)\
**Post date:** [August 23, 2023, 7:15pm UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/4 "2023-08-23T19:15:36Z")

</div>

Out of interest, I accessed the management center from my laptop (remote) and monitored CPU utilization as well as memory utilization.

Upon logging in, it definitely spiked quite a bit from low 1% to nearly 60% peak before settling at around 50% util. Refreshing caused a spike before once again settling.

While just refreshing and seeing its effect on utilization, it now suddenly “works”, which will be short lived before we are back to the previous image above.

 ![cedaloSuccess](https://canada1.discourse-cdn.com/flex030/uploads/streamsheets/original/1X/c5ae1e69469d3d6600d1f0fac619e9adbf59ac5c.png)

Version is at least shown in more clarity, but the behavior of this is erratic and quite difficult to troubleshoot what is even happening : )

Thanks

---

<div class="post-metadata">

**Author:** ![alekacz](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alekacz](https://forum.cedalo.com/u/alekacz)\
**Post date:** [August 23, 2023, 7:22pm UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/5 "2023-08-23T19:22:39Z")

</div>

After some usage within the webpage, I was hit with connection refused, refreshing prompted me to reauthenticate and back to the same old story.

Can see precisely when the Cedalo container crashed and auto restarted as util plummets:

 ![mqttCRASH](https://canada1.discourse-cdn.com/flex030/uploads/streamsheets/original/1X/fc032a638b6a2f3766ec54044ac2154a94bc9678.png)

---

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [August 24, 2023, 5:32am UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/6 "2023-08-24T05:32:03Z")

</div>

Thank you for the details. 🙂  
Could you also add the logs from the MMC please?

---

<div class="post-metadata">

**Author:** ![alekacz](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alekacz](https://forum.cedalo.com/u/alekacz)\
**Post date:** [August 25, 2023, 2:17pm UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/7 "2023-08-25T14:17:07Z")

</div>

Where can I find logs from MMC?

Thanks

---

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [August 28, 2023, 7:32am UTC](https://forum.cedalo.com/t/cedalo-claims-it-cannot-connect-to-broker-mqtt/850/8 "2023-08-28T07:32:41Z")

</div>

The logs can be found via `docker-compose logs` on the docker-compose file level. I guess both from Mosquitto and the MMC would be interesting.
