When I installed mosquitto on an rPi I get these setup errors:
Setting up mosquitto (2.0.12-0mosquitto1~buster1) ...
Job for mosquitto.service failed because a timeout was exceeded.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "start" failed.
● mosquitto.service - Mosquitto MQTT Broker daemon
Loaded: loaded (/etc/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: timeout) since Sun 2021-12-19 13:41:03 MST; 54ms ago
Process: 1274 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf -d (code=exited, status=0/SUCCESS)
dpkg: error processing package mosquitto (--configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
mosquitto
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I then run mosquitto -v in terminal, I get: mosquitto 2.0.12 running on local machine only, and I see a publishing process running on the same machine.
How can I fix the installation script errors so that mosquitto will start as a service and accept connections from a publisher running on another mcahine on the same network? Thanks for any help?