Failed to download image raspberrypi3

raspberrypi3

#1

I have an application with 7 devices. All devices are raspberrypi3. Only one of the devices is having an issue downloading a new image after pushing an update. Logs below.

Thanks for any help in advance!

Failed to download image 'registry2.resin.io/v2/207efc88587b42c2229946409301ba1f@sha256:2ba89fcdf6b0531736517df9ca91422c424f1dde0e69a35b4f2a83d32b63e4f4' due to '(HTTP code 500) server error - Get https://registry2.resin.io/v2/: dial tcp: lookup registry2.resin.io on 127.0.0.2:53: server misbehaving '
Failed to download image 'registry2.resin.io/v2/207efc88587b42c2229946409301ba1f@sha256:2ba89fcdf6b0531736517df9ca91422c424f1dde0e69a35b4f2a83d32b63e4f4' due to '(HTTP code 500) server error - Get https://registry2.resin.io/v2/: net/http: TLS handshake timeout '
Failed to download image 'registry2.resin.io/v2/207efc88587b42c2229946409301ba1f@sha256:2ba89fcdf6b0531736517df9ca91422c424f1dde0e69a35b4f2a83d32b63e4f4' due to '(HTTP code 500) server error - Get https://registry2.resin.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) '

#4

Hi, that seems like a genuine network issue. Are all 7 devices on the same network? Or this one is not sharing a network with another?


#5

To see whether it’s a network issue or not, you can connect to the host OS, for example, and ping Google’s DNS service.

ping -c 120 8.8.8.8

This will run the ping for 2 minutes (120 pings, 1 per second). After it finishes it will show some ping statistics. Something like:

....
64 bytes from 8.8.8.8: icmp_seq=118 ttl=57 time=19.3 ms
64 bytes from 8.8.8.8: icmp_seq=119 ttl=57 time=20.4 ms
64 bytes from 8.8.8.8: icmp_seq=120 ttl=57 time=28.8 ms

--- 8.8.8.8 ping statistics ---
120 packets transmitted, 116 received, 3% packet loss, time 119226ms
rtt min/avg/max/mdev = 17.579/23.893/66.455/5.899 ms

The interesting part here is the % packet loss. If there’s some loss, that’s not an issue (for me this 3% doesn’t stop the network working), but if it’s quite lossy (say 5-10% and above), then the network communication won’t work properly and you would see something like this download problems…


#6

All of the 7 devices are on different networks. Unfortunately the device with this issue is not on my network so I am unable to ping the device. When the device was online and failing to download image, I tried to reboot and it never came back online. I will have the device user cycle power to the RPi3 then try pinging if it comes back online.


#7

After cycling power on the RPi3 it reconnected to wifi but dropped out intermittently and continued to fail to download the image. I connected the RPi ethernet directly to the router and it downloaded the image successfully. What wifi settings could be causing the network to lose connection? It is directly under the router so it had a strong signal.