Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New mosquitto version breaks monitor functionality #400

Open
mmatesic01 opened this issue Nov 14, 2021 · 8 comments
Open

New mosquitto version breaks monitor functionality #400

mmatesic01 opened this issue Nov 14, 2021 · 8 comments

Comments

@mmatesic01
Copy link

Hello,

This is what I get:

Unpacking mosquitto (2.0.13-0mosquitto1buster1) ...
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)

@drageloth
Copy link

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.

@mmatesic01
Copy link
Author

mmatesic01 commented Nov 15, 2021

Downgrading from 2.0.13-0mosquitto1~buster1 version back to 1.5.7-1+deb10u1 brings back functionality for monitor.

@drageloth
Copy link

Can you elaborate on the steps needed? Because I couldn't install an earlier package neither on buster nor bullseye

@mmatesic01
Copy link
Author

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.

@andrewjfreyer
Copy link
Owner

Thanks for the note, everyone. I'll look into this.

@cyclistguy
Copy link

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.

@drageloth
Copy link

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

@26tajeen
Copy link

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants