# How to Configure and Connect to Cumulocity IoT in Rasbery Pi?

**URL:** <https://community.cumulocity.com/t/how-to-configure-and-connect-to-cumulocity-iot-in-rasbery-pi/1528>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [July 4, 2023, 4:52am UTC](https://community.cumulocity.com/t/how-to-configure-and-connect-to-cumulocity-iot-in-rasbery-pi/1528 "2023-07-04T04:52:33Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![Reuben\_Miller2](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/reuben_miller2/32/317_2.png) [@Reuben\_Miller2](https://community.cumulocity.com/u/Reuben_Miller2)\
**Post date:** [July 7, 2023, 11:13am UTC](https://community.cumulocity.com/t/how-to-configure-and-connect-to-cumulocity-iot-in-rasbery-pi/1528/39 "2023-07-07T11:13:13Z")

</div>

If you installed [thin-edge.io](http://thin-edge.io) using the install script (as detailed in the getting started instructions), then it would have installed the `mosquitto` Debian package which runs the mosquitto broker as a service under the service manager (systemd, part of the operating systemd).

From your previous screenshot showing the mosquitto log output, it showed that you were starting `mosquitto` manually and not using the system service, because the screenshot showed you were calling `mosquitto` from the command line…this is not correct.

Also, you can’t have two mosquitto brokers running either as this can cause problem.

So I would try the following:

1. Stop your manually started mosquitto broker

2. Start the mosquitto service using:

3. Installing additional mosquitto clients (this installs the `mosquitto_sub` and `mosquitto_pub` cli commands)

4. Try publishing to the broker (just to check that the broker is running)…the message could be anything, but you shouldn’t see any errors when running the command.

5. Then try to reconnect the [thin-edge.io](http://thin-edge.io) mapper.

If this still does not work, then you need to provide some more information about your setup, as all systems are not the same, so without knowing more specifics then it is a bit difficult to assist.

- What hardware are you using (Raspberry Pi 3/4 ?)
- What operating system version are you using: `cat /etc/os*`
- What system architecture are you using: `uname -a`
- What version of [thin-edge.io](http://thin-edge.io) are you using: `tedge --version`

Though I suspect if you still feel out of depth, then maybe a more hands on meeting would be appropriate, however this would depend on support contracts etc.

---

_[View the full topic](https://community.cumulocity.com/t/how-to-configure-and-connect-to-cumulocity-iot-in-rasbery-pi/1528)._
