MQTT Port '8884' is already in use by something else on the host

Hi There,

Yesterday my MQTT server seemed to be working OK I could switch on and off my MQTT devices. This morning I noticed that all my MQTT sensors and switches were showing “unavailable” from 08:00. I noticed that in the Supervisor there was a new core update 2021.6.1 (from memory) and knowing that as I’m running HA Supervised that sometimes if I don’t update to the latest core then things do stop working, I then proceeded to update to the latest Core.

Still no MQTT functionality and I noticed that the MQTT server had not started, so I manually clicked “start” but I get the error message:

Port '8884' is already in use by something else on the host.

I have not changed anything on my HA system (RasperryPi 3B) I only have a Deconz USB stick plugged in to one of the USB ports and that integration has been stopped as I don’t have any compatible sensors yet and I had MQTT working for many weeks in this state.

So clearly the problem is that the MQTT server can not start due to port 8884 being unavailable. Would anyone have any ideas where I should start to troubleshoot this issue further?

Im not a pro user so please go to basic level for my understanding. Thank you!

EDIT: From the HA Log file:

2021-06-04 18:51:27 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect to MQTT server due to exception: [Errno 111] Connection refused
1 Like

Hi again,

Just to give some feedback. After I unplugged the Conbi II stick from the USB and then restarting the host, MQTT has now been able to start and connect. MQTT devices are populating and working again.

Great!

But why did this happen out of the blue?

2 Likes

Yesterday I had the same. Reinstalling MQTT broker add-on did not fix it.

Reboot of host did!

image
Choose: Reboot system

2 Likes

Your answer was perfect for me, thanks…

You’re the best. Thank you, I just reboot the system and now its working!