'Fix' for Eclipse Mosquitto MQTT version 2.x running in Docker

preview_player
Показать описание
Eclipse Mosquitto - MQTT - was updated to version 2.0 And those MQTT improvements brought some changes to security, listener and default configuration. In this video I'll show you how to "fix" your setup if it stopped working with for external devices or Home Assistant.
Also, in the video I'll cover fix for common error of MQTT restarting.

Eclipse Mosquitto 2.0 release notes:

00:00 Intro
00:23 Thank you to channel members
00:37 About MQTT changes
01:58 How to check if you are impacted?
02:43 Fix for problem
03:44 Check if all OK
04:40 MQTT restarting?
05:06 Fix for restarts
05:55 Wrapping up the video

Code:
__________
allow_anonymous true
listener 1883 192.168.1.202
__________

Please, give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!

Have fun!
BeardedTinker

P.S. If you would like to support me and this channel, you can JOIN and become member!

Twitter: @BeardedTinker

#howto #HomeAssistant #mqtt
Рекомендации по теме
Комментарии
Автор

This is why I support you as a member of your Channel. It always save me time when I need to do something in Home Assistant.

perrose
Автор

Nice, worked for me, Using mqtt/Nodered/Homeassistant in docker on RPi4 all of a sudden just stopped, only after digging around found the 2.x upgrade messed it up. Your vid has got me back up and running again. Thx for posting.

tristan
Автор

Thank you. Yet another quick fix for my running config applied. Excellent guide as always!

jedivino
Автор

you saved me a LOT of frustration - thanks!

rix
Автор

Oh man. That thumbnail. Guess I need to up my thumbnail game! Oh and awesome video!

SlackerLabs
Автор

Hi BeardedTinker,
I'm running into a similar problem here to Mike Nexus.
After the MQTT update I reinstalled the Mosquitto broker 5.1 because I was unsure, this action was apparently a bit too fast.
The installation was successful, I see the addon_core_mosquitto container listed with the rest of the containers. The only problem is that I cannot start this container, the following error is displayed in the system log:

2/21/12 11:06:06 ERROR (SyncWorker_4) [supervisor.docker] Can't start addon_core_mosquitto: Error 500 Server Error for http + docker: Server Internal ("OCI runtime create failed: container_linux.go: 345: starting container process caused" exec: \ "/ dev / init \": stat / dev / init: no such file or directory ": unknown")



(btw, the docker folder on my Synology Volume 1 is completely empty, at least I don't see anything, ... weird, ... maybe the files are hidden ...)

Do you have any idea how to fix this problem?
Thanks in advance,
Benny

bennyrosenwasser
Автор

Absolutely great! But please clarify me "listener 1883 ip_addr". In my case it runs without IP, but with IP of the server I got error in log (Error: Address not available). I understand IP should be IP of the Mosquitto server. Am I wrong?

robertambroz
Автор

Thanks for the help. This worked. I must of had a typo like you suggested in your other video.

andychrest
Автор

Works great in my local network. How can I enable IPv6? My ISP has shared IPv4 addresses, so I can't connect to my network from outside via IPv4 ("Dual-Stack Lite"). I guess I should set-up authorization anyway before I make it available from the internet...

RamBoZamBo
Автор

Thank you for the Vid. I am just starting out with IoT + MQTT + Docker. I did wonder why my first little project just stopped working!

steves
Автор

Hi, I have the same issue with mqtt. I used your video "... Synology - #004" video to install mqtt. Everything was great until the recent security change. The problem I'm having now with your update is that there is no config file under docker/mqtt/config. Actually, I also have no files under mqtt/data and mqtt/log using DSM file station or putty so I am unable to update the config file. I can see the logs using portainer version 2.1.1. Do you have any suggestions? Thanks.

MikeySoft
Автор

I was getting the same error and then I was getting "Error: Invalid persistence value (true"
In my case the solution was to convert the configuration file to unix format

jonatanpn
Автор

I can't start mosquito broker 5.1.1 in docker on Synology, any idea please?

philou
Автор

I noticed the default paths also changed from '/mqtt/' to '/mosquitto/'.

sbaechler
Автор

This did not fix the problem for me. It opens the listening sockets (the log shows that) and then proceeds to continue to do nothing when receiving commands.

Varian-Killbot
welcome to shbcf.ru