MQTT didn't start

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
arhtur
Posts: 5
Joined: Sunday 02 May 2021 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: France
Contact:

MQTT didn't start

Post by arhtur »

Hello everyone,
I'm running a domoticz on a raspberrypi 4. The domoticz is up to date on the last version. I run on the same machine mosquitto, node-red, grafana.
I'm using node-red to send data to domoticz threw mosquitto. Everything was working fine till a few month ago. I had no time to check so only this WE I see in Domoticz logs that it can't connect to Mosquitto due to password problem RC=5 (I have a username and password on mosquitto).
Even by putting again the user and password it was still saying the same thing in the logs.
So I update Domoticz, erase the MQTT to LAN connection and made a new one. Now I can't read anything about MQTT in the logs. I'm quite sure the connection didn't start. I try everything I can imagine but now I have no idea.
Do you have any Idea where the problem comes from ?
I'm sure about my mosquitto user name and password. I test it and it works on MQTT clients.
Thanks a lot for your answers.
Arhtur

About Domoticz
Version: 2021.1
Compile Date: 2021-04-17 17:29:11
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT didn't start

Post by waltervl »

Check viewtopic.php?f=6&t=36171 to get the logs back (enable debug in logging)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
arhtur
Posts: 5
Joined: Sunday 02 May 2021 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: France
Contact:

Re: MQTT didn't start

Post by arhtur »

Hello,
I think my problem didn't came from MQTT but Python. When I look the about page in domoticz I have : Python Version: None.
I have python and Libpython v3.7 installed on the system. I checked google and I'm afraid I have to reinstall domoticz except If you have a solution.
Thanks a lot
Arhtur
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT didn't start

Post by waltervl »

Please reboot your system and check again, also on the Domoticz log about Python because you did not do anything with Python.

Reinstalling Domoticz will not solve the Python issue.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
arhtur
Posts: 5
Joined: Sunday 02 May 2021 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: France
Contact:

Re: MQTT didn't start

Post by arhtur »

Hello, Thank you for your help.
I already try to reboot and also restart domoticz.
In the logs about python I have :

Code: Select all

PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: MQTT didn't start

Post by waaren »

arhtur wrote: Monday 03 May 2021 19:27 Hello, Thank you for your help.
I already try to reboot and also restart domoticz.
Check this post where it is explained you also need python-dev
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
arhtur
Posts: 5
Joined: Sunday 02 May 2021 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: France
Contact:

Re: MQTT didn't start

Post by arhtur »

The python-dev removes the logs problems but still Python Version: None in the About page and MQTT still didn't work even after a reboot of the server.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: MQTT didn't start

Post by waaren »

arhtur wrote: Tuesday 04 May 2021 23:44 The python-dev removes the logs problems but still Python Version: None in the About page and MQTT still didn't work even after a reboot of the server.
Please check if you set the event system to active. [Setup][Settings][Other]
event system.png
event system.png (10 KiB) Viewed 460 times

If it is not set you will see
python version.png
python version.png (26.41 KiB) Viewed 460 times

On the about page and you will not see any reference to the Python EventSystem or to the (Python) PluginSystem n the domoticz log.

MQTT in domoticz is not depending on Python so if MQTT does not work it is because of another reason.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
arhtur
Posts: 5
Joined: Sunday 02 May 2021 19:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: France
Contact:

Re: MQTT didn't start

Post by arhtur »

Thank you for your help.
The event system is active
On the hardware I put also a RFlink Gateway USB and noting happen either. It's like if all what I put in Hardware wasn't working.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: MQTT didn't start

Post by waaren »

arhtur wrote: Wednesday 05 May 2021 1:14 Thank you for your help.
The event system is active
On the hardware I put also a RFlink Gateway USB and noting happen either. It's like if all what I put in Hardware wasn't working.
If you checked all the usual suspects (browser and appcache, database integrity, power supply, sd card, any unexpected messages in the log with debug log activated) and found nothing then I guess it's time to make a backup of your database, plugins and scripts and redo the install, following the guide on the wki
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests