Thursday, October 7, 2010

ec2-download-bundle issues

I’m trying to download a bundle I recently uploaded to the S3 bucket I created, but am getting some fun/interesting errors from $EC2_HOME/lib/ec2/commons/curl.rb:

Curl without verbose enabled:
./download-bundle.sh (this is a simple script I created to make sure variables are set and such)
Downloading manifest osol-2009.6.manifest.xml from srepetsk to /mnt/downloaded/osol-2009.6.manifest.xml ...
Failed to download "osol-2009.6.manifest.xml": Curl.Error(77): error setting certificate verify locations:
CAfile: /etc/curl/curlCA
CApath: none.
ERROR: Failed to download "osol-2009.6.manifest.xml": Curl.Error(77): error setting certificate verify locations:
CAfile: /etc/curl/curlCA
CApath: none.
Curl with verbose enabled:
./download-bundle.sh
Downloading manifest osol-2009.6.manifest.xml from srepetsk to /mnt/downloaded/osol-2009.6.manifest.xml ...
Failed to download "osol-2009.6.manifest.xml": undefined method `<<' for nil:NilClass
ERROR: Failed to download "osol-2009.6.manifest.xml": undefined method `<<' for nil:NilClass
Trying to download the bundle to an OpenSolaris 2009.06 64-bit instance created not long ago. Has anybody else had experience with this kind of thing? I’m passing ec2-download-bundle what I think are all the options it needs:
ec2-download-bundle -b $MANIFEST_PATH -a $EC2_KEYID -s $EC2_KEY -k $PRIVKEY  -p $MANIFEST_PREFIX -d /mnt/downloaded
The thing I’m most unsure about is whether the –k parmaeter is correct, since that’s what it seems to be complaining about the most. The CA file (which the *.pem file should accomplish) that it’s looking for should be passed in from the –k parameter I’d think, but I’m wondering if this is a bug in the ec2 commands? or if I’m just doing something wrong. I’m still trying a couple things, but this has got me puzzled at the moment.