BotoServerError

BotoServerError: 500 Internal Server Error <?xml version='1.0' encoding='UTF-8'?> <Response><RequestID>077b79e6-2e3a-45a4-9675-00d282cf1ecf</RequestID><Errors><Error><Code>InternalError</Code><Message>We encountered an internal error. Please try again.</Message></Error></Errors></Response> search by Google

_error_message : NoneType
None
args : tuple
(500, 'Internal Server Error', "<?xml version='1.0' encoding='UTF-8'?>\n<Response><RequestID>077b79e6-2e3a-45a4-9675-00d282cf1ecf</RequestID><Errors><Error><Code>InternalError</Code><Message>We encountered an internal error. Please try again.</Message></Error></Errors></Response>")
body : str
<?xml version='1.0' encoding='UTF-8'?> <Response><RequestID>077b79e6-2e3a-45a4-9675-00d282cf1ecf</RequestID><Errors><Error><Code>InternalError</Code><Message>We encountered an internal error. Please try again.</Message></Error></Errors></Response>
box_usage : NoneType
None
error_code : str
InternalError
message : str
We encountered an internal error. Please try again.
reason : str
Internal Server Error
request_id : str
077b79e6-2e3a-45a4-9675-00d282cf1ecf
status : int
500

Traceback

  1. /usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments )

    self : _Outcome
    <unittest.case._Outcome object at 0x7fb03a113e50>
    test_case : DefaultInstanceOperations
    test_network_detaching (c2tests.ec2.defaultinstanceoperations.DefaultInstanceOperations)
    isTest : bool
    True
    1. @contextlib.contextmanager
    2. def testPartExecutor(self, test_case, isTest=False):
    3. old_success = self.success
    4. self.success = True
    5. try:
    6. yield
    7. except KeyboardInterrupt:
    8. raise
    9. except SkipTest as e:
    10. self.success = False

    Locals

    exc_info : NoneType
    None
    old_success : bool
    True

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  2. /usr/local/lib/python3.7/unittest/case.py in run (arguments )

    self : DefaultInstanceOperations
    test_network_detaching (c2tests.ec2.defaultinstanceoperations.DefaultInstanceOperations)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. with outcome.testPartExecutor(self):
    2. self.setUp()
    3. if outcome.success:
    4. outcome.expecting_failure = expecting_failure
    5. with outcome.testPartExecutor(self, isTest=True):
    6. testMethod()
    7. outcome.expecting_failure = False
    8. with outcome.testPartExecutor(self):
    9. self.tearDown()

    Locals

    expecting_failure : bool
    False
    expecting_failure_class : bool
    False
    expecting_failure_method : bool
    False
    orig_result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    outcome : _Outcome
    <unittest.case._Outcome object at 0x7fb03a113e50>
    testMethod : method
    <bound method _InstanceOperations.test_network_detaching of <c2tests.ec2.defaultinstanceoperations.DefaultInstanceOperations testMethod=test_network_detaching>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  3. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instanceoperations.py in test_network_detaching (arguments )

    self : DefaultInstanceOperations
    test_network_detaching (c2tests.ec2.defaultinstanceoperations.DefaultInstanceOperations)
    1. self.conn.attach_network_interface(interface1.id, instance.id, 1)
    2. instance.update()
    3. utils.wait_for_interface_attached(interface1)
    4. self.report("Detaching switch interface...")
    5. interface1.detach()
    6. # We don't allow attaching more than one NetworkInterface from
    7. # single VirtualSwitch.
    8. self.assert_error("InvalidParameterValue",

    Locals

    instance : Instance
    Instance:i-B4F386E0
    interface1 : NetworkInterface
    NetworkInterface:eni-E6B13C80
    interface2 : NetworkInterface
    NetworkInterface:eni-4EE1D8A0
    switch : VirtualSwitch
    VirtualSwitch:Test switch 0308d2d7-1e44-4479-a3bf-893e9d459fb5

    Globals

  4. /root/c2tests/.venv/src/boto/boto/ec2/networkinterface.py in detach (arguments )

    self : NetworkInterface
    NetworkInterface:eni-E6B13C80
    force : bool
    False
    dry_run : bool
    False
    1. attachment_id = getattr(self.attachment, 'id', None)
    2. return self.connection.detach_network_interface(
    3. attachment_id,
    4. force,
    5. dry_run=dry_run
    6. )
    7. def delete(self, dry_run=False):
    8. return self.connection.delete_network_interface(

    Locals

    attachment_id : str
    eni-attach-07769C60

    Globals

  5. /root/c2tests/.venv/src/boto/boto/ec2/connection.py in detach_network_interface (arguments )

    self : EC2Connection
    EC2Connection:api.dev.c2.croc.ru
    attachment_id : str
    eni-attach-07769C60
    force : bool
    False
    dry_run : bool
    False
    1. params = {'AttachmentId': attachment_id}
    2. if force:
    3. params['Force'] = 'true'
    4. if dry_run:
    5. params['DryRun'] = 'true'
    6. return self.get_status('DetachNetworkInterface', params, verb='POST')
    7. def delete_network_interface(self, network_interface_id, dry_run=False):
    8. """
    9. Delete the specified network interface.

    Locals

    params : dict
    {'AttachmentId': 'eni-attach-07769C60'}

    Globals

  6. /root/c2tests/.venv/src/boto/boto/connection.py in get_status (arguments )

    self : EC2Connection
    EC2Connection:api.dev.c2.croc.ru
    action : str
    DetachNetworkInterface
    params : dict
    {'AttachmentId': 'eni-attach-07769C60'}
    path : str
    /
    parent : EC2Connection
    EC2Connection:api.dev.c2.croc.ru
    verb : str
    POST
    1. raise self.ResponseError(response.status, response.reason, body)
    2. def get_status(self, action, params, path='/', parent=None, verb='GET'):
    3. if not parent:
    4. parent = self
    5. response = self.make_request(action, params, path, verb)
    6. body = response.read()
    7. boto.log.debug(body)
    8. if not body:
    9. boto.log.error('Null body %s' % body)

    Locals

    Globals

    config : Config
    <boto.pyami.config.Config object at 0x7fb04428a350>
    DEFAULT_CA_CERTS_FILE : str
    /root/c2tests/.venv/src/boto/boto/cacerts/cacerts.txt
    HAVE_HTTPS_CONNECTION : bool
    True
    ON_APP_ENGINE : bool
    False
    PORTS_BY_SECURITY : dict
    {True: 443, False: 80}
    UserAgent : str
    Boto/2.46.1 Python/3.7.9 Linux/3.10.0-862.2.3.el7.x86_64
  7. /root/c2tests/.venv/src/boto/boto/ec2/connection.py in make_request (arguments )

    self : EC2Connection
    EC2Connection:api.dev.c2.croc.ru
    action : str
    DetachNetworkInterface
    params : dict
    {'AttachmentId': 'eni-attach-07769C60'}
    path : str
    /
    verb : str
    POST
    1. def make_request(self, action, params=None, path='/', verb='GET'):
    2. if self.aws_sudo_id:
    3. if params is None:
    4. params = {}
    5. params['AWSSudoId'] = self.aws_sudo_id
    6. return AWSQueryConnection.make_request(self, action, params, path, verb)
    7. def get_params(self):
    8. """
    9. Returns a dictionary containing the value of all of the keyword
  8. /root/c2tests/.venv/src/boto/boto/connection.py in make_request (arguments )

    self : EC2Connection
    EC2Connection:api.dev.c2.croc.ru
    action : str
    DetachNetworkInterface
    params : dict
    {'AttachmentId': 'eni-attach-07769C60'}
    path : str
    /
    verb : str
    POST
    1. self.host)
    2. if action:
    3. http_request.params['Action'] = action
    4. if self.APIVersion:
    5. http_request.params['Version'] = self.APIVersion
    6. return self._mexe(http_request)
    7. def build_list_params(self, params, items, label):
    8. if isinstance(items, six.string_types):
    9. items = [items]

    Locals

    http_request : HTTPRequest
    method:(POST) protocol:(https) host(api.dev.c2.croc.ru) port(8443) path(/) params({'AttachmentId': 'eni-attach-07769C60', 'Action': 'DetachNetworkInterface', 'Version': '2014-10-01'}) headers({'User-Agent': 'Boto/2.46.1 Python/3.7.9 Linux/3.10.0-862.2.3.el7.x86_64', 'X-Amz-Date': '20240418T203642Z', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Content-Length': '81', 'Authorization': 'AWS4-HMAC-SHA256 Credential=p1:admin@hc.cloud.croc.ru/20240418/dev/api/aws4_request,SignedHeaders=host;x-amz-date,Signature=a14ae209f63218d2dc86444ac0e20731c88fdc7904e359f99de0f856bd7d0c65', 'Host': 'api.dev.c2.croc.ru:8443'}) body(Action=DetachNetworkInterface&AttachmentId=eni-attach-07769C60&Version=2014-10-01)

    Globals

    config : Config
    <boto.pyami.config.Config object at 0x7fb04428a350>
    DEFAULT_CA_CERTS_FILE : str
    /root/c2tests/.venv/src/boto/boto/cacerts/cacerts.txt
    HAVE_HTTPS_CONNECTION : bool
    True
    ON_APP_ENGINE : bool
    False
    PORTS_BY_SECURITY : dict
    {True: 443, False: 80}
    UserAgent : str
    Boto/2.46.1 Python/3.7.9 Linux/3.10.0-862.2.3.el7.x86_64
  9. /root/c2tests/.venv/src/boto/boto/connection.py in _mexe (arguments )

    self : EC2Connection
    EC2Connection:api.dev.c2.croc.ru
    request : HTTPRequest
    method:(POST) protocol:(https) host(api.dev.c2.croc.ru) port(8443) path(/) params({'AttachmentId': 'eni-attach-07769C60', 'Action': 'DetachNetworkInterface', 'Version': '2014-10-01'}) headers({'User-Agent': 'Boto/2.46.1 Python/3.7.9 Linux/3.10.0-862.2.3.el7.x86_64', 'X-Amz-Date': '20240418T203642Z', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Content-Length': '81', 'Authorization': 'AWS4-HMAC-SHA256 Credential=p1:admin@hc.cloud.croc.ru/20240418/dev/api/aws4_request,SignedHeaders=host;x-amz-date,Signature=a14ae209f63218d2dc86444ac0e20731c88fdc7904e359f99de0f856bd7d0c65', 'Host': 'api.dev.c2.croc.ru:8443'}) body(Action=DetachNetworkInterface&AttachmentId=eni-attach-07769C60&Version=2014-10-01)
    sender : NoneType
    None
    override_num_retries : NoneType
    None
    retry_handler : NoneType
    None
    1. # use it to raise an exception.
    2. # Otherwise, raise the exception that must have already happened.
    3. if self.request_hook is not None:
    4. self.request_hook.handle_request_data(request, response, error=True)
    5. if response:
    6. raise BotoServerError(response.status, response.reason, body)
    7. elif ex:
    8. raise ex
    9. else:
    10. msg = 'Please report this exception as a Boto Issue!'

    Locals

    body : str
    <?xml version='1.0' encoding='UTF-8'?> <Response><RequestID>077b79e6-2e3a-45a4-9675-00d282cf1ecf</RequestID><Errors><Error><Code>InternalError</Code><Message>We encountered an internal error. Please try again.</Message></Error></Errors></Response>
    connection : HTTPSConnection
    <http.client.HTTPSConnection object at 0x7fb03a09b710>
    ex : NoneType
    None
    i : int
    4
    location : NoneType
    None
    msg : str
    Received 500 response. Retrying in 3.0 seconds
    next_sleep : float
    3.0
    num_retries : int
    3
    response : HTTPResponse
    <boto.connection.HTTPResponse object at 0x7fb03a06a610>

    Globals

    config : Config
    <boto.pyami.config.Config object at 0x7fb04428a350>
    DEFAULT_CA_CERTS_FILE : str
    /root/c2tests/.venv/src/boto/boto/cacerts/cacerts.txt
    HAVE_HTTPS_CONNECTION : bool
    True
    ON_APP_ENGINE : bool
    False
    PORTS_BY_SECURITY : dict
    {True: 443, False: 80}
    UserAgent : str
    Boto/2.46.1 Python/3.7.9 Linux/3.10.0-862.2.3.el7.x86_64

Environment

Time of report generation
2024-04-18 23:43:27
Python version
3.7.9 (default, Sep 21 2022, 19:11:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Path to executable
/root/c2tests/.venv/bin/python
Working directory
/root/c2tests
Arguments vector
  1. /root/c2tests/.venv/bin/c2tests
  2. run
  3. -s
  4. ec2