# Error: Could not create NMClient object: Timeout was reached.

**URL:** <https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006>\
**Category:** Product support\
**Tags:** raspberrypizero\
**Created:** [May 28, 2020, 6:38pm UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006 "2020-05-28T18:38:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xff](https://avatars.discourse-cdn.com/v4/letter/0/5fc32e/32.png) [@0xff](https://forums.balena.io/u/0xff)\
**Post date:** [May 28, 2020, 6:38pm UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006/1 "2020-05-28T18:38:30Z")

</div>

We frequently see devices in the field where nmcli does not work:

```
root@e448591:~# nmcli c show
Error: Could not create NMClient object: Timeout was reached.

```

However, the NetworkManager service seems to be happily running:

```
root@e448591:~# systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/NetworkManager.service.d
           └─NetworkManager.conf
   Active: active (running) since Thu 2020-05-28 17:33:02 UTC; 1min 13s ago
     Docs: man:NetworkManager(8)
 Main PID: 10939 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─10939 /usr/sbin/NetworkManager --no-daemon

```

The diagnostics indicate issues with the container engine although it’s up so it seems to have recovered.

Googling does not [yield much](https://www.google.com/search?sxsrf=ALeKk00g-7AZlwSrTPmmLyS0DNKoqjR4rA%3A1590690610613&ei=MgPQXrr0JLyU0PEPlIessAg&q=++++Error%3A+Could+not+create+NMClient+object%3A+Timeout+was+reached.&oq=++++Error%3A+Could+not+create+NMClient+object%3A+Timeout+was+reached.&gs_lcp=CgZwc3ktYWIQAzIGCAAQFhAeOgQIABBHUPaxBFj2sQRg5rwEaABwA3gAgAFXiAFXkgEBMZgBAKABAqABAaoBB2d3cy13aXo&sclient=psy-ab&ved=0ahUKEwi61aummNfpAhU8CjQIHZQDC4YQ4dUDCAw&uact=5)

We see this problem somewhat often. Rebooting often solves the issue but we’re a bit gun-shy as we’ve had incidences where the device has not returned from reboots, requiring manual reset, which is an issue since our devices are remote.

[e44859117a15b0189c30c6b7c03ca604\_2020.05.28\_17.59.41+0000.log](https://forums.balena.io/uploads/short-url/jRtKOOz5drpwGoTqry9jLVSxzZG.log) (899.3 KB)

 ![Screen Shot 2020-05-28 at 11.35.29 AM](https://global.discourse-cdn.com/balena/original/2X/8/820473bb5b8e33b4af53b964674d401a4e4dffef.png)

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [May 29, 2020, 10:05am UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006/4 "2020-05-29T10:05:39Z")

</div>

Hi there, can you let us know what balenaOS version you are using? We found [https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/404](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/404), which might be related to what you are seeing, but we need to investigate further.

---

<div class="post-metadata">

**Author:** ![0xff](https://avatars.discourse-cdn.com/v4/letter/0/5fc32e/32.png) [@0xff](https://forums.balena.io/u/0xff)\
**Post date:** [May 29, 2020, 6:50pm UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006/6 "2020-05-29T18:50:33Z")

</div>

We’re running 2.48. I’m seeing the issue right now on 1e464992d4426c665b1a7c45857ecc40. I have provided support access, but I may have to reboot to avoid the system going offline completely.

It could be related to the issue you linked to. We have a script that periodically tears down the wifi and brings it back up again as a response to a problem we have seen. It may be that this process is what causes the issue. Also, our internet connection is via cellular and are not very reliable.

---

<div class="post-metadata">

**Author:** ![ntzovanis](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ntzovanis/32/1150_2.png) [@ntzovanis](https://forums.balena.io/u/ntzovanis)\
**Post date:** [May 29, 2020, 8:12pm UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006/7 "2020-05-29T20:12:25Z")

</div>

Thanks for the information! I’ll ping our OS team to see if they have any pointers.

---

<div class="post-metadata">

**Author:** ![roman-mazur](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/roman-mazur/32/2194_2.png) [@roman-mazur](https://forums.balena.io/u/roman-mazur)\
**Post date:** [June 1, 2020, 12:23pm UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006/15 "2020-06-01T12:23:48Z")

</div>

Hi,  
I’ve just checked the device and see nmcli working normally there.

We suggest editing the network manager configuration to disable connectivity check and observing the device to see if it has any effect.  
The connectivity check settings are defined in `/etc/NetworkManager/conf.d/os-networkmanager.conf`.  
Normally, it’s controlled with `config.json`:

> **[Configuration - Balena Documentation](https://www.balena.io/docs/reference/OS/configuration/#connectivity)**
>
> Instructions for editing and customizing config.json for modifying the behavior of balenaOS

  
And will be rewritten on reboot. But if you need to do an experiment without a reboot, you can edit the file directly.

Also, it’s worth checking the difference between NetworkManager/nmcli installed on the host OS and in your container. Big version differences can cause problems as well.

---

<div class="post-metadata">

**Author:** ![0xff](https://avatars.discourse-cdn.com/v4/letter/0/5fc32e/32.png) [@0xff](https://forums.balena.io/u/0xff)\
**Post date:** [June 1, 2020, 6:18pm UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006/18 "2020-06-01T18:18:32Z")

</div>

Thanks Roman,

The versions are `1.20.8` and `1.120.2` so presumably close. I’ll continue playing around to see if changing the connectivity checks affects stability. As it is now, the resident NetworkManager connectivity check is every hour.

---

<div class="post-metadata">

**Author:** ![georgiats](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/georgiats/32/2571_2.png) [@georgiats](https://forums.balena.io/u/georgiats)\
**Post date:** [June 2, 2020, 3:18pm UTC](https://forums.balena.io/t/error-could-not-create-nmclient-object-timeout-was-reached/122006/19 "2020-06-02T15:18:29Z")

</div>

Thanks for the update. Please let us know if you need any further help after you resume your tests.  
Georgia
