MQTT Help Needed - please

2,118 views
Skip to first unread message

mukbar

unread,
Nov 2, 2021, 11:35:48 PM11/2/21
to weewx-user
Thanks to so many of you here, my site is up: https://sprweather.com/

Trying to set up MQTT using DigitalOcean via Pat's instructions. 

Add to the custom broker configuration and then am stuck here:

mosquitto -c /etc/mosquitto/mosquitto.conf

1635909704: Loading config file /etc/mosquitto/conf.d/myconfig.conf
[17890.738197]~DLT~ 5060~INFO     ~FIFO /tmp/dlt cannot be opened. Retrying later...
[17900.759250]~DLT~ 5060~WARNING  ~Lost log messages in user buffer when exiting: 6
[17900.759766]~DLT~ 5060~WARNING  ~NWTSegmented: Error while reading queue: Bad file descriptor

If anyone's seen this, please let me know what I'm doing wrong. I'm sure it's something silly.

Thank you, in advance.
Mukul

vince

unread,
Nov 3, 2021, 1:51:47 PM11/3/21
to weewx-user
We'd have to see your mosquitto.conf and myconfig.conf files.   Please 'attach' them to a reply rather than cutting and pasting the contents.  If you password-protected your setup, change the usernames/passwords if you have any in them of course before posting.

I see in Pat's instructions that you should be careful to not have spaces at end-of-line, so you might want to check for that first.  

mukbar

unread,
Nov 3, 2021, 4:03:31 PM11/3/21
to weewx-user
Yes, I double checked the spaces. I think I'm missing something fundamental but can't figure it out. 

I have attached screenshots of mosquitto.conf and myconfig.conf.

Thank you for your help.

mosquitto conf.png
myconfig conf.png

mukbar

unread,
Nov 5, 2021, 11:55:43 PM11/5/21
to weewx-user
In case anyone stumbles on this in the future, fix the problem with:

sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa 
sudo apt-get update

Only took me 3 weeks to figure it out! :) 

Onward....
Reply all
Reply to author
Forward
0 new messages