# CLI device os update error

**URL:** <https://forums.balena.io/t/cli-device-os-update-error/273580>\
**Category:** balenaOS\
**Created:** [March 16, 2021, 9:43am UTC](https://forums.balena.io/t/cli-device-os-update-error/273580 "2021-03-16T09:43:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [March 16, 2021, 9:43am UTC](https://forums.balena.io/t/cli-device-os-update-error/273580/1 "2021-03-16T09:43:21Z")

</div>

Not sure if this is a problem with balenaos, the cli, openbalena, or my machine but I’m getting a `Cannot read property 'some' of undefined` error when trying to update a device os.  
I’m stumped - any ideas?

```
balena device os-update d7688fa --debug
[debug] new argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,device:os-update,d7688fa] length=4
? Target OS version 2.71.5+rev1.dev (recommended)
? Host OS updates require a device restart when they complete. Are you sure you want to proceed? Yes
Cannot read property 'some' of undefined

TypeError: Cannot read property 'some' of undefined
    at Object.startOsUpdate (/usr/local/lib/balena-cli/node_modules/balena-sdk/es2018/models/device.js:2769:29)
    at process._tickCallback (internal/process/next_tick.js:68:7)

For further help or support, visit:
https://www.balena.io/docs/reference/balena-cli/#support-faq-and-troubleshooting
```

---

<div class="post-metadata">

**Author:** ![srlowe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/srlowe/32/2638_2.png) [@srlowe](https://forums.balena.io/u/srlowe)\
**Post date:** [March 16, 2021, 11:33am UTC](https://forums.balena.io/t/cli-device-os-update-error/273580/4 "2021-03-16T11:33:29Z")

</div>

Hello, Which version of the CLI are you using?

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [March 16, 2021, 12:01pm UTC](https://forums.balena.io/t/cli-device-os-update-error/273580/5 "2021-03-16T12:01:01Z")

</div>

12.40.0

---

<div class="post-metadata">

**Author:** ![srlowe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/srlowe/32/2638_2.png) [@srlowe](https://forums.balena.io/u/srlowe)\
**Post date:** [March 16, 2021, 12:56pm UTC](https://forums.balena.io/t/cli-device-os-update-error/273580/6 "2021-03-16T12:56:55Z")

</div>

Ah, I’ve just realised that you are using openBalena. Unfortunately the `balena device os-update` is only supported by balenaCloud, and not by openBalena. Here is another forum post which explains how you can did this in your situation:

> [@Roadmap for BalenaOS Updates in OpenBalena](https://forums.balena.io/t/roadmap-for-balenaos-updates-in-openbalena/4537/10):
>
> @KyrosMatt, @KingRial, sorry for the delay - a previous reply to this thread failed to be synced here because of an issue with our support software. We are working to make host OS upgrades easier on openBalena. Meanwhile, the following example shows how to upgrade the host OS and the supervisor by running some commands on the host OS itself. For example, assuming a Raspberry Pi 3 running balenaOS version v2.26.0 that should be upgraded to version v2.29.0, the first command to run (on a host OS…

---

<div class="post-metadata">

**Author:** ![barryjump](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@barryjump](https://forums.balena.io/u/barryjump)\
**Post date:** [March 16, 2021, 3:24pm UTC](https://forums.balena.io/t/cli-device-os-update-error/273580/8 "2021-03-16T15:24:07Z")

</div>

Ah, bummer. I’ll look into the link you sent thanks.
