# Device doesn't update after installing a factory build

**URL:** <https://forums.balena.io/t/device-doesnt-update-after-installing-a-factory-build/351265>\
**Category:** Product support\
**Created:** [February 3, 2022, 8:58am UTC](https://forums.balena.io/t/device-doesnt-update-after-installing-a-factory-build/351265 "2022-02-03T08:58:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobyhijzen](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tobyhijzen/32/2342_2.png) [@tobyhijzen](https://forums.balena.io/u/tobyhijzen)\
**Post date:** [February 3, 2022, 8:58am UTC](https://forums.balena.io/t/device-doesnt-update-after-installing-a-factory-build/351265/1 "2022-02-03T08:58:15Z")

</div>

We are running into issues updating our new devices. The installation works correctly but contains an older version (in which one of the services constantly crash and reboot due to a hardware change). A newer version fixes this but we don’t seem to be able to update the devices. We get the following errors:

```auto
Failed to download image 'registry2.balena-cloud.com/v2/7a1c542e3da943c5143441dea8f7c790@sha256:ad2f7a063e71b4e9ba3881751502f3d76c84dae0fa94e2e8121fd76348edc546' due to 'Got 500 when requesting v3 delta from delta 
server.'

```

All our new devices are no longer able to be pinned to any release rendering them unusable.

Some other possibly related erros I have seen are:

- Failed to install service due to ‘Cannot read property ‘appId’ of undefined’
- We also previously had a lot of errors where it would say ‘Delta still processing’ and that would usually take hours to resolve.

We are running [balenaOS 2.83.18+rev1](https://github.com/balena-os/meta-balena/blob/master/CHANGELOG.md) with supervisor [  
12.10.3  
 ](https://github.com/balena-io/balena-supervisor/blob/master/CHANGELOG.md#v12103)

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [May 19, 2022, 8:00pm UTC](https://forums.balena.io/t/device-doesnt-update-after-installing-a-factory-build/351265/2 "2022-05-19T20:00:49Z")

</div>

This could be due to corrupted `/var/lib/docker` on the device, among other things. Some things to check would be to tail balenad logs (`journalctl -u balena -f`) as well as supervisor logs (`balena logs -f balena_supervisor`). These may offer hint as to what’s going on. The nuclear option is to delete `/var/lib/docker` and restart balena-engine, which would cause the device the re-download/re-install all images based on the target state. A less invasive option is to move the device to an empty fleet (no releases) and then move it back to the original fleet.

---

<div class="post-metadata">

**Author:** ![tobyhijzen](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tobyhijzen/32/2342_2.png) [@tobyhijzen](https://forums.balena.io/u/tobyhijzen)\
**Post date:** [May 20, 2022, 5:31am UTC](https://forums.balena.io/t/device-doesnt-update-after-installing-a-factory-build/351265/4 "2022-05-20T05:31:10Z")

</div>

Thanks, we will try this. We’ve been working arround this problem for a while now. We were also having problems with devices being stuck on ‘processing Delta image’ for a long time. Could deleting `/var/lib/docker` also solve this by forcing a complete redownload of all the images?
