eclipse-mosquitto / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9.1k stars 2.4k forks source link

mosquitto-clients Update to 2.0.13 -> got directly with only --help -> Ungültiger Maschinenbefehl #2384

Open localhorst-org opened 3 years ago

localhorst-org commented 3 years ago

i'am on an raspi with raspios -> buster

with mosquitto-clients 2.0.12 everything works as expected.

:~$ cat /etc/debian_version
10.11
:~$ cat /etc/apt/sources.list.d/mosquitto-buster.list
deb https://repo.mosquitto.org/debian buster main
:~$ dpkg -l | grep mosquitto
ii  libmosquitto1:armhf                  2.0.12-0mosquitto1~buster1              armhf        MQTT version 3.1/3.1.1/5.0 client library
ii  mosquitto-clients                    2.0.12-0mosquitto1~buster1              armhf        Mosquitto command line MQTT clients
:~$ mosquitto_sub --help
mosquitto_sub is a simple mqtt client that will subscribe to a set of topics and print all messages it receives.
mosquitto_sub version 2.0.12 running on libmosquitto 2.0.12.
[...]
:~$ mosquitto_pub --help
mosquitto_pub is a simple mqtt client that will publish a message on a single topic and exit.
mosquitto_pub version 2.0.12 running on libmosquitto 2.0.12.
[...]
:~# apt-get update
:~# apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete werden aktualisiert (Upgrade):
  libmosquitto1 mosquitto-clients
2 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 191 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 34,8 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n]
Changelogs werden gelesen... Fertig
(Lese Datenbank ... 100990 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../mosquitto-clients_2.0.13-0mosquitto1~buster1_armhf.deb ...
Entpacken von mosquitto-clients (2.0.13-0mosquitto1~buster1) über (2.0.12-0mosquitto1~buster1) ...
Vorbereitung zum Entpacken von .../libmosquitto1_2.0.13-0mosquitto1~buster1_armhf.deb ...
Entpacken von libmosquitto1:armhf (2.0.13-0mosquitto1~buster1) über (2.0.12-0mosquitto1~buster1) ...
libmosquitto1:armhf (2.0.13-0mosquitto1~buster1) wird eingerichtet ...
mosquitto-clients (2.0.13-0mosquitto1~buster1) wird eingerichtet ...
Trigger für man-db (2.8.5-2) werden verarbeitet ...
Trigger für libc-bin (2.28-10+rpt2+rpi1) werden verarbeitet ...

I got directly with only --help the error message

:~$ mosquitto_sub --help
Ungültiger Maschinenbefehl
:~$ mosquitto_pub --help
Ungültiger Maschinenbefehl

Downgrade to the prior Version 2.0.12

:~# apt-get install mosquitto-clients=2.0.12-0mosquitto1~buster1 libmosquitto1=2.0.12-0mosquitto1~buster1
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden durch eine ÄLTERE VERSION ERSETZT (Downgrade):
  libmosquitto1 mosquitto-clients
0 aktualisiert, 0 neu installiert, 2 durch eine ältere Version ersetzt, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 190 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 34,8 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n]
dpkg: Warnung: Version 2.0.13-0mosquitto1~buster1 des Paketes mosquitto-clients wird durch ältere Version 2.0.12-0mosquitto1~buster1 ersetzt
(Lese Datenbank ... 100990 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../mosquitto-clients_2.0.12-0mosquitto1~buster1_armhf.deb ...
Entpacken von mosquitto-clients (2.0.12-0mosquitto1~buster1) über (2.0.13-0mosquitto1~buster1) ...
dpkg: Warnung: Version 2.0.13-0mosquitto1~buster1 des Paketes libmosquitto1:armhf wird durch ältere Version 2.0.12-0mosquitto1~buster1 ersetzt
Vorbereitung zum Entpacken von .../libmosquitto1_2.0.12-0mosquitto1~buster1_armhf.deb ...
Entpacken von libmosquitto1:armhf (2.0.12-0mosquitto1~buster1) über (2.0.13-0mosquitto1~buster1) ...
libmosquitto1:armhf (2.0.12-0mosquitto1~buster1) wird eingerichtet ...
mosquitto-clients (2.0.12-0mosquitto1~buster1) wird eingerichtet ...
Trigger für man-db (2.8.5-2) werden verarbeitet ...
Trigger für libc-bin (2.28-10+rpt2+rpi1) werden verarbeitet ...
:~$ mosquitto_sub --help
mosquitto_sub is a simple mqtt client that will subscribe to a set of topics and print all messages it receives.
mosquitto_sub version 2.0.12 running on libmosquitto 2.0.12.
[...]
:~$ mosquitto_pub --help
mosquitto_pub is a simple mqtt client that will publish a message on a single topic and exit.
mosquitto_pub version 2.0.12 running on libmosquitto 2.0.12.
[...]

works for me again

regards horst

SelmaUrban commented 3 years ago

Same here, i can confirm that issue for "mosquitto" with buster and bullseye release! Downgrade doesn't work for me.

Joulinar commented 3 years ago

the issue seems to be dedicated to ARMv6 systems like RPi1. On a RPi3B+ installation of 2.0.13 is working fine.

SelmaUrban commented 3 years ago

it seems the problem with RPi1 is on libwebsockets18 package from 12-Nov-2021 02-Sep-2021 is OK (with mosquitto 2.0.12)

localhorst-org commented 3 years ago

i can confirm that i'am on an older raspi model name : ARMv6-compatible processor rev 7 (v6l)

but libwebsockets18 was not installed on my system

ralight commented 3 years ago

Thanks all, I'm looking into it.

thermalhound commented 2 years ago

Just had the same issue on a Pi Zero running DietPi Buster. Downgrade to 2.0.11 sorted it for now using

apt-get install mosquitto=2.0.11-0mosquitto1~buster1 -V

Joulinar commented 2 years ago

@ralight did you already had a chance to look into it?

MichaIng commented 2 years ago

I just verified on Debian Bullseye that downgrading libwebsocket18 from 4.2.1-0mosquitto1~bullseye2 to 4.2.1-0mosquitto1~bullseye1 solves it, while there is no older mosquitto package build.

On Buster on the other hand there is no older libwebsocket12 (it's 12 there, compared to 18 on Bullseye) package, which is quite old already, but the older mosquitto build mosquitto_2.0.11-0mosquitto1~buster1 instead solves it.

I guess that newest packages have been compiled on a different dev system/toolkit for armv7l instead of being armv6l compatible. But strange is that latest Bullseye mosquitto, which was built the same time as the one for Buster, does work 🤔.