# Issues with Raspberry Pi 3

**URL:** <https://hub.mender.io/t/issues-with-raspberry-pi-3/532>\
**Category:** General Discussions\
**Created:** [April 30, 2019, 1:52pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532 "2019-04-30T13:52:37Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 15, 2019, 1:59pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/61 "2019-05-15T13:59:44Z")

</div>

Hello @MarekBelisko @mirzak @drewmoseley, i want to do set a static ip to my raspberryn in which file can i do it ?

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [May 16, 2019, 8:12am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/62 "2019-05-16T08:12:01Z")

</div>

> [@MissLee](#):
>
> ## 1-enp.network : it contains =\>
> 
> [Match]  
> Name=enp\*
> 
> [Network]  
> DHCP=v4
> 
> [DHCPv4]
> 
> UseHostname=false

Use something like that:

```auto
[Match]
Name=eth0
[Network]
# static IP
# 192.168.100.2 netmask 255.255.255.0
Address=192.168.100.2/24
Gateway=192.168.100.1
DNS=192.168.100.1

```

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 16, 2019, 2:06pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/63 "2019-05-16T14:06:22Z")

</div>

Thank you @MarekBelisko. I tried this configuration but nothings seems to be changed before anf after a reboot , i checked this by runing ifconfig -a

Otherwise i would like to know how to synchronize the clock because the system clock isn’t synchronized, i checked by runing timedatectl status.

Thank you

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [May 16, 2019, 2:08pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/64 "2019-05-16T14:08:27Z")

</div>

What do you mean nothing was changed? By means of IP address assigned? Above configuration should work (maybe try to update `Name=enp*` in my example). Just noted it now that in original one was used this one.

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 16, 2019, 2:14pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/65 "2019-05-16T14:14:10Z")

</div>

This is what i wrote on enp.network

```auto
[Match]
Name=eth0
[Network]
# static IP
# 192.168.100.2 netmask 255.255.255.0
Address=192.168.100.2/24
Gateway=192.168.100.1
DNS=192.168.100.1

```

Instead i run : ip add add 192.168.100.2/24 dev eth0

This command changes my ip adress

Otherwise have you an idea about how to synchronize the clock ?

Thank you

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [May 16, 2019, 2:22pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/66 "2019-05-16T14:22:38Z")

</div>

> [@MissLee](#):
>
> Name=eth0

try to update to:

```auto
Name=enp*

```

and see if it works. For time synchronization there should be present systemd service (or ntpdate). But if you are not connected to internet then it will not work.

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 16, 2019, 2:29pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/67 "2019-05-16T14:29:10Z")

</div>

Ok @MarekBelisko

When i run `systemctll status mender`it returns Autorization request to mender Docker failed, it means that i can’t connect to mender server which is the case because i can’t see my device pending on the UI.  
I am confused because Mender server is local on my host and i can ping to the ip address of my host and [s3.docker.mender.io](http://s3.docker.mender.io) and [docker.mender.io](http://docker.mender.io) do have the same ip address as my host.

What do you think this isuue is due to ?

Thank you

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [May 16, 2019, 2:30pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/68 "2019-05-16T14:30:45Z")

</div>

Probably because wrong time on RPI as certification verification need precise and actual time on platform.

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 16, 2019, 2:31pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/69 "2019-05-16T14:31:22Z")

</div>

SO i should be connected to internet to synchronize ?

---

<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:** [May 16, 2019, 2:38pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/70 "2019-05-16T14:38:49Z")

</div>

Yes. Correct time is required for certificate processing. See [https://docs.mender.io/2.0/troubleshooting/mender-client#certificate-expired-or-not-yet-valid](https://docs.mender.io/2.0/troubleshooting/mender-client#certificate-expired-or-not-yet-valid) for more details.

Also, regarding network configuration with the enp.network file as discussed above, that assumes you are using systemd-networkd for network management. This is the default if you use the meta-mender-demo layer but it may be different in your system depending on configuration. The following commands should confirm if you are running this configuration and have time syncing configured through systemd:

> ```
> # systemctl status systemd-networkd
> # systemctl status systemd-timesyncd
> # timedatectl
> 
> ```

Other packages that can replace systemd-networkd are connman and NetworkManager (and likely others that I’m unware of. To determine if either of these are running:

> ```
> # systemctl status connman
> # systemctl status NetworkManager
> 
> ```

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 16, 2019, 2:55pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/71 "2019-05-16T14:55:38Z")

</div>

Thank you @drewmoseley, i will try this commands.

My question is : is it ok to use the command ip addr add x.x.x./y dev eth0 to configure an ethernet ip adress ?

and how the raspberry is supposed to do the pull in for an update ? is there any commad to enable the pull in ?

THank you

---

<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:** [May 16, 2019, 10:55pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/72 "2019-05-16T22:55:35Z")

</div>

I think using the ‘ip addr’ command will work just fine but systemd may take control back and try to set it up based on how you have the enp.network file configured. Maybe doing “systemctl stop systemd-networkd” will work around that but I’ve not tested it.

The Mender client is setup to run as a daemon and periodically checks the server for updates so you don’t need to do anything to trigger on the client side. Once a deployment is created in the Web UI then it will happen on the next device poll.

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 17, 2019, 8:58am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/73 "2019-05-17T08:58:22Z")

</div>

Hello @drewmoseley  
systemctl status systemd-networkd # systemctl status systemd-timesyncd # systemctl status connman # status NetworkManager return =\> Unit service could not be found.

timedatectl returns date but not the right local time,  
Also returns system clock synchronized : yes  
NTP service: active  
RTC in local TZ: no

---

<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:** [May 17, 2019, 1:44pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/74 "2019-05-17T13:44:00Z")

</div>

Those systemctl status commands should all be run separately to determine your configuration.

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 17, 2019, 1:45pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/75 "2019-05-17T13:45:27Z")

</div>

Exactly i run them separately and they return the same thing

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 17, 2019, 1:45pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/76 "2019-05-17T13:45:56Z")

</div>

which means these services are not found

---

<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:** [May 17, 2019, 3:14pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/77 "2019-05-17T15:14:33Z")

</div>

Yeah, that’s not surprising. I assume your system is using systemd-networkd unless you have explicitly changed it.

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 20, 2019, 1:27pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/78 "2019-05-20T13:27:02Z")

</div>

Ok thanks @drewmoseley i will check that. I would like to know which ports are used in the raspberry to communicate with the server ( send and receive ) ?

Thank you

---

<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:** [May 20, 2019, 6:36pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/79 "2019-05-20T18:36:44Z")

</div>

Details are here: [https://docs.mender.io/2.0/getting-started/deploy-to-physical-devices#network-connectivity](https://docs.mender.io/2.0/getting-started/deploy-to-physical-devices#network-connectivity)  
There are no open ports required on the client.

---

<div class="post-metadata">

**Author:** ![MissLee](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@MissLee](https://hub.mender.io/u/MissLee)\
**Post date:** [May 21, 2019, 2:24pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-3/532/80 "2019-05-21T14:24:50Z")

</div>

Thanks @drewmoseley. Do you have an idea about this command in the trouble shooting section:  
echo | openssl s\_client -connect [mender.example.com:443](http://mender.example.com:443) 2\>/dev/null | openssl x509 -noout -dates

Is the s\_client my raspberry pi 3 and [mender.example.com](http://mender.example.com) the id of my mender user ?

Thanks

[Previous page](https://hub.mender.io/t/issues-with-raspberry-pi-3/532.md?page=3)

[Next page](https://hub.mender.io/t/issues-with-raspberry-pi-3/532.md?page=5)
