# Systemctl start mender not working

**URL:** <https://hub.mender.io/t/systemctl-start-mender-not-working/2095>\
**Category:** General Discussions\
**Tags:** raspberry-pi-3, rpi\
**Created:** [June 23, 2020, 1:56pm UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095 "2020-06-23T13:56:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/arun/32/1209_2.png) [@arun](https://hub.mender.io/u/arun)\
**Post date:** [June 23, 2020, 1:56pm UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/1 "2020-06-23T13:56:07Z")

</div>

Hi,  
actually i am tring to start mender client in my raspbian buster image which running in rpi.i am not able to connect to mender server i will attack my snapshot for reference  
 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/10b03e916f32c83c967ba3e6952e10a4500c8e09.png)

best regards  
arun

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [June 23, 2020, 2:29pm UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/2 "2020-06-23T14:29:49Z")

</div>

is the mender service file actually installed/enabled on your device?

sudo systemctl enable mender.service  
sudo systemctl start mender.service

if it still fails, then maybe take a look in /lib/systemd/system or other systemd service file directories to see if the service file is installed on the device

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 23, 2020, 2:31pm UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/3 "2020-06-23T14:31:08Z")

</div>

We did do a name change at some point and on recent releases it is called `mender-client.service`, so it could be that.

---

<div class="post-metadata">

**Author:** ![arun](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/arun/32/1209_2.png) [@arun](https://hub.mender.io/u/arun)\
**Post date:** [June 24, 2020, 2:49am UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/4 "2020-06-24T02:49:41Z")

</div>

Thanks @mirzak  
Mender client is started ,but my device is going in pending state,but i already make a entery for this device in Preauthorized state.

 ![paimg](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/17df35ddd4f57cd95febd3be62ac6e24165bf2b1.png)

br  
arun

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 24, 2020, 6:51am UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/5 "2020-06-24T06:51:16Z")

</div>

I would double check the device identity and public key that they are what you are expect as this is the information that is used to map physical devices to preauthorized devices.

---

<div class="post-metadata">

**Author:** ![arun](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/arun/32/1209_2.png) [@arun](https://hub.mender.io/u/arun)\
**Post date:** [June 24, 2020, 10:12am UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/7 "2020-06-24T10:12:18Z")

</div>

i check the device identity,but how should i set the public key .  
path or reference  
br  
Arun

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 24, 2020, 6:04pm UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/8 "2020-06-24T18:04:20Z")

</div>

It is in the client root filesystem as /data/mender/mender-agent.pem. If it does not exist when the Mender client starts, it will be created.  
Drew

---

<div class="post-metadata">

**Author:** ![arun](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/arun/32/1209_2.png) [@arun](https://hub.mender.io/u/arun)\
**Post date:** [July 16, 2020, 10:08am UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/9 "2020-07-16T10:08:16Z")

</div>

HI Drew ,

i changed the public key & the device identity as (echo “Deviceid =raspberry”) .  
Snapshot of preauthorize is attached but when i am restarting the mender-client the device is neither reflected in pending nor accepted .  
i also check the client logs ,but didn’t find any thing

 ![pb](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/348021ed6e564842a506544ff40ff61528a40050.png)

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [July 20, 2020, 6:24pm UTC](https://hub.mender.io/t/systemctl-start-mender-not-working/2095/10 "2020-07-20T18:24:26Z")

</div>

Hi @arun it’s hard to say with the info provided. Can you provide the client logs?  
Drew
