# Failed to download image ... due to '(HTTP code 404) no such image

**URL:** <https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539>\
**Category:** Product support\
**Created:** [January 30, 2020, 5:45pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539 "2020-01-30T17:45:24Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![brant](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@brant](https://forums.balena.io/u/brant)\
**Post date:** [January 30, 2020, 5:45pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/1 "2020-01-30T17:45:24Z")

</div>

I’m having difficulty updating my devices after using git to push and update. The logs indicate successful build and it shows on dashboard.

30.01.20 10:32:20 (-0700) Downloading delta for image ‘[registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688@sha256:debd28ba3e1b3064848a8bd083ef30194e609489013ac6efeafc84d8a99af471](http://registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688@sha256:debd28ba3e1b3064848a8bd083ef30194e609489013ac6efeafc84d8a99af471)’  
30.01.20 10:32:23 (-0700) Failed to download image ‘[registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688@sha256:debd28ba3e1b3064848a8bd083ef30194e609489013ac6efeafc84d8a99af471](http://registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688@sha256:debd28ba3e1b3064848a8bd083ef30194e609489013ac6efeafc84d8a99af471)’ due to '(HTTP code 404) no such image - no such image: [registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688:delta-7171996827ff5648:](http://registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688:delta-7171996827ff5648:) No such image: [registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688:delta-7171996827ff5648](http://registry2.balena-cloud.com/v2/c017620d7c60f306893defdd7c717688:delta-7171996827ff5648) ’

At first I thought just patience was in order, but after several hours, the devices still get the same error when trying to update. Any thoughts on how to resolve?

Thanks!

---

<div class="post-metadata">

**Author:** ![Ereski](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Ereski](https://forums.balena.io/u/Ereski)\
**Post date:** [January 30, 2020, 6:01pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/2 "2020-01-30T18:01:19Z")

</div>

Hi. Could you enable support access and send us the device UUID?

---

<div class="post-metadata">

**Author:** ![brant](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@brant](https://forums.balena.io/u/brant)\
**Post date:** [January 30, 2020, 6:09pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/3 "2020-01-30T18:09:11Z")

</div>

Sure thing. Support access enabled on device: c43fa96533ef2bc4b9a4579154924986

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [January 30, 2020, 8:30pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/5 "2020-01-30T20:30:46Z")

</div>

Hi Brant, sorry for the delay.  
I have just looked at your device. Looking through our knowledge base there seem to be cases when this is caused by the software deployment process rather than by the device. In this case pushing a new release often solves the problem. Have you tried pushing a new - basically unchanged - release of your application ?  
Cheers Thomas

---

<div class="post-metadata">

**Author:** ![brant](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@brant](https://forums.balena.io/u/brant)\
**Post date:** [January 30, 2020, 10:06pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/6 "2020-01-30T22:06:45Z")

</div>

Yes, when I first had the issue, I waited 1/2 hr then pushed another update. So that we are currently 2 updates behind. Should I simply push a 3rd to see what happens?

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [January 30, 2020, 10:16pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/7 "2020-01-30T22:16:16Z")

</div>

You could try that but I think I will have to take another look at the device what else I can see from logs. Would you please re-enable support access for me?

---

<div class="post-metadata">

**Author:** ![brant](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@brant](https://forums.balena.io/u/brant)\
**Post date:** [January 30, 2020, 10:20pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/8 "2020-01-30T22:20:33Z")

</div>

I most certainly can, enabled for 6hrs this time. I am testing 2 devices with this app and they are experiencing the same issue. So I suspect that build image might not be getting published. The other device is 65d055319cfd7b0d2b067f578a52996c, also with support access enabled. Thanks again.

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [January 30, 2020, 11:02pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/13 "2020-01-30T23:02:31Z")

</div>

I have just learnt that this might be connected to a known but yet unresolved issue.  
As a fix you could try disabling delta updates on the affected devices. You will possibly have to reboot them after doing so.

---

<div class="post-metadata">

**Author:** ![brant](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@brant](https://forums.balena.io/u/brant)\
**Post date:** [January 30, 2020, 11:05pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/14 "2020-01-30T23:05:46Z")

</div>

Understood, disabled and rebooting both devices!

---

<div class="post-metadata">

**Author:** ![brant](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@brant](https://forums.balena.io/u/brant)\
**Post date:** [January 30, 2020, 11:11pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/15 "2020-01-30T23:11:11Z")

</div>

That was it. Disabling deltas fixed the update problem.

It did transition into a surprising permission error on my entrypoint.sh script through that’s preventing the container from starting. But I should be able to make progress again!

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [January 30, 2020, 11:16pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/16 "2020-01-30T23:16:49Z")

</div>

Sorry for the inconvenience. This issue is currently being investigated, we will keep you informed about any progress.

---

<div class="post-metadata">

**Author:** ![sankyo.toshio](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sankyo.toshio](https://forums.balena.io/u/sankyo.toshio)\
**Post date:** [February 7, 2020, 3:22am UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/19 "2020-02-07T03:22:34Z")

</div>

@samothx  
We are having the same problem on my Balena application.  
We tried to deploy a new image, but we can’t solve.

Is this a specific application problem? or our image problem?  
We have another application which the same image is deployed, but we didn’t have problem on that application.  
So, I think this caused by Balena application.

Please give me a help.

---

<div class="post-metadata">

**Author:** ![dfunckt](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dfunckt/32/56_2.png) [@dfunckt](https://forums.balena.io/u/dfunckt)\
**Post date:** [February 7, 2020, 7:48am UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/20 "2020-02-07T07:48:58Z")

</div>

Did you try disabling deltas as mentioned above? What balenaOS version and for what device is this?

---

<div class="post-metadata">

**Author:** ![sankyo.toshio](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sankyo.toshio](https://forums.balena.io/u/sankyo.toshio)\
**Post date:** [February 7, 2020, 11:38am UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/22 "2020-02-07T11:38:20Z")

</div>

@dfunckt  
Thank you for answer.  
Our host OS version is balenaOS 2.38.0+rev1.  
I’ll try to make delta updates disabled.

---

<div class="post-metadata">

**Author:** ![exposedwiring](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@exposedwiring](https://forums.balena.io/u/exposedwiring)\
**Post date:** [August 16, 2020, 4:42pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/26 "2020-08-16T16:42:59Z")

</div>

Hello, I am having the same problem as that originally described. Can balenaCloud please take a look at what the problem might be? My application ID is `1665575` and device UUID is `ca908a241e00dd55a9620b29d1205e4c` with this setup: Host OS version: balenaOS 2.38.0+rev1 (production), Supervisor version 9.15.7. I have granted support access. Device type is QEMU run with more or less defaults suggested by Balena:

`qemu-system-x86_64 -drive file=balena-cloud-app.img,media=disk,cache=none,format=raw -net nic,model=virtio -net user -m 512 -nographic -machine type=pc,accel=kvm -smp 2 -cpu host`

The device is hardwired to fibre Internet, and had no problem downloading the first image after the factory build. Every subsequent build release shows download to about 50% of the image and then restarts the download with the same error. What can I do to understand this problem? Enabling or disabling delta updates does not appear to help.

```auto
16.08.20 18:31:31 (+0200) Downloading image 'registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0'
16.08.20 18:32:12 (+0200) Failed to download image 'registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0' due to '(HTTP code 404) no such image - no such image: registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0: No such image: registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0 '
16.08.20 18:32:16 (+0200) Downloading image 'registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0'
16.08.20 18:33:14 (+0200) Failed to download image 'registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0' due to '(HTTP code 404) no such image - no such image: registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0: No such image: registry2.balena-cloud.com/v2/b05730ffe715cddd74aac6df393d99d6@sha256:def4b20fa5e219d0bbd0c7ef9bc8280349be67f4baf25ac6f474163c60ff25d0 '

```

---

<div class="post-metadata">

**Author:** ![exposedwiring](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@exposedwiring](https://forums.balena.io/u/exposedwiring)\
**Post date:** [August 17, 2020, 6:46pm UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/27 "2020-08-17T18:46:38Z")

</div>

Using details from another post [image fails to download 404 no such image](https://forums.balena.io/t/image-fails-to-download-404-no-such-image/61609/46) the problem is now apparent. It would be great if the log messages made this more apparent, but at least I understand the problem now.

```nohighlight
Aug 17 18:42:33 ca908a2 balenad[624]: time="2020-08-17T18:42:33.332271658Z" level=info 
msg="Attempting next endpoint for pull after error: failed to register layer: Error processing tar file(exit status 1): 
write /usr/lib/python3.6/html/entities.py: no space left on device"

```

Using `qemu-img` as detailed in [Fresh Resin OS 2.14.3+rev1 fails to install container](https://forums.balena.io/t/fresh-resin-os-2-14-3-rev1-fails-to-install-container/3777/13) I’ve resized the base image to a more usable size.

---

<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:** [August 18, 2020, 7:55am UTC](https://forums.balena.io/t/failed-to-download-image-due-to-http-code-404-no-such-image/60539/28 "2020-08-18T07:55:20Z")

</div>

Hi @exposedwiring, happy to hear you’ve found some useful resources in our Forums.  
Please let us know if you need any further assistance.

Georgia
