Download failure 416

Sergio pointed me to the following download failure:

Download snap "core" (2465) from channel "candidate" (received an unexpected http response code (416) when trying to download  

from https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful/artful/i386/s/snapd/20170810_154443_613bd@/log.gz

I have not digged into this but I think we need to handle 416 with a simple retry.

416 means “range not satisfiable”, which seems pretty curious. The local file would have to get corrupted and extended beyond the normal length, or we have a bug in our range selection code (@sergiusens is your storage okay? :slight_smile:).

Retrying sounds good, but we probably need to skip the local partial file that was the cause for the range request.

I think this was @cachio and not me :wink:

1 Like

Ah, @cachio has been reporting lots of issues with his SD cards… wonder if that’s related?

This error happened running autopkgtests, this is the log https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful/artful/i386/s/snapd/20170810_154443_613bd@/log.gz

I found the error when I was reviewing the automatic tests for SRU Validation 2.26.10

Ah, I’d noticed this for the 2.27 autopkgtests. I’ve retried 3 times and gotten the same message each time:

It’s only happened for i386 so is it possible that there is something broken about the i386 core snap or the cdn’s handling of it?

That said I can download https://api.snapcraft.io/api/v1/snaps/download/99T7MUlRhtI3U0QFgl5mXXESAiSwt776_2465.snap just fine from my machine (and from people.canonical.com) so… who knows.

I think we fixed this last week, between zyga and myself. We would previously not check the size of the partial and would ask for a download even though we’d already gotten the thing, and the server would 416.

Not sure whether this is before or after that though.

2 Likes