This is an example of a failed download using imgadm import. To my mind,
imgadm should simply exit when it decides to abort the download and
avoid needlessly ploughing on with checksums which are obviously going
to fail.
imgadm import 7459f182-31af-11e5-b23a-eb0fd8799c77
Importing 7459f182-31af-11e5-b23a-eb0fd8799c77 (freebsd-10@20150724)
from "https://images.joyent.com"
Gather image 7459f182-31af-11e5-b23a-eb0fd8799c77 ancestry
Must download and install 1 image (603.4 MiB)
Download 1 image [ ] 0%
5.38MB 30.16KB/s 5h38m
Aborting (multiple (3) errors
error (DownloadError): image 7459f182-31af-11e5-b23a-eb0fd8799c77
file size error: expected 632741378 bytes, downloaded 5636096 bytes
error (DownloadError): image 7459f182-31af-11e5-b23a-eb0fd8799c77
file checksum (sha1) error: expected
"e9c18a03e6f6bcd976815fe0928871fd4aa6b1f3", downloaded checksum was
"ae29daa66daca7f31a7d51191c8537533a4880de"
error (DownloadError): image 7459f182-31af-11e5-b23a-eb0fd8799c77
file Content-MD5 error: expected "M/aSaWd6x6CbBk7lrSQIRw==", downloaded
checksum was "bBI7oeZo3fuMJS1Yyqcf1g==")
imgadm import: error (MultiError): multiple (3) errors
error (DownloadError): image 7459f182-31af-11e5-b23a-eb0fd8799c77
file size error: expected 632741378 bytes, downloaded 5636096 bytes
error (DownloadError): image 7459f182-31af-11e5-b23a-eb0fd8799c77
file checksum (sha1) error: expected
"e9c18a03e6f6bcd976815fe0928871fd4aa6b1f3", downloaded checksum was
"ae29daa66daca7f31a7d51191c8537533a4880de"
error (DownloadError): image 7459f182-31af-11e5-b23a-eb0fd8799c77
file Content-MD5 error: expected "M/aSaWd6x6CbBk7lrSQIRw==", downloaded
checksum was "bBI7oeZo3fuMJS1Yyqcf1g=="
Granted, this is a result of my sometimes less than stellar broadband
connection, but imgadm should really deal with this in a cleaner fashion
(IMHO).
A "nice to have" feature here would be the ability to continue a failed
download.
Alternatively, is there a means of deriving the URL(s) for the
components of a given image and downloading manually, e.g. via 'curl -C'
to handle download failures?
--
Paul Sture
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com