Dear all,
i am trying to install mosquitto broker on my raspberry pi 3+.
On this device also openhabian is running.
Howevery i always receive failure messages.
I googled and tried a lot but still i am stuck.
I also tried to re-install it several times.
Maybe someone of you can help
Manual installation and by using the openhabian-config result in the same:
sudo apt-get install -y mosquitto mosquitto-clients
Reading package lists... Done
Building dependency tree
Reading state information... Done
mosquitto-clients is already the newest version (1.5.7-1+deb10u1).
The following packages were automatically installed and are no longer required:
rpi-eeprom-images triggerhappy
Use 'sudo apt autoremove' to remove them.
Suggested packages:
apparmor
The following NEW packages will be installed:
mosquitto
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/143 kB of archives.
After this operation, 318 kB of additional disk space will be used.
Selecting previously unselected package mosquitto.
(Reading database ... 49969 files and directories currently installed.)
Preparing to unpack .../mosquitto_1.5.7-1+deb10u1_armhf.deb ...
Unpacking mosquitto (1.5.7-1+deb10u1) ...
Setting up mosquitto (1.5.7-1+deb10u1) ...
Job for mosquitto.service failed because the control process exited with error code.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "start" failed.
β mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2020-11-22 19:56:49 CET; 32ms ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 5617 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE)
Main PID: 5617 (code=exited, status=1/FAILURE)
dpkg: error processing package mosquitto (--configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u4+rpi1) ...
Errors were encountered while processing:
mosquitto
Updating FireMotD available updates count ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo service mosquitto status shows this:
sudo service mosquitto status
β 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 Sun 2020-11-22 19:56:52 CET; 7min ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 5808 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=
Main PID: 5808 (code=exited, status=1/FAILURE)
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Service RestartSec=100ms expired, scheduling
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at
Nov 22 19:56:52 openhab systemd[1]: Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Start request repeated too quickly.
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Nov 22 19:56:52 openhab systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
mosquitto -v shows this:
mosquitto -v
1606071881: mosquitto version 1.5.7 starting
1606071881: Using default config.
1606071881: Opening ipv4 listen socket on port 1883.
1606071881: Error: Address already in use
More details from installation:
systemctl status mosquitto.service
β 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 Sun 2020-11-22 19:56:52 CET; 9min ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 5808 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=
Main PID: 5808 (code=exited, status=1/FAILURE)
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Service RestartSec=100ms expired, scheduling
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at
Nov 22 19:56:52 openhab systemd[1]: Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Start request repeated too quickly.
Nov 22 19:56:52 openhab systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Nov 22 19:56:52 openhab systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.