Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec2 create-instance-export-task -> ClientError: #610

Closed
elcollie opened this issue Jan 24, 2014 · 6 comments
Closed

ec2 create-instance-export-task -> ClientError: #610

elcollie opened this issue Jan 24, 2014 · 6 comments

Comments

@elcollie
Copy link

Hi there,

I am attempting to export a running Windows instance as a vhd to s3 using:

aws ec2 create-instance-export-task --description test-ec2-vhd --instance-id i-57656e68 --target-environment microsoft --export-to-s3-task DiskImageFormat=vhd,S3Bucket=ec2tolocal --region ap-southeast-2

But I get a "A client error (InternalError) occurred when calling the CreateInstanceExportTask operation: An internal error has occurred"

Adding the --debug I get the following output

2014-01-24 03:30:33,092 - awscli.clidriver - DEBUG - CLI version: aws-cli/1.2.11 Python/2.7.3 Linux/3.2.0-4-amd64, botocore version: 0.31.0
2014-01-24 03:30:33,093 - botocore.service - DEBUG - Creating service object for: ec2
2014-01-24 03:30:33,093 - botocore.base - DEBUG - Attempting to load: aws/ec2
2014-01-24 03:30:33,255 - botocore.base - DEBUG - Found data file: /usr/local/lib/python2.7/dist-packages/botocore/data/aws/ec2.json
2014-01-24 03:30:33,255 - botocore.hooks - DEBUG - Event service-created: calling handler <function register_retries_for_service at 0xf91500>
2014-01-24 03:30:33,256 - botocore.handlers - DEBUG - Registering retry handlers for service: Service(ec2)
2014-01-24 03:30:33,256 - botocore.service - DEBUG - Creating operation objects for: Service(ec2)
2014-01-24 03:30:33,277 - botocore.hooks - DEBUG - Event building-command-table.ec2: calling handler <functools.partial object at 0x1321050>
2014-01-24 03:30:33,277 - awscli.customizations.removals - DEBUG - Removing operation: import-instance
2014-01-24 03:30:33,277 - awscli.customizations.removals - DEBUG - Removing operation: import-volume
2014-01-24 03:30:33,278 - botocore.operation - DEBUG - Creating parameter objects for: Operation:CreateInstanceExportTask
2014-01-24 03:30:33,279 - awscli.clidriver - DEBUG - OrderedDict([(u'description', <awscli.arguments.CLIArgument object at 0x1cbec10>), (u'instance-id', <awscli.arguments.CLIArgument object at 0x1cbed50>), (u'target-environment', <awscli.arguments.CLIArgument object at 0x1cbed90>), (u'export-to-s3-task', <awscli.arguments.CLIArgument object at 0x1cbedd0>)])
2014-01-24 03:30:33,279 - botocore.hooks - DEBUG - Event building-argument-table.ec2.create-instance-export-task: calling handler <function _rename_arg at 0x131f668>
2014-01-24 03:30:33,280 - botocore.hooks - DEBUG - Event building-argument-table.ec2.create-instance-export-task: calling handler <function _rename_arg at 0x131f6e0>
2014-01-24 03:30:33,280 - botocore.hooks - DEBUG - Event building-argument-table.ec2.create-instance-export-task: calling handler <functools.partial object at 0x1321100>
2014-01-24 03:30:33,280 - botocore.hooks - DEBUG - Event building-argument-table.ec2.create-instance-export-task: calling handler <function unify_paging_params at 0x1206b90>
2014-01-24 03:30:33,282 - botocore.hooks - DEBUG - Event operation-args-parsed.ec2.create-instance-export-task: calling handler <functools.partial object at 0x1cb5520>
2014-01-24 03:30:33,282 - botocore.hooks - DEBUG - Event process-cli-arg.ec2.create-instance-export-task: calling handler <awscli.argprocess.ParamShorthand object at 0x130ffd0>
2014-01-24 03:30:33,282 - awscli.arguments - DEBUG - Unpacked value of "test-ec2-vhd" for parameter "description": test-ec2-vhd
2014-01-24 03:30:33,283 - botocore.hooks - DEBUG - Event process-cli-arg.ec2.create-instance-export-task: calling handler <awscli.argprocess.ParamShorthand object at 0x130ffd0>
2014-01-24 03:30:33,283 - awscli.arguments - DEBUG - Unpacked value of "i-57656e68" for parameter "instance_id": i-57656e68
2014-01-24 03:30:33,283 - botocore.hooks - DEBUG - Event process-cli-arg.ec2.create-instance-export-task: calling handler <awscli.argprocess.ParamShorthand object at 0x130ffd0>
2014-01-24 03:30:33,283 - awscli.arguments - DEBUG - Unpacked value of "microsoft" for parameter "target_environment": microsoft
2014-01-24 03:30:33,284 - botocore.hooks - DEBUG - Event process-cli-arg.ec2.create-instance-export-task: calling handler <awscli.argprocess.ParamShorthand object at 0x130ffd0>
2014-01-24 03:30:33,284 - awscli.argprocess - DEBUG - Using _key_value_parse for param structure:ExportToS3Task
2014-01-24 03:30:33,284 - awscli.arguments - DEBUG - Unpacked value of "DiskImageFormat=vhd,S3Bucket=ec2tolocal" for parameter "export_to_s3_task": OrderedDict([('DiskImageFormat', 'vhd'), ('S3Bucket', 'ec2tolocal')])
2014-01-24 03:30:33,285 - botocore.credentials - INFO - Found credentials in AWS_CREDENTIAL_FILE.
2014-01-24 03:30:33,285 - botocore.hooks - DEBUG - Event creating-endpoint.ec2: calling handler <function maybe_switch_to_sigv4 at 0xf91668>
2014-01-24 03:30:33,287 - botocore.operation - DEBUG - Operation:CreateInstanceExportTask called with kwargs: {u'instance_id': 'i-57656e68', u'export_to_s3_task': OrderedDict([('DiskImageFormat', 'vhd'), ('S3Bucket', 'ec2tolocal')]), u'description': 'test-ec2-vhd', u'target_environment': 'microsoft'}
2014-01-24 03:30:33,287 - botocore.endpoint - DEBUG - Making request for Operation:CreateInstanceExportTask (verify_ssl=True) with params: {u'InstanceId': u'i-57656e68', u'ExportToS3.DiskImageFormat': u'vhd', u'TargetEnvironment': u'microsoft', u'ExportToS3.S3Bucket': u'ec2tolocal', u'Description': u'test-ec2-vhd'}
2014-01-24 03:30:33,288 - botocore.auth - DEBUG - Calculating signature using v2 auth.
2014-01-24 03:30:33,288 - botocore.auth - DEBUG - String to sign: POST
ec2.ap-southeast-2.amazonaws.com
/
AWSAccessKeyId=AKIAJBE4BJBY5QVAZC6A&Action=CreateInstanceExportTask&Description=test-ec2-vhd&ExportToS3.DiskImageFormat=vhd&ExportToS3.S3Bucket=ec2tolocal&InstanceId=i-57656e68&SignatureMethod=HmacSHA256&SignatureVersion=2&TargetEnvironment=microsoft&Timestamp=2014-01-24T03%3A30%3A33.288230&Version=2013-10-15
2014-01-24 03:30:33,298 - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2014-01-24 03:30:33,298 - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): ec2.ap-southeast-2.amazonaws.com
2014-01-24 03:30:43,126 - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST / HTTP/1.1" 500 None
2014-01-24 03:30:43,127 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:30:51 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:30:43,128 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has occurredac4e6cc0-8da6-4dae-9603-c37746f27056
2014-01-24 03:30:43,129 - botocore.hooks - DEBUG - Event needs-retry.ec2.CreateInstanceExportTask: calling handler <botocore.retryhandler.RetryHandler object at 0x1ca8050>
2014-01-24 03:30:43,129 - botocore.retryhandler - DEBUG - retry needed: retryable HTTP status code received: 500
2014-01-24 03:30:43,129 - botocore.retryhandler - DEBUG - Retry needed, action of: 0.811907342834
2014-01-24 03:30:43,130 - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.811907342834 seconds
2014-01-24 03:30:43,943 - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2014-01-24 03:30:50,863 - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST / HTTP/1.1" 500 None
2014-01-24 03:30:50,865 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:30:58 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:30:50,865 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has occurredc176fb1f-a89a-46dc-b0c4-377cd0c13359
2014-01-24 03:30:50,866 - botocore.hooks - DEBUG - Event needs-retry.ec2.CreateInstanceExportTask: calling handler <botocore.retryhandler.RetryHandler object at 0x1ca8050>
2014-01-24 03:30:50,866 - botocore.retryhandler - DEBUG - retry needed: retryable HTTP status code received: 500
2014-01-24 03:30:50,866 - botocore.retryhandler - DEBUG - Retry needed, action of: 1.15947082658
2014-01-24 03:30:50,867 - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.15947082658 seconds
2014-01-24 03:30:52,028 - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2014-01-24 03:31:00,268 - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST / HTTP/1.1" 500 None
2014-01-24 03:31:00,269 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:31:07 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:31:00,269 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has occurred3182e610-e651-44d9-a39b-8735cb0dd2a0
2014-01-24 03:31:00,270 - botocore.hooks - DEBUG - Event needs-retry.ec2.CreateInstanceExportTask: calling handler <botocore.retryhandler.RetryHandler object at 0x1ca8050>
2014-01-24 03:31:00,270 - botocore.retryhandler - DEBUG - retry needed: retryable HTTP status code received: 500
2014-01-24 03:31:00,270 - botocore.retryhandler - DEBUG - Retry needed, action of: 1.12520104713
2014-01-24 03:31:00,271 - botocore.endpoint - DEBUG - Response received to retry, sleeping for 1.12520104713 seconds
2014-01-24 03:31:01,397 - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2014-01-24 03:31:09,310 - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST / HTTP/1.1" 500 None
2014-01-24 03:31:09,312 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:31:17 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:31:09,312 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has occurred47b57a6a-c412-44e1-8f9f-82439c554800
2014-01-24 03:31:09,313 - botocore.hooks - DEBUG - Event needs-retry.ec2.CreateInstanceExportTask: calling handler <botocore.retryhandler.RetryHandler object at 0x1ca8050>
2014-01-24 03:31:09,313 - botocore.retryhandler - DEBUG - retry needed: retryable HTTP status code received: 500
2014-01-24 03:31:09,314 - botocore.retryhandler - DEBUG - Retry needed, action of: 0.44613435518
2014-01-24 03:31:09,314 - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.44613435518 seconds
2014-01-24 03:31:09,761 - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2014-01-24 03:31:16,679 - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST / HTTP/1.1" 500 None
2014-01-24 03:31:16,697 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:31:24 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:31:16,698 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has occurred71b91b0c-aed1-41eb-be87-60da63b38f4c
2014-01-24 03:31:16,699 - botocore.hooks - DEBUG - Event needs-retry.ec2.CreateInstanceExportTask: calling handler <botocore.retryhandler.RetryHandler object at 0x1ca8050>
2014-01-24 03:31:16,699 - botocore.retryhandler - DEBUG - retry needed: retryable HTTP status code received: 500
2014-01-24 03:31:16,699 - botocore.retryhandler - DEBUG - Reached the maximum number of retry attempts: 5
2014-01-24 03:31:16,700 - botocore.retryhandler - DEBUG - No retry needed.
2014-01-24 03:31:16,700 - botocore.hooks - DEBUG - Event after-call.ec2.CreateInstanceExportTask: calling handler <awscli.errorhandler.ErrorHandler object at 0x131e190>
2014-01-24 03:31:16,700 - awscli.errorhandler - DEBUG - HTTP Response Code: 500
2014-01-24 03:31:16,700 - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 188, in main
return command_table[parsed_args.command](remaining, parsed_args)
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 331, in call
return command_table[parsed_args.operation](remaining, parsed_globals)
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 439, in call
self._operation_object, call_parameters, parsed_globals)
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 530, in invoke
**parameters)
File "/usr/local/lib/python2.7/dist-packages/botocore/operation.py", line 82, in call
parsed=response[1])
File "/usr/local/lib/python2.7/dist-packages/botocore/session.py", line 613, in emit
return self._events.emit(event_name, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/botocore/hooks.py", line 158, in emit
response = handler(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/awscli/errorhandler.py", line 75, in call
http_status_code=http_response.status_code)
ClientError: A client error (InternalError) occurred when calling the CreateInstanceExportTask operation: An internal error has occurred
2014-01-24 03:31:16,703 - awscli.clidriver - DEBUG - Exiting with rc 255
A client error (InternalError) occurred when calling the CreateInstanceExportTask operation: An internal error has occurred

Any help or direction would be appreciated.

Col

@garnaat
Copy link
Contributor

garnaat commented Jan 24, 2014

Was this instance previously imported into EC2?

On Thu, Jan 23, 2014 at 7:32 PM, elcollie notifications@github.com wrote:

Hi there,

I am attempting to export a running Windows instance as a vhd to s3 using:

aws ec2 create-instance-export-task --description test-ec2-vhd
--instance-id i-57656e68 --target-environment microsoft --export-to-s3-task
DiskImageFormat=vhd,S3Bucket=ec2tolocal --region ap-southeast-2

But I get a "A client error (InternalError) occurred when calling the
CreateInstanceExportTask operation: An internal error has occurred"

Adding the --debug I get the following output

2014-01-24 03:30:33,092 - awscli.clidriver - DEBUG - CLI version:
aws-cli/1.2.11 Python/2.7.3 Linux/3.2.0-4-amd64, botocore version: 0.31.0
2014-01-24 03:30:33,093 - botocore.service - DEBUG - Creating service
object for: ec2
2014-01-24 03:30:33,093 - botocore.base - DEBUG - Attempting to load:
aws/ec2
2014-01-24 03:30:33,255 - botocore.base - DEBUG - Found data file:
/usr/local/lib/python2.7/dist-packages/botocore/data/aws/ec2.json
2014-01-24 03:30:33,255 - botocore.hooks - DEBUG - Event service-created:
calling handler
2014-01-24 03:30:33,256 - botocore.handlers - DEBUG - Registering retry
handlers for service: Service(ec2)
2014-01-24 03:30:33,256 - botocore.service - DEBUG - Creating operation
objects for: Service(ec2)
2014-01-24 03:30:33,277 - botocore.hooks - DEBUG - Event
building-command-table.ec2: calling handler
2014-01-24 03:30:33,277 - awscli.customizations.removals - DEBUG -
Removing operation: import-instance
2014-01-24 03:30:33,277 - awscli.customizations.removals - DEBUG -
Removing operation: import-volume
2014-01-24 03:30:33,278 - botocore.operation - DEBUG - Creating parameter
objects for: Operation:CreateInstanceExportTask
2014-01-24 03:30:33,279 - awscli.clidriver - DEBUG -
OrderedDict([(u'description', ), (u'instance-id', ),
(u'target-environment', ), (u'export-to-s3-task', )])
2014-01-24 03:30:33,279 - botocore.hooks - DEBUG - Event
building-argument-table.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,280 - botocore.hooks - DEBUG - Event
building-argument-table.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,280 - botocore.hooks - DEBUG - Event
building-argument-table.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,280 - botocore.hooks - DEBUG - Event
building-argument-table.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,282 - botocore.hooks - DEBUG - Event
operation-args-parsed.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,282 - botocore.hooks - DEBUG - Event
process-cli-arg.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,282 - awscli.arguments - DEBUG - Unpacked value of
"test-ec2-vhd" for parameter "description": test-ec2-vhd
2014-01-24 03:30:33,283 - botocore.hooks - DEBUG - Event
process-cli-arg.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,283 - awscli.arguments - DEBUG - Unpacked value of
"i-57656e68" for parameter "instance_id": i-57656e68
2014-01-24 03:30:33,283 - botocore.hooks - DEBUG - Event
process-cli-arg.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,283 - awscli.arguments - DEBUG - Unpacked value of
"microsoft" for parameter "target_environment": microsoft
2014-01-24 03:30:33,284 - botocore.hooks - DEBUG - Event
process-cli-arg.ec2.create-instance-export-task: calling handler
2014-01-24 03:30:33,284 - awscli.argprocess - DEBUG - Using _key_value_parse
for param structure:ExportToS3Task
2014-01-24 03:30:33,284 - awscli.arguments - DEBUG - Unpacked value of
"DiskImageFormat=vhd,S3Bucket=ec2tolocal" for parameter
"export_to_s3_task": OrderedDict([('DiskImageFormat', 'vhd'), ('S3Bucket',
'ec2tolocal')])
2014-01-24 03:30:33,285 - botocore.credentials - INFO - Found credentials
in AWS_CREDENTIAL_FILE.
2014-01-24 03:30:33,285 - botocore.hooks - DEBUG - Event
creating-endpoint.ec2: calling handler
2014-01-24 03:30:33,287 - botocore.operation - DEBUG -
Operation:CreateInstanceExportTask called with kwargs: {u'instance_id':
'i-57656e68', u'export_to_s3_task': OrderedDict([('DiskImageFormat',
'vhd'), ('S3Bucket', 'ec2tolocal')]), u'description': 'test-ec2-vhd',
u'target_environment': 'microsoft'}
2014-01-24 03:30:33,287 - botocore.endpoint - DEBUG - Making request for
Operation:CreateInstanceExportTask (verify_ssl=True) with params:
{u'InstanceId': u'i-57656e68', u'ExportToS3.DiskImageFormat': u'vhd',
u'TargetEnvironment': u'microsoft', u'ExportToS3.S3Bucket': u'ec2tolocal',
u'Description': u'test-ec2-vhd'}
2014-01-24 03:30:33,288 - botocore.auth - DEBUG - Calculating signature
using v2 auth.
2014-01-24 03:30:33,288 - botocore.auth - DEBUG - String to sign: POST
ec2.ap-southeast-2.amazonaws.com
/

AWSAccessKeyId=AKIAJBE4BJBY5QVAZC6A&Action=CreateInstanceExportTask&Description=test-ec2-vhd&ExportToS3.DiskImageFormat=vhd&ExportToS3.S3Bucket=ec2tolocal&InstanceId=i-57656e68&SignatureMethod=HmacSHA256&SignatureVersion=2&TargetEnvironment=microsoft&Timestamp=2014-01-24T03%3A30%3A33.288230&Version=2013-10-15
2014-01-24 03:30:33,298 - botocore.endpoint - DEBUG - Sending http
request:
2014-01-24 03:30:33,298 -
botocore.vendored.requests.packages.urllib3.connectionpool - INFO -
Starting new HTTPS connection (1): ec2.ap-southeast-2.amazonaws.com
2014-01-24 03:30:43,126 -
botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST
/ HTTP/1.1" 500 None
2014-01-24 03:30:43,127 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:30:51 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:30:43,128 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has
occurredac4e6cc0-8da6-4dae-9603-c37746f27056
2014-01-24 03:30:43,129 - botocore.hooks - DEBUG - Event
needs-retry.ec2.CreateInstanceExportTask: calling handler
2014-01-24 03:30:43,129 - botocore.retryhandler - DEBUG - retry needed:
retryable HTTP status code received: 500
2014-01-24 03:30:43,129 - botocore.retryhandler - DEBUG - Retry needed,
action of: 0.811907342834
2014-01-24 03:30:43,130 - botocore.endpoint - DEBUG - Response received to
retry, sleeping for 0.811907342834 seconds
2014-01-24 03:30:43,943 - botocore.endpoint - DEBUG - Sending http
request:
2014-01-24 03:30:50,863 -
botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST
/ HTTP/1.1" 500 None
2014-01-24 03:30:50,865 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:30:58 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:30:50,865 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has
occurredc176fb1f-a89a-46dc-b0c4-377cd0c13359
2014-01-24 03:30:50,866 - botocore.hooks - DEBUG - Event
needs-retry.ec2.CreateInstanceExportTask: calling handler
2014-01-24 03:30:50,866 - botocore.retryhandler - DEBUG - retry needed:
retryable HTTP status code received: 500
2014-01-24 03:30:50,866 - botocore.retryhandler - DEBUG - Retry needed,
action of: 1.15947082658
2014-01-24 03:30:50,867 - botocore.endpoint - DEBUG - Response received to
retry, sleeping for 1.15947082658 seconds
2014-01-24 03:30:52,028 - botocore.endpoint - DEBUG - Sending http
request:
2014-01-24 03:31:00,268 -
botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST
/ HTTP/1.1" 500 None
2014-01-24 03:31:00,269 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:31:07 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:31:00,269 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has
occurred3182e610-e651-44d9-a39b-8735cb0dd2a0
2014-01-24 03:31:00,270 - botocore.hooks - DEBUG - Event
needs-retry.ec2.CreateInstanceExportTask: calling handler
2014-01-24 03:31:00,270 - botocore.retryhandler - DEBUG - retry needed:
retryable HTTP status code received: 500
2014-01-24 03:31:00,270 - botocore.retryhandler - DEBUG - Retry needed,
action of: 1.12520104713
2014-01-24 03:31:00,271 - botocore.endpoint - DEBUG - Response received to
retry, sleeping for 1.12520104713 seconds
2014-01-24 03:31:01,397 - botocore.endpoint - DEBUG - Sending http
request:
2014-01-24 03:31:09,310 -
botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST
/ HTTP/1.1" 500 None
2014-01-24 03:31:09,312 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:31:17 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:31:09,312 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has
occurred47b57a6a-c412-44e1-8f9f-82439c554800
2014-01-24 03:31:09,313 - botocore.hooks - DEBUG - Event
needs-retry.ec2.CreateInstanceExportTask: calling handler
2014-01-24 03:31:09,313 - botocore.retryhandler - DEBUG - retry needed:
retryable HTTP status code received: 500
2014-01-24 03:31:09,314 - botocore.retryhandler - DEBUG - Retry needed,
action of: 0.44613435518
2014-01-24 03:31:09,314 - botocore.endpoint - DEBUG - Response received to
retry, sleeping for 0.44613435518 seconds
2014-01-24 03:31:09,761 - botocore.endpoint - DEBUG - Sending http
request:
2014-01-24 03:31:16,679 -
botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST
/ HTTP/1.1" 500 None
2014-01-24 03:31:16,697 - botocore.response - DEBUG - Response Headers:
transfer-encoding: chunked
date: Fri, 24 Jan 2014 03:31:24 GMT
cneonction: close
server: AmazonEC2
2014-01-24 03:31:16,698 - botocore.response - DEBUG - Response Body:

InternalErrorAn internal error has
occurred71b91b0c-aed1-41eb-be87-60da63b38f4c
2014-01-24 03:31:16,699 - botocore.hooks - DEBUG - Event
needs-retry.ec2.CreateInstanceExportTask: calling handler
2014-01-24 03:31:16,699 - botocore.retryhandler - DEBUG - retry needed:
retryable HTTP status code received: 500
2014-01-24 03:31:16,699 - botocore.retryhandler - DEBUG - Reached the
maximum number of retry attempts: 5
2014-01-24 03:31:16,700 - botocore.retryhandler - DEBUG - No retry needed.
2014-01-24 03:31:16,700 - botocore.hooks - DEBUG - Event
after-call.ec2.CreateInstanceExportTask: calling handler
2014-01-24 03:31:16,700 - awscli.errorhandler - DEBUG - HTTP Response
Code: 500
2014-01-24 03:31:16,700 - awscli.clidriver - DEBUG - Exception caught in
main()
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line
188, in main
return command_tableparsed_args.command http://remaining,%20parsed_args
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line
331, in call
return command_tableparsed_args.operationhttp://remaining,%20parsed_globals
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line
439, in call
self._operation_object, call_parameters, parsed_globals)
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line
530, in invoke

_parameters) File
"/usr/local/lib/python2.7/dist-packages/botocore/operation.py", line 82, in
call parsed=response[1]) File
"/usr/local/lib/python2.7/dist-packages/botocore/session.py", line 613, in
emit return self.events.emit(eventname, *_kwargs) File
"/usr/local/lib/python2.7/dist-packages/botocore/hooks.py", line 158, in
emit response = handler(kwargs)
File "/usr/local/lib/python2.7/dist-packages/awscli/errorhandler.py", line
75, in *call

http_status_code=http_response.status_code)
ClientError: A client error (InternalError) occurred when calling the
CreateInstanceExportTask operation: An internal error has occurred
2014-01-24 03:31:16,703 - awscli.clidriver - DEBUG - Exiting with rc 255
A client error (InternalError) occurred when calling the
CreateInstanceExportTask operation: An internal error has occurred

Any help or direction would be appreciated.

Col


Reply to this email directly or view it on GitHubhttps://github.com//issues/610
.

@elcollie
Copy link
Author

No, it was was launched from a Microsoft Windows Server 2012 Base AMI, ami-9d3fa3a7, in Sydney.

@garnaat
Copy link
Contributor

garnaat commented Jan 24, 2014

According to the EC2 docs here this only works if the instance was previously imported into EC2.

I'm not sure if that's causing the problems here or not. I would have expected to get a 400 error response back from the service with an appropriate error message.

@elcollie
Copy link
Author

Ah, my bad. RTFM. Apologies for wasting your time.

Will you guys be porting the old EC2 API ec2-import-instance command into the AWS CLI?

@elcollie
Copy link
Author

Is ec2-import-instance or equivalent a WIP or planned? If not, is there somewhere I can submit this feature request?

@jamesls
Copy link
Member

jamesls commented Mar 14, 2014

This is certainly something we're looking at, but I can't give any specific timeline for this feature.

@jamesls jamesls closed this as completed Mar 14, 2014
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
* fix: Functional tests must run on localhost to work in Windows (aws#552)

* fix: spacing typo in Log statement in start-lambda (aws#559)

* docs: Fix syntax highlighting in README.md (aws#561)

* docs: Change jest to mocha in Nodejs init README (aws#564)

* docs: Fix @mhart link in README (aws#562)

* docs(README): removed cloudtrail, added SNS to generate-event (aws#569)

* docs: Update repo name references (aws#577)

* feat(debugging): Fixing issues around debugging Golang functions. (aws#565)

* fix(init): Improve current init samples around docs and fixes (aws#558)

* docs(README): Update launch config to SAM CLI from SAM Local (aws#587)

* docs(README): Update sample code for calling Local Lambda Invoke (aws#584)

* refactor(init): renamed handler for camel case, moved callback call up (aws#586)

* chore: aws-lambda-java-core 1.1.0 -> 1.2.0 for java sam init (aws#578)

* feat(validate): Add profile and region options (aws#582)

Currently, `sam validate` requires AWS Creds (due to the SAM Translator).
This commits adds the ability to pass in the credientials through a profile
that is configured through `aws configure`.

* docs(README): Update README prerequisites to include awscli (aws#596)

* fix(start-lambda): Remove Content-Type Header check (aws#594)

* docs: Disambiguation "Amazon Kinesis" (aws#599)

* docs: Adding instructions for how to add pyenv to your PATH for Windows (aws#600)

* docs: Update README with small grammar fix (aws#601)

* fix: Update link in NodeJS package.json (aws#603)

* docs: Creating instructions for Windows users to install sam (aws#605)

* docs: Adding a note directing Windows users to use pipenv (aws#606)

* fix: Fix stringifying λ environment variables when using Python2 (aws#579)

* feat(generate-event): Added support for 50+ events (aws#612)

* feat(invoke): Add region parameter to all invoke related commands (aws#608)

* docs: Breaking up README into separate files to make it easier to read (aws#607)

* chore: Update JVM size params to match docker-lambda (aws#615)

* feat(invoke): Invoke Function Without Parameters through --no-event (aws#604)

* docs: Update advanced_usage.rst with clarification on --env-vars usage (aws#610)

* docs: Remove an extra word in the sam packaging command (aws#618)

* UX: Improves event names to reflect Lambda Event Sources (aws#619)

* docs: Fix git clone typo in installation docs (aws#630)

* docs(README): Callout go1.x runtime support (aws#631)

* docs(installation): Update sam --version command (aws#634)

* chore(0.6.0): SAM CLI Version bump (aws#635)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants