Closed danb35 closed 3 years ago
Dear @danb35,
thank you for your report. I believe you might got tripped by the same thing we experienced recently. Mosquitto has been upgraded to version 2.x, which brings in a more secure default configuration. You will explicitly have to configure it like outlined at [1].
Please let me know if this resolves your problem already or whether we will have to dig deeper why the data acquisition stopped working.
With kind regards, Andreas.
[1] https://community.hiveeyes.org/t/giving-the-backend-software-infrastructure-some-love/3839/5
Please note that Mosquitto 2.x introduced a breaking change. However, it was a good decision because it strengthens the security on default installations.
When the Mosquitto broker is run without configuring any listeners it will now bind to the loopback interfaces
127.0.0.1
and/or::1
. This means that only connections from the local host will be possible.
So, in order to make Mosquitto listen on the public interface and accept anonymous requests again, you will have to configure your /etc/mosquitto/conf.d/default.conf
like that:
https://github.com/eclipse/mosquitto/blob/12ff9d5e/docker/2.0/mosquitto-no-auth.conf
# This is a Mosquitto configuration file that creates a listener on port 1883
# that allows unauthenticated access.
listener 1883
allow_anonymous true
I've been using Kotori for a few months to log data from my WeeWx system via MQTT, and it's been working well--until yesterday afternoon. I rebooted the system running Kotori at that time, and weewx hasn't logged any records since that. Sadly, it also doesn't log any error messages.
However, I'm noticing that I get "connection refused" messages for remote MQTT requests:
Mosquitto appears to be running on the kotori system:
And it appears to be listening on port 1883:
Nothing really stands out in the kotori log, though its size is almost 4 GB, so I could easily have missed it.