Failed to download image (HTTP code 500) server error TLS handshake timeout


#1

Hello, I know that there have been a number of prior threads on this topic, but I’m quite sure that I’ve identified what seems to be needless errors when trying to download delta updates. In my application (7581) , the device (18ac377) tries for hours in the retry loop shown below, however if I delete the device and start again with a factory build, then the full download completes without error. The device’s Internet connection is reliable enough for this to be not an issue because I can reproduce this behaviour with the first commit after the factory build. I have other devices on the same network and Internet connection that do not exhibit this behaviour.

It’s not quite clear how the “(HTTP code 500) server error” translates to a “TLS handshake timeout” unless there’s some intermediate proxy in the supervisor layer plumbing. If there is a timeout at work, how does this timeout differ when a full download is being done? I’ve checked on the device again (now doing a full download) and it is progressing without error now (albeit slowly) having changed nothing else.

I’ve granted support request in case you’d like to perform more specific inspection of the device (18ac377, Resin OS 2.12.7+rev1, supervisor: 7.4.3).

Thanks in advance!

15.07.18 17:00:16 (+0200) Downloading delta for image 'registry2.resin.io/v2/5732977cea56db3b1a0423ff90d7bd90@sha256:5ad47d1cebd0e5f7dc36e60e3c75a836532d9919cb039e58d6ac1dd9b6b42050'
15.07.18 17:05:12 (+0200) Failed to download image 'registry2.resin.io/v2/5732977cea56db3b1a0423ff90d7bd90@sha256:5ad47d1cebd0e5f7dc36e60e3c75a836532d9919cb039e58d6ac1dd9b6b42050' due to '(HTTP code 500) server error - Get https://registry2.resin.io/v2/: net/http: TLS handshake timeout '
15.07.18 17:08:36 (+0200) Downloading delta for image 'registry2.resin.io/v2/5732977cea56db3b1a0423ff90d7bd90@sha256:5ad47d1cebd0e5f7dc36e60e3c75a836532d9919cb039e58d6ac1dd9b6b42050'
15.07.18 17:13:43 (+0200) Failed to download image 'registry2.resin.io/v2/5732977cea56db3b1a0423ff90d7bd90@sha256:5ad47d1cebd0e5f7dc36e60e3c75a836532d9919cb039e58d6ac1dd9b6b42050' due to '(HTTP code 500) server error - Get https://registry2.resin.io/v2/: net/http: TLS handshake timeout '

#4

Just an update here. The device has pulled a few additional updates without this problem. I’ll keep this thread updated if I see more of this. Feel free to resolve.