# Broker does not start

**URL:** <https://forum.cedalo.com/t/broker-does-not-start/736>\
**Category:** Errors\
**Created:** [February 10, 2023, 9:40am UTC](https://forum.cedalo.com/t/broker-does-not-start/736 "2023-02-10T09:40:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@DeWoAlliSeged7](https://forum.cedalo.com/u/DeWoAlliSeged7)\
**Post date:** [February 10, 2023, 9:40am UTC](https://forum.cedalo.com/t/broker-does-not-start/736/1 "2023-02-10T09:40:30Z")

</div>

The Broker on my raspberry Pi does not start, i get the message:

● mosquitto.service - Mosquitto MQTT Broker  
Loaded: loaded (/etc/systemd/system/mosquitto.service; enabled; vendor preset: enabled)  
Active: activating (auto-restart) (Result: exit-code) since Fri 2023-02-10 09:23:35 GMT; 2s ago  
Docs: man:mosquitto(8)  
Process: 1371 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE)  
Main PID: 1371 (code=exited, status=1/FAILURE)  
CPU: 58ms

what can i do ?

---

<div class="post-metadata">

**Author:** ![roger.light](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@roger.light](https://forum.cedalo.com/u/roger.light)\
**Post date:** [February 10, 2023, 2:36pm UTC](https://forum.cedalo.com/t/broker-does-not-start/736/2 "2023-02-10T14:36:02Z")

</div>

Hi,

It’s a bit difficult to say anything from that, unfortunately. Could you try running `sudo /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf` - that should show you some error messages to help see the cause.

Cheers,

Roger

---

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@DeWoAlliSeged7](https://forum.cedalo.com/u/DeWoAlliSeged7)\
**Post date:** [February 10, 2023, 2:52pm UTC](https://forum.cedalo.com/t/broker-does-not-start/736/3 "2023-02-10T14:52:18Z")

</div>

Hi Roger  
I get this:

1676040702: Error: Unable to write pid file.

But i changed in the mosquitto.conf file the line

```auto
pid_file /run/mosquitto/mosquitto.pid

```

to

```auto
pid_file /var/run/mosquitto/mosquitto.pid

```

and it is working again 🙂

thx for finding the problem 💗

Cheers,

Simon
