# Failed to download image registry2

**URL:** <https://forums.balena.io/t/failed-to-download-image-registry2/3734>\
**Category:** Product support\
**Created:** [August 14, 2018, 4:10pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734 "2018-08-14T16:10:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 14, 2018, 4:10pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/1 "2018-08-14T16:10:40Z")

</div>

I’m trying to run the [Get started with Raspberry Pi 3 and Node.js](https://docs.resin.io/learn/getting-started/raspberrypi3/nodejs/) example app. I’ve tried both a Pi 2 and a Pi 3 B+. I’ve also tried using both wifi and just a network connection. Same error every time. Tried pinging Google and got no lost packets. Also tried running the [commands in this post](https://forums.balena.io/t/failed-to-download-image-in-microservices-app/2865). It didn’t help.

I get this error:

> Failed to download image [registry2.resin.io/v2/xxxxxxx](http://registry2.resin.io/v2/xxxxxxx) due to failed to register layer: mkdir /var/lib/docker/aufs/mnt/xxxxxx read-only file system

Any ideas what might be going on?

Thanks

---

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 14, 2018, 5:18pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/4 "2018-08-14T17:18:32Z")

</div>

I have a second application ([built from](https://github.com/fvdbosch/ConnectedFrame)) that I created a few days ago and has one connected device. The device is getting updates when I push new releases. But when I tried to add a second NEW device it fails with the same error as before. Something has changed in the last couple of days. ???

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [August 14, 2018, 5:45pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/5 "2018-08-14T17:45:30Z")

</div>

@dreed47 could you provide me with the dashboard link for this device and enable support access please?

Most parts of the operating system are indeed read only, but the docker directory certainly shouldn’t be (otherwise we would see issues like the above).

---

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 14, 2018, 5:47pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/6 "2018-08-14T17:47:55Z")

</div>

[https://dashboard.resin.io/devices/4efad3cb4990612cc1a04153d53b8a1c/summary](https://dashboard.resin.io/devices/4efad3cb4990612cc1a04153d53b8a1c/summary)

thanks for your help

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [August 14, 2018, 5:56pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/8 "2018-08-14T17:56:54Z")

</div>

@dreed47 I accessed your device, and can confirm that the `/mnt/data` filesystem was mounted read only. I was about to check system logs but your device went offline. Could you check that it is still accessible please?

---

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 14, 2018, 5:58pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/9 "2018-08-14T17:58:15Z")

</div>

it rebooted for some reason. it should be coming back online very soon

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [August 14, 2018, 6:07pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/10 "2018-08-14T18:07:25Z")

</div>

OK, so the device rebooted, and the data directory was mounted as read-write, as it should be. The device then started to download the image, and the directory was remounted as read-only. Unfortunately `dmesg` is returning no logs, which is something I’ve personally never seen. I’ll continue to look into the device and try to keep you updated.

---

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 14, 2018, 6:08pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/11 "2018-08-14T18:08:25Z")

</div>

thank you very much!

---

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [August 14, 2018, 6:26pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/12 "2018-08-14T18:26:48Z")

</div>

@dreed47 that was possibly the most confusing device issue I’ve ever seen!

The symptoms of the system logs being missing seems to come from massive SD card corruption. The SD card corruption, and the device rebooting seem to be because of an undervoltage that was detected by the kernel (I managed to get some kernel logs just after a reboot).

I would check that the power supply you’re using can definitely supply enough power for the raspberry pi.

Please let us know if you encounter any other issues!

---

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 14, 2018, 9:28pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/13 "2018-08-14T21:28:42Z")

</div>

Thanks for digging into this for me!

I tried several more times using several different power supplies, one rated 5V .5A and a couple rated 5.4V 3A and it still gets the same error. I also tried several different SD cards to make sure that wasn’t my problem.

What other things can I try?

---

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 15, 2018, 12:32am UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/14 "2018-08-15T00:32:37Z")

</div>

I tried a different brand of SD card and it WORKED! I was using SP (Silicon Power) 32gb cards before. I tried 3 different SP cards and all failed with the same error. The one that worked was a no-name brand 8gb card.

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [August 15, 2018, 1:30pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/15 "2018-08-15T13:30:18Z")

</div>

Hi, our usual recommendation is Sandisk Extreme Pro, we never had a problem with that.

Also would recommend checking out your power supply. The `.5A` is definitely not good enough. The second one seems like the 5.4V might be a bit high, but not sure about what effect that would have.  
If possible, for example to use the official power supply, we’d recommend that (that is rated +5.1V/2.5A).

Glad you got it working in the meantime.

---

<div class="post-metadata">

**Author:** ![dreed47](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dreed47/32/1099_2.png) [@dreed47](https://forums.balena.io/u/dreed47)\
**Post date:** [August 15, 2018, 2:11pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/17 "2018-08-15T14:11:19Z")

</div>

Sorry, I meant 2.5A and not .5A … Thanks for your help!

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [August 15, 2018, 2:21pm UTC](https://forums.balena.io/t/failed-to-download-image-registry2/3734/18 "2018-08-15T14:21:46Z")

</div>

Ah, makes sense, thanks for the clarification 🙂
