monitor
monitor copied to clipboard
New mosquitto version breaks monitor functionality
Hello,
This is what I get:
Unpacking mosquitto (2.0.13-0mosquitto1~buster1) ... Setting up libwebsockets18:armhf (4.2.1-0mosquitto1~buster2) ... Setting up mosquitto (2.0.13-0mosquitto1~buster1) ... Created symlink /etc/systemd/system/multi-user.target.wants/mosquitto.service → /lib/systemd/system/mosquitto.service. Job for mosquitto.service failed because a fatal signal was delivered to the control process. See "systemctl status mosquitto.service" and "journalctl -xe" for details. invoke-rc.d: initscript mosquitto, action "start" failed. ● mosquitto.service - Mosquitto MQTT Broker Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: signal) since Sun 2021-11-14 09:06:28 CET; 180ms ago Docs: man:mosquitto.conf(5) man:mosquitto(8) Process: 5178 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS) Process: 5181 ExecStartPre=/bin/chown mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS) Process: 5183 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS) Process: 5187 ExecStartPre=/bin/chown mosquitto /run/mosquitto (code=exited, status=0/SUCCESS) Process: 5188 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=ILL) Main PID: 5188 (code=killed, signal=ILL)
Nov 14 09:06:28 raspberrypi systemd[1]: mosquitto.service: Service RestartSec=100ms expired, scheduling restart. Nov 14 09:06:28 raspberrypi systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 1. Nov 14 09:06:28 raspberrypi systemd[1]: Stopped Mosquitto MQTT Broker. dpkg: error processing package mosquitto (--configure): installed mosquitto package post-installation script subprocess returned error exit status 1 Processing triggers for systemd (241-7~deb10u8+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpt2+rpi1) ... Errors were encountered while processing: mosquitto E: Sub-process /usr/bin/dpkg returned an error code (1)
Same problem, saw that when running "gdb --args /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf", it shows 0xb6b5e7a0 in ?? () from /usr/lib/arm-linux-gnueabihf/libwebsockets.so.18 Seems like a problem with libwebsockets?? Dunno, but I have the same problem whether in Buster or Bullseye. I've compiled libwebsockets with the same problem. If anyone finds a solution, I'd love to hear it.
Downgrading from 2.0.13-0mosquitto1~buster1 version back to 1.5.7-1+deb10u1 brings back functionality for monitor.
Can you elaborate on the steps needed? Because I couldn't install an earlier package neither on buster nor bullseye
I am using RPi Zero and it did the trick.
Instead of this (as explained in instructions) : sudo apt-get install -f libmosquitto-dev mosquitto mosquitto-clients libmosquitto1
I did this: sudo apt-get install -f libmosquitto-dev=1.5.7-1+deb10u1 mosquitto=1.5.7-1+deb10u1 mosquitto-clients=1.5.7-1+deb10u1 libmosquitto1=1.5.7-1+deb10u1
or install each separately with adding "=1.5.7-1+deb10u1" at the end.
Thanks for the note, everyone. I'll look into this.
Same issue...did a clean install on a Rasp Pi Zero W with Bullseye and pulled Mosquito from the main Pi repository (v2.0.11) and everything works fine again.
Thanks for the note, everyone. I'll look into this.
Yes, the problem seems installing the repo. If you do the sudo apt-get install -f libmosquitto-dev mosquitto mosquitto-clients libmosquitto1 without installing the repo mentioned in the how-to, it installs and works with bullseye
oh chuff is that so? I've just wasted an hour then! Downgraded to Buster from Bullseye and got same error - should have just not installed the repo it seems. @andrewjfreyer could the docs be updated? Thanks!!