Failing to bootstrap at all on raring
Tim Penhey
tim.penhey at canonical.com
Fri Apr 19 03:40:05 UTC 2013
Hi all,
I tried to bootstrap the 1.9.14 install from the ppa, but got
$ juju bootstrap -v
2013/04/19 11:36:40 INFO environs/ec2: opening environment "amazon"
2013/04/19 11:36:40 INFO environs/ec2: bootstrapping environment "amazon"
2013/04/19 11:36:46 INFO environs: searching for tools compatible with
version: 1.9.14-precise-amd64
2013/04/19 11:36:53 ERROR command failed: cannot find tools: use of
closed network connection
error: cannot find tools: use of closed network connection
So I tried tip of trunk. I got exactly the same error.
I've been tracing the problem back through the stack (wouldn't it be
nice if errors had a stacktrace?) manually using magic logging (ok not
at all magic).
Perhaps someone who has more go http mojo can figure this out:
Private bucket doesn't exist, so starts looking in the public bucket:
2013/04/19 14:46:14 INFO s3:List: tools/juju-
2013/04/19 14:46:14 INFO s3: attempt 1 trying to do the listing.
2013/04/19 14:46:14 INFO Running S3 request: &s3.request{method:"GET",
bucket:"juju-dist", path:"/juju-dist/", signpath:"/juju-dist/",
params:url.Values{"prefix":[]string{"tools/juju-"},
"delimiter":[]string{""}, "marker":[]string{""}},
headers:http.Header{"Authorization":[]string{"AWS
AKIAJV2XRGV7PX4H4I4A:H/f/44NQCYw7rB4DBckjZM/19/E="},
"Host":[]string{"s3.amazonaws.com"}, "Date":[]string{"Fri, 19 Apr 2013
02:46:14 UTC"}}, baseurl:"https://s3.amazonaws.com",
payload:io.Reader(nil), prepared:true}
2013/04/19 14:46:14 INFO Just prior to http.DefaultClient.Do:
http.Request{Method:"GET", URL:(*url.URL)(0xf84022d0e0), Proto:"",
ProtoMajor:1, ProtoMinor:1,
Header:http.Header{"Authorization":[]string{"AWS
AKIAJV2XRGV7PX4H4I4A:H/f/44NQCYw7rB4DBckjZM/19/E="},
"Host":[]string{"s3.amazonaws.com"}, "Date":[]string{"Fri, 19 Apr 2013
02:46:14 UTC"}}, Body:io.ReadCloser(nil), ContentLength:0,
TransferEncoding:[]string(nil), Close:true, Host:"",
Form:url.Values(nil), MultipartForm:(*multipart.Form)(nil),
Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"",
TLS:(*tls.ConnectionState)(nil)}
Here is the response
2013/04/19 14:46:15 INFO Response: &http.Response{Status:"200 OK",
StatusCode:200, Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1,
Header:http.Header{"X-Amz-Id-2":[]string{"IoGWjr3uBrqQmG7fbkCIKPCPB/5w8c9W4hvNl5XgcaRJaIJVGCnogzlIrkpIdZoz"},
"X-Amz-Request-Id":[]string{"44DC68C36A2178CF"},
"Server":[]string{"AmazonS3"}, "Date":[]string{"Fri, 19 Apr 2013
02:46:20 GMT"}, "Content-Type":[]string{"application/xml"}},
Body:(*http.bodyEOFSignal)(0xf8402adaa0), ContentLength:-1,
TransferEncoding:[]string{"chunked"}, Close:false,
Trailer:http.Header(nil), Request:(*http.Request)(0xf8403b1480)}
The line with the error is in goamz/s3.go,
run function, (can't give you line numbers as I've scattered logging)
if resp != nil {
err = xml.NewDecoder(hresp.Body).Decode(resp) <-- this line
clog.Infof("xml.NewDecoder error: %#v", err)
hresp.Body.Close()
}
clog.Infof("Last error: %#v", err)
return hresp, err
}
2013/04/19 14:46:15 INFO xml.NewDecoder error:
&errors.errorString{s:"use of closed network connection"}
I've hit the end of my understanding.
Tim
More information about the Juju-dev
mailing list