|
Discussion Forums
|
Thread: ec2-upload-bundle failed: HTTP put failed: curl returned response code 77
 |
This question is answered.
|
|
|
|
Replies:
7
-
Pages:
1
-
Last Post:
Nov 23, 2008 5:58 AM
by: Allen
|
|
|
Posts:
19
Registered:
7/16/07
|
|
|
|
ec2-upload-bundle failed: HTTP put failed: curl returned response code 77
Posted:
Aug 10, 2007 5:58 PM PDT
|
|
|
I encountered the following error while trying to upload a bundle from within an ec2 instance:
----------------- START ------------------------------------
> ec2-upload-bundle -b remobo_seed_bundle_070810 -m /mnt/elephants.bundle/ec2bundle.manifest.xml -a xxxxxxxxx -s yyyyyyyyyyyyyyyyy
Uploading bundled AMI parts to
https://s3.amazonaws.com:443/remobo_seed_bundle_070810 ...
Error: failed to upload "/mnt/elephants.bundle/ec2bundle.part.00", HTTP put failed: curl returned response code 77
ec2-upload-bundle failed
----------------- END ------------------------------------
The ec2bundle is built from within the same ec2 instance via the following ec2-bundle-vol command:
----------------- START ------------------------------------
> mkdir /mnt/elephants.bundle
> ec2-bundle-vol -c /root/aws_keys/cert-xxxxxxx.pem -k /root/aws_keys/pk-yyyyyyy.pem -u nnnn-nnnn-nnnn -s 1024 -d /mnt/elephants.bundle -p ec2bundle -e /dev/pts,/dev/shm,/dev/.static,/media,/mnt,/opt/remobo/log,/proc,/tmp
Copying / into the image file /mnt/elephants.bundle/ec2bundle...
Excluding:
/proc
/dev/pts
/dev
/media
/mnt
/proc
/sys
/dev/pts
/dev/shm
/dev/.static
/media
/mnt
/opt/remobo/log
/proc
/tmp
/mnt/elephants.bundle/ec2bundle
/mnt/img-mnt
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.003966 seconds, 264 MB/s
mke2fs 1.40-WIP (14-Nov-2006)
warning: 256 blocks unused.
Bundling image file...
Splitting /mnt/elephants.bundle/ec2bundle.tar.gz.enc...
Created ec2bundle.part.00
Created ec2bundle.part.01
Created ec2bundle.part.02
Created ec2bundle.part.03
Created ec2bundle.part.04
Created ec2bundle.part.05
Created ec2bundle.part.06
Created ec2bundle.part.07
Created ec2bundle.part.08
Created ec2bundle.part.09
Created ec2bundle.part.10
Created ec2bundle.part.11
Created ec2bundle.part.12
Created ec2bundle.part.13
Generating digests for each part...
Digests generated.
Creating bundle manifest...
ec2-bundle-vol complete.
----------------- END ------------------------------------
Any idea why the ec2-upload-bundle command failed and how to fix it ? Thanks,
--- Jon
|
|
Posts:
106
Registered:
3/12/07
|
|
|
|
Re: ec2-upload-bundle failed: HTTP put failed: curl returned response code
Posted:
Aug 13, 2007 12:05 PM PDT
in response to: Jeffrey Chang
|
 |
Correct |
|
|
Hi Jon,
My version of curl doesn't have a response code 77 in its documentation, but I searched and found that this was added later for problems reading or accessing the SSL CA certificate. You should run "man curl" to read the documentation for your version of curl. The error codes are listed at the end.
If this is the problem, you could use the ec2-upload-bundle --url option and specify
http://s3.amazonaws.com. I assume the SSL CA cert would no longer be necessary if you don't use SSL.
Regards,
TD
|
|
Posts:
1
Registered:
11/5/07
|
|
|
|
Re: ec2-upload-bundle failed: HTTP put failed: curl returned response code
Posted:
Nov 5, 2007 1:17 PM PST
in response to: Townsend Duong
|
|
|
I also encountered this Curl error code and the suggested solution works for me, use:
ec2-upload-bundle --url
http://s3.amazonaws.com
|
|
Posts:
278
Registered:
6/22/06
|
|
|
|
Re: ec2-upload-bundle failed: HTTP put failed: curl returned response code
Posted:
Nov 5, 2007 1:37 PM PST
in response to: Jeffrey Chang
|
|
|
Hi John,
According to the curl documentation:
CURLE_SSL_CACERT_BADFILE (77)
Problem with reading the SSL CA cert (path? access rights?)
This generally indicates badly configured or missing certificate authority information for your curl installation. Until you get a chance to fix this, you can work around it by specifying "--url
http://s3.amazonaws.com" as an option to ec2-upload-bundle. This will use the non https access point to S3.
Regards,
Ben
|
|
Posts:
36
Registered:
4/22/07
|
|
|
|
Re: ec2-upload-bundle failed: HTTP put failed: curl returned response code 77
Posted:
Nov 6, 2007 3:28 PM PST
in response to: Jeffrey Chang
|
|
|
I got the same error today but I was using rightscale. I just deleted what got moved to s3 and did another bundle. I think rightscale had a little net hickup.
|
|
Posts:
1
Registered:
11/21/07
|
|
|
|
Re: ec2-upload-bundle failed: HTTP put failed: curl returned response code
Posted:
Nov 21, 2007 9:59 AM PST
in response to: C. Oliver
|
|
|
Had the same problem. The solution was to apt-get install ca-certificates. But don't know on which distro you are working.
|
|
Posts:
1
Registered:
6/4/08
|
|
|
|
Re: ec2-upload-bundle failed: HTTP put failed: curl returned response code 77
Posted:
Nov 23, 2008 12:36 AM PST
in response to: Jeffrey Chang
|
|
|
I'm having the same problem and got around it with the --url option. One question, though: doesn't this expose my Secret Access Key to the Internet?
|
|
Posts:
5,320
Registered:
3/19/07
|
|
|
|
Re: ec2-upload-bundle failed: HTTP put failed: curl returned response code 77
Posted:
Nov 23, 2008 5:58 AM PST
in response to: Lilcompanion
|
|
|
no, it doesn't
|
|
|
|