# Newbie Help with Mosquito Install

**URL:** <https://forum.cedalo.com/t/newbie-help-with-mosquito-install/1083>\
**Category:** Deployment\
**Created:** [January 6, 2025, 9:21pm UTC](https://forum.cedalo.com/t/newbie-help-with-mosquito-install/1083 "2025-01-06T21:21:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://forum.cedalo.com/u/fogmajor)\
**Post date:** [January 6, 2025, 9:21pm UTC](https://forum.cedalo.com/t/newbie-help-with-mosquito-install/1083/1 "2025-01-06T21:21:20Z")

</div>

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

 ![Screenshot from 2025-01-05 15-35-14](https://canada1.discourse-cdn.com/flex030/uploads/streamsheets/original/1X/12cc5377fdf8934d608a1fe8dcfeb96a11f17b8a.png)

---

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [January 7, 2025, 9:00am UTC](https://forum.cedalo.com/t/newbie-help-with-mosquito-install/1083/2 "2025-01-07T09:00:44Z")

</div>

Hello fogmajor,

Great to have you. There can be multiple reasons for this.  
Check this thread, where a lot has already been discussed.

> <https://github.com/eclipse-mosquitto/mosquitto/issues/1603>
>
> 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?

---

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://forum.cedalo.com/u/fogmajor)\
**Post date:** [January 9, 2025, 10:22pm UTC](https://forum.cedalo.com/t/newbie-help-with-mosquito-install/1083/3 "2025-01-09T22:22:05Z")

</div>

Thank you
