The download is failing.  imgadm should really abort when the download
fails, instead of ploughing on and trying to checksum files which
it already knows are incomplete.

P.S. I have been seeing this problem myself but put it down to an
unreliable internet connection at my end. If others are seeing this too,
maybe there are reliability problems at the server end (either server
or networking).

On 10 Aug 2015, at 10:25, Sriram Narayanan wrote:

[root@00-0c-29-fd-02-b1 /usbkey/inventory]# imgadm import
5c7d0d24-3475-11e5-8e67-27953a8b237e
Importing 5c7d0d24-3475-11e5-8e67-27953a8b237e ([email protected]) from "
https://images.joyent.com";
Gather image 5c7d0d24-3475-11e5-8e67-27953a8b237e ancestry
Must download and install 1 image (127.2 MiB)
Download 1 image
[===>                                                   ]   7%
    4Download 1 image         [============>                          ]
34%
   86MB  36.70KB/s 38m47s
Aborting (multiple (3) errors
  error (DownloadError): image 5c7d0d24-3475-11e5-8e67-27953a8b237e
file
size error: expected 133452167 bytes, downloaded 45989888 bytes
  error (DownloadError): image 5c7d0d24-3475-11e5-8e67-27953a8b237e
file
 checksum (sha1) error: expected
"8ffe25d6fa2998f192a63b8e9183b2fb53525955",
downloaded checksum was "744e86960b8b689901e8e383a6347cfc16d41aba"
  error (DownloadError): image 5c7d0d24-3475-11e5-8e67-27953a8b237e
file
 Content-MD5 error: expected "w5siPWvJ57TrNwNF4y6E6Q==", downloaded
checksum
was "leA1AR+/++yGvqh245C4rw==")
imgadm import: error (MultiError): multiple (3) errors
  error (DownloadError): image 5c7d0d24-3475-11e5-8e67-27953a8b237e
file
size error: expected 133452167 bytes, downloaded 45989888 bytes
  error (DownloadError): image 5c7d0d24-3475-11e5-8e67-27953a8b237e
file
 checksum (sha1) error: expected
"8ffe25d6fa2998f192a63b8e9183b2fb53525955",
downloaded checksum was "744e86960b8b689901e8e383a6347cfc16d41aba"
  error (DownloadError): image 5c7d0d24-3475-11e5-8e67-27953a8b237e
file
 Content-MD5 error: expected "w5siPWvJ57TrNwNF4y6E6Q==", downloaded
checksum
was "leA1AR+/++yGvqh245C4rw=="
[root@00-0c-29-fd-02-b1 /usbkey/inventory]# imgadm import
24648664-e50c-11e4-be23-0349d0a5f3cf
 Importing 24648664-e50c-11e4-be23-0349d0a5f3cf ([email protected])
from "
https://images.joyent.com";
Gather image 24648664-e50c-11e4-be23-0349d0a5f3cf ancestry
Must download and install 1 image (122.6 MiB)
  Download 1 image         [=======>                               ]
21%
   97MB  50.98KB/s 32m 1s
Aborting (multiple (3) errors
  error (DownloadError): image 24648664-e50c-11e4-be23-0349d0a5f3cf
file
size error: expected 128593428 bytes, downloaded 28278784 bytes
  error (DownloadError): image 24648664-e50c-11e4-be23-0349d0a5f3cf
file
 checksum (sha1) error: expected
"8c1d230913537b6232dad3f3c9926b6b99791c8c",
downloaded checksum was "2c7f12b09d1c4032d53a1e9c48c2b978defbd81a"
  error (DownloadError): image 24648664-e50c-11e4-be23-0349d0a5f3cf
file
 Content-MD5 error: expected "KFh0Hz4Y4cumWRGO/2YhQg==", downloaded
checksum
was "4RO4EwG9WzstXfhKzQOKAw==")
imgadm import: error (MultiError): multiple (3) errors
  error (DownloadError): image 24648664-e50c-11e4-be23-0349d0a5f3cf
file
size error: expected 128593428 bytes, downloaded 28278784 bytes
  error (DownloadError): image 24648664-e50c-11e4-be23-0349d0a5f3cf
file
 checksum (sha1) error: expected
"8c1d230913537b6232dad3f3c9926b6b99791c8c",
downloaded checksum was "2c7f12b09d1c4032d53a1e9c48c2b978defbd81a"
  error (DownloadError): image 24648664-e50c-11e4-be23-0349d0a5f3cf
file
 Content-MD5 error: expected "KFh0Hz4Y4cumWRGO/2YhQg==", downloaded
checksum
was "4RO4EwG9WzstXfhKzQOKAw=="

/var/db/imgadm is empty

uname -a says "SunOS 00-0c-29-fd-02-b1 5.11 joyent_20150806T063417Z
i86pc
i386 i86pc"

-- Ram



--
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

Reply via email to