-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.deb downloaded from snapshots might be broken or incomplete #154
Comments
in #153 we added check by content-length... but apparently we have been installing a fixed outdated version for the datalad-installer!!! Filed datalad/datalad#7380 |
yarikoptic
added a commit
to yarikoptic/datalad
that referenced
this issue
May 1, 2023
Although snapshots might be more "official" and thus more "reliably present" than our own server, snapshots. has all kinds of throttling settings which delay download or even cause it to fail: datalad/datalad-installer#154 although datalad-installer should retry now (after it gets upgraded within appveyor setup see datalad#7380) if size changes, I think it would still be more robust to just get it from our server. I also made a note in datalad/datalad-installer#160 so may be we gain possibility to specify multiple URLs thus to robustify. === Do not change lines below === { "chain": [], "cmd": "sed -i -e s,http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/,https://datasets.datalad.org/datalad/packages/neurodebian/,g .appveyor.yml", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [ ".appveyor.yml" ], "pwd": "." } ^^^ Do not change lines above ^^^
yarikoptic
added a commit
to yarikoptic/datalad
that referenced
this issue
May 1, 2023
Although snapshots might be more "official" and thus more "reliably present" than our own server, snapshots. has all kinds of throttling settings which delay download or even cause it to fail: datalad/datalad-installer#154 although datalad-installer should retry now (after it gets upgraded within appveyor setup see datalad#7380) if size changes, I think it would still be more robust to just get it from our server. I also made a note in datalad/datalad-installer#160 so may be we gain possibility to specify multiple URLs thus to robustify. === Do not change lines below === { "chain": [], "cmd": "sed -i -e s,http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/,https://datasets.datalad.org/datalad/packages/neurodebian/,g .appveyor.yml", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [ ".appveyor.yml" ], "pwd": "." } ^^^ Do not change lines above ^^^
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recent build on appveyor (invocation is defined as
git-annex -m deb-url --url http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb
) ubuntu has failed withso there were no download error, but obtained .deb was not good.
I checked -- it happened before a few times this year
well -- snapshots.debian.org has various throttling etc policies in place, so I wonder if may be it somehow at times manages to just drop the connection? then we must catch that and report I guess. Or what else could it be?
I thought for us to add validation of retrieved .deb and retry if we find it a bad download based on etag, but could not figure out what it corresponds to:
etag: "c0fc68-5cb5a4359b140"
``` ❯ wget -S http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb URL transformed to HTTPS due to an HSTS policy --2023-04-20 15:47:07-- https://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb Resolving snapshot.debian.org (snapshot.debian.org)... 185.17.185.185, 193.62.202.27, 2001:1af8:4020:b030:deb::185, ... Connecting to snapshot.debian.org (snapshot.debian.org)|185.17.185.185|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 200 OK date: Thu, 20 Apr 2023 19:47:08 GMT server: Apache x-content-type-options: nosniff x-frame-options: sameorigin referrer-policy: no-referrer x-xss-protection: 1 permissions-policy: interest-cohort=() last-modified: Mon, 06 Sep 2021 21:23:41 GMT etag: "c0fc68-5cb5a4359b140" accept-ranges: bytes content-length: 12647528 x-clacks-overhead: GNU Terry Pratchett cache-control: max-age=31536000, public x-varnish: 133040245 age: 0 via: 1.1 varnish (Varnish/6.5) strict-transport-security: max-age=15768000; preload connection: close Length: 12647528 (12M) Saving to: ‘git-annex_8.20210903-1_amd64.deb’git-annex_8.20210903-1_amd64.deb 100%[=========================================================================================================================================================>] 12.06M 4.58MB/s in 2.6s
2023-04-20 15:47:11 (4.58 MB/s) - ‘git-annex_8.20210903-1_amd64.deb’ saved [12647528/12647528]
The text was updated successfully, but these errors were encountered: