I have installed mosquito broker on my Ubuntu machine and now have an error, I thought the install had gone well.I have attached a screenshot and wondered if anyone could point me in the right direction, sorry to be vague.
Thank you
Regards
Andrew
Tizian
January 7, 2025, 9:00am
2
Hello fogmajor,
Great to have you. There can be multiple reasons for this.
Check this thread, where a lot has already been discussed.
opened 07:01PM - 18 Feb 20 UTC
Status: Blocked
hi, installed with the apt-get install method.
Can't autostart so I ran `sudo s… ystemctl start mosquitto.service` and then `sudo systemctl status mosquitto.service` and this is the output:
Loaded: loaded (/etc/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-02-18 18:54:47 WET; 4s ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 1949 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE)
Main PID: 1949 (code=exited, status=1/FAILURE)
Feb 18 18:54:47 raspberrypi systemd[1]: mosquitto.service: Service RestartSec=100ms expired, scheduling restart.
Feb 18 18:54:47 raspberrypi systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5.
Feb 18 18:54:47 raspberrypi systemd[1]: Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Feb 18 18:54:47 raspberrypi systemd[1]: mosquitto.service: Start request repeated too quickly.
Feb 18 18:54:47 raspberrypi systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Feb 18 18:54:47 raspberrypi systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
so i executed `/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf` and it outputed:
1582051833: mosquitto version 1.5.7 starting
1582051833: Config loaded from /etc/mosquitto/mosquitto.conf.
1582051833: Error: Unable to open pwfile "/etc/mosquitto/passwd ".
1582051833: Error opening password file "/etc/mosquitto/passwd ".
it seems to be a permissions problem, tried some things but can't get it to work. Can anybody help pls?
Does this help?