Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

MQTT: Error - Not connected to MQTT server - message not sent

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
lgeitner
Posts: 27
Joined: Wed 11 Aug 2021 1:40 pm
Weather Station: Davis VP2 6163
Operating System: Linux

MQTT: Error - Not connected to MQTT server - message not sent

Post by lgeitner »

Hi,

I have just upgraded from CumulusMX 3.14.1 b3160 to CumulusMX 3.25.0 b3241. My MQTT messages were working on 3.14.1 b3160. I am receiving the following error message on 3.25.0 b3241

2023-05-09 13:55:02.851 MQTT: Using template - mqtt/DataUpdateTemplate.txt
2023-05-09 13:55:02.853 MQTT: Error - Not connected to MQTT server - message not sent

Any suggestions on how to troubleshot this?

Thank You,
Lance
lgeitner
Posts: 27
Joined: Wed 11 Aug 2021 1:40 pm
Weather Station: Davis VP2 6163
Operating System: Linux

Re: MQTT: Error - Not connected to MQTT server - message not sent

Post by lgeitner »

Here is some additional information from the log files

2023-05-09 15:57:05.070 MQTT: Using template - mqtt/DataUpdateTemplate.txt
2023-05-09 15:57:05.071 MQTT: publishing to topic 'CumulusMXKitchen/DataUpdate', message '{"date":"09/05/2023","time":"15:57:05","battery":"4.76","transmitterbat":"ok","outdoortemp":"68.1","indoortemp":"76.0","outdoorhum":"29","indoorhum":"39","dewpoint":"34.6","pressure":"29.98","wlatest":"2","wspeed":"3","wgust":"6","windTM":"6","wgustTM":"11","SystemUpTime":"0 days 2 hours","ProgramUpTime":"0 days 2 hours","CPUTemp":"120.5"}'
2023-05-09 15:57:05.071 MQTT: Error - Not connected to MQTT server - message not sent
lgeitner
Posts: 27
Joined: Wed 11 Aug 2021 1:40 pm
Weather Station: Davis VP2 6163
Operating System: Linux

Re: MQTT: Error - Not connected to MQTT server - message not sent

Post by lgeitner »

I also wanted to mention I was previously using a 32 bit Raspberry PI OS on a Raspberry PI 4 B. I started with a clean install of Raspberry PI 64 Bit OS (2023-05-03-raspios-bullseye-arm64.img.xz). Since cumulusmx is now 64 bit capable. I have Mono version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3~deb11u1 Sat Feb 18 21:38:24 UTC 2023) installed.
lgeitner
Posts: 27
Joined: Wed 11 Aug 2021 1:40 pm
Weather Station: Davis VP2 6163
Operating System: Linux

Re: MQTT: Error - Not connected to MQTT server - message not sent

Post by lgeitner »

I was able to resolve the error by changing Internet Settings > MQTT > Server Name: from xxx.xxx.xxx.xxx to homeassistant.local.

Not really sure why that fixed it!
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: MQTT: Error - Not connected to MQTT server - message not sent

Post by mcrossley »

Me neither, but that was quite an upgrade jump. The MQTT library CMX uses went from version 3.0.16 to 4.1.4 between those builds.
Post Reply