Can' get MQTT run as a service after update to Buster Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
Hesitated
Posts: 42
Joined: Monday 04 June 2018 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11665
Location: Ede
Contact:

Can' get MQTT run as a service after update to Buster

Post by Hesitated »

Hi,

I'm trying to move my Domoticz stuff to a Raspberry with Buster. Domoticz I've installed without a prroblem, but the Mosquitto broker I cannot get it to run as a service:

Code: Select all

sudo service mosquitto status
returns
[quote]● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-04-11 23:21:36 CEST; 1min 12s ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 2806 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=
Main PID: 2806 (code=exited, status=1/FAILURE)


Apr 11 23:21:36 raspberrypi systemd[1]: mosquitto.service: Service RestartSec=100ms expired, schedul
Apr 11 23:21:36 raspberrypi systemd[1]: mosquitto.service: Scheduled restart job, restart counter is
Apr 11 23:21:36 raspberrypi systemd[1]: Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Apr 11 23:21:36 raspberrypi systemd[1]: mosquitto.service: Start request repeated too quickly.
Apr 11 23:21:36 raspberrypi systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Apr 11 23:21:36 raspberrypi systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.[/quote]

If I run

Code: Select all

/usr/sbin/mosquitto
It works perfectly:
1586640645: mosquitto version 1.6.8 starting
1586640645: Using default config.
1586640645: Opening ipv4 listen socket on port 1883.
1586640645: Opening ipv6 listen socket on port 1883.
1586640645: New connection from 127.0.0.1 on port 1883.
1586640645: New client connected from 127.0.0.1 as mqttjs_8ca1d8ba (p2, c1, k60, u'shelly2').
1586640652: New connection from 127.0.0.1 on port 1883.
1586640652: New client connected from 127.0.0.1 as domoticz (p2, c1, k60, u'shelly2').
If I run:

Code: Select all

/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
nothing seems to happen...

Has anybody a hint?
Domoticz 2020.2 - RPi3B+ - RFXtrx433XL - P1 - CC2531 - Somfy - Xiaomi - Hue - Omron - MQTT
User avatar
Hesitated
Posts: 42
Joined: Monday 04 June 2018 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11665
Location: Ede
Contact:

Re: Can' get MQTT run as a service after update to Buster

Post by Hesitated »

I thought I solved it by completely remove mosquitto from the raspberry.

Issued following command:

Code: Select all

sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list
and then adding it again...

Aaaarrrrgggghhhh. :oops:

In the end it was simply the wrong password filename in the config (passwd instead of pwfile)...
Domoticz 2020.2 - RPi3B+ - RFXtrx433XL - P1 - CC2531 - Somfy - Xiaomi - Hue - Omron - MQTT
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest