# Failed to start mosquitto.service: Unit mosquitto.service not found

**URL:** <https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725>\
**Category:** NXP i.MX8M Plus\
**Created:** [September 20, 2023, 5:24am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725 "2023-09-20T05:24:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@manoj](https://community.solid-run.com/u/manoj)\
**Post date:** [September 20, 2023, 5:24am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725/1 "2023-09-20T05:24:30Z")

</div>

Hi,

Working with the Imx8m Plus board, I’m attempting to use MQTT. However, if I run “sudo systemctl start mosquitto,” I get the following error message and can’t access the mosquitto.conf file in the /etc folder.

Mosquito.service was unable to start because it could not be found.

I’ve seen that the mosquitto has been included in the **sources/meta-openembedded/meta-networking/recipes-connectivity** path.

Please let me know if there is anything I’m missing.

Regards  
Manoj

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [September 20, 2023, 5:35am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725/2 "2023-09-20T05:35:50Z")

</div>

you need to add the package to your local.conf so it will be build and included in the image.

`IMAGE_INSTALL_append = " <package>"`

---

<div class="post-metadata">

**Author:** ![manoj](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@manoj](https://community.solid-run.com/u/manoj)\
**Post date:** [September 21, 2023, 4:32am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725/3 "2023-09-21T04:32:31Z")

</div>

Hi jnettlet,

After adding the package mosquitto in local.conf file is now enabled. Thank you for your reply.  
Regards  
Manoj.

---

<div class="post-metadata">

**Author:** ![manoj](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@manoj](https://community.solid-run.com/u/manoj)\
**Post date:** [September 26, 2023, 7:31am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725/4 "2023-09-26T07:31:09Z")

</div>

Hi jnettlet,

After starting the Solidrun board to test the mosquitto, I am unable to view the mosquitto\_sub and mosquitto\_pub in the list.  
Please refer to the image that is given below and let me know what else I need to accomplish.

 ![mosquitto](https://europe1.discourse-cdn.com/flex005/uploads/solid_run/original/1X/b3e152515b51cde09d564d79adaccac0aad38bd5.png)

Regards  
Manoj

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [September 26, 2023, 7:52am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725/5 "2023-09-26T07:52:39Z")

</div>

from the logs it appears that there is already a mosquitto daemon or some other service using port 1883 on your device.

---

<div class="post-metadata">

**Author:** ![manoj](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@manoj](https://community.solid-run.com/u/manoj)\
**Post date:** [September 26, 2023, 8:38am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725/6 "2023-09-26T08:38:41Z")

</div>

```
    I want publish the data using the mosquitto_pub command. However, I am unable to use it as it is not available on the command line.
    So, for that we need to install mosquitto-client in our Solidrun board. If I execute the pip3 install mosquitto-clients it gives an error like below.

```

 ![pip_install](https://europe1.discourse-cdn.com/flex005/uploads/solid_run/original/1X/9ee0325a9c1add1abd6d4534beb4bda6c80ec054.png)

Please guide me on this.

Regards  
Manoj

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [September 26, 2023, 8:46am UTC](https://community.solid-run.com/t/failed-to-start-mosquitto-service-unit-mosquitto-service-not-found/725/7 "2023-09-26T08:46:16Z")

</div>

most likely there is not a package that is compatible with the python version on aarch64. I would recommend you include the package directly in your yocto build recipe.
