BotoServerError

BotoServerError: 500 Internal Server Error <?xml version='1.0' encoding='UTF-8'?> <Response><RequestID>a5780ee1-bd41-45d4-9849-1ca9d860e697</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>a5780ee1-bd41-45d4-9849-1ca9d860e697</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>a5780ee1-bd41-45d4-9849-1ca9d860e697</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
a5780ee1-bd41-45d4-9849-1ca9d860e697
status : int
500

Traceback

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

    self : _Outcome
    <unittest.case._Outcome object at 0x7f49536ebfd0>
    test_case : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    isTest : bool
    False
    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 0x7f496f22efb0>
    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 : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. outcome = _Outcome(result)
    2. try:
    3. self._outcome = outcome
    4. with outcome.testPartExecutor(self):
    5. self.setUp()
    6. if outcome.success:
    7. outcome.expecting_failure = expecting_failure
    8. with outcome.testPartExecutor(self, isTest=True):
    9. testMethod()

    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 0x7f49536ebfd0>
    testMethod : method
    <bound method Addresses.test_disassociate_parallel of <c2tests.ec2.addresses.Addresses testMethod=test_disassociate_parallel>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7f496f22efb0>
    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/addresses.py in setUp (arguments )

    self : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    1. class Addresses(c2tests.EC2TestCase):
    2. """Tests various Cloud limits."""
    3. def setUp(self):
    4. super(Addresses, self).setUp()
    5. self.assertEquals([], self.get_all_addresses())
    6. self.assertEquals([], self.get_all_instances())
    7. self.assertEquals([], self.get_all_network_interfaces())
    8. self.custom_pool_id = self.get_all_public_ipv4_pools()[0].id
  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in setUp (arguments )

    self : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    1. self.entities[resources.VPC_VPCS] = self.get_all_vpcs()
    2. self.entities[resources.VPC_DHCP_OPTIONS] = self.get_all_dhcp_options()
    3. def setUp(self):
    4. self._default_vpcs = dict([(i, None) for i in profile.AVAILABLE_PROJECTS])
    5. super(VPCTestCase, self).setUp()
    6. zones = self.get_all_zones()
    7. def _setup():
    8. # ensure that default VPC exists

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f49619ea510>
  5. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in setUp (arguments )

    self : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    1. """
    2. return self.profile.get_connection(profile.EC2Connection)
    3. def setUp(self):
    4. super(_EC2TestCase, self).setUp()
    5. self._default_acls = {i: None for i in profile.AVAILABLE_PROJECTS}
    6. self._default_groups = {i: None for i in profile.AVAILABLE_PROJECTS}
    7. self._default_subnets = {i: {} for i in profile.AVAILABLE_PROJECTS}
    8. self._default_keypair = None

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f49619ea510>
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in setUp (arguments )

    self : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    1. self.log.warning(message, *args, **kwargs)
    2. def setUp(self):
    3. self.report("Cleaning up before the test")
    4. self.cleanup()
    5. self.report("Cleaning up finished")
    6. self.log.warning("Running testcase: {0}".format(self._testMethodName))
    7. def tearDown(self):

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f49619ea510>
  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in cleanup (arguments )

    self : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    projects : NoneType
    None
    1. for project in projects or profile.AVAILABLE_PROJECTS:
    2. with self.switch_project(project):
    3. self.report("Filling up {0} project entities...".format(project))
    4. self._fill_entities()
    5. self.report("Cleaning up {0} project entities...".format(project))
    6. self._cleanup()
    7. def cleanup_prod(self):
    8. """Cleans up all data created by the test in production environment."""

    Locals

    project : str
    p1

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f49619ea510>
  8. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in _cleanup (arguments )

    self : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    1. self._delete_vpn_connections()
    2. self._delete_subnets()
    3. self._delete_route_tables()
    4. self._delete_customer_gateways()
    5. self._delete_acls()
    6. self._delete_vpcs()
    7. self._delete_dhcp_options()
    8. def create_customer_gateway(self, *args, **kwargs):
    9. """Helper to create customer gateway."""

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f49619ea510>
  9. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in _delete_vpcs (arguments )

    self : Addresses
    test_disassociate_parallel (c2tests.ec2.addresses.Addresses)
    1. vpcs = self.entities[resources.VPC_VPCS]
    2. if common.isiterable(vpcs):
    3. for vpc in vpcs:
    4. self.log.warning("Deleting: {0}".format(vpc))
    5. self.vpcconn.delete_vpc(vpc.id)
    6. if vpc.is_default:
    7. self._default_vpcs[self.profile.project] = None
    8. self.entities[resources.VPC_VPCS] = []

    Locals

    vpc : VPC
    VPC:vpc-5BD6DBB4
    vpcs : ResultSet
    [VPC:vpc-5BD6DBB4]

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f49619ea510>
  10. /root/c2tests/.venv/src/boto/boto/vpc/__init__.py in delete_vpc (arguments )

    self : VPCConnection
    VPCConnection:api.dev.c2.croc.ru
    vpc_id : str
    vpc-5BD6DBB4
    dry_run : bool
    False
    1. :return: True if successful
    2. """
    3. params = {'VpcId': vpc_id}
    4. if dry_run:
    5. params['DryRun'] = 'true'
    6. return self.get_status('DeleteVpc', params)
    7. def modify_vpc_attribute(self, vpc_id,
    8. enable_dns_support=None,
    9. enable_dns_hostnames=None, dry_run=False):

    Locals

    params : dict
    {'VpcId': 'vpc-5BD6DBB4'}

    Globals

    RegionData : dict
    {'ap-northeast-2': 'ec2.ap-northeast-2.amazonaws.com', 'eu-west-2': 'ec2.eu-west-2.amazonaws.com', 'us-east-1': 'ec2.us-east-1.amazonaws.com', 'sa-east-1': 'ec2.sa-east-1.amazonaws.com', 'us-east-2': 'ec2.us-east-2.amazonaws.com', 'us-west-1': 'ec2.us-west-1.amazonaws.com', 'ap-southeast-2': 'ec2.ap-southeast-2.amazonaws.com', 'ap-southeast-1': 'ec2.ap-southeast-1.amazonaws.com', 'ap-south-1': 'ec2.ap-south-1.amazonaws.com', 'ca-central-1': 'ec2.ca-central-1.amazonaws.com', 'us-west-2': 'ec2.us-west-2.amazonaws.com', 'ap-northeast-1': 'ec2.ap-northeast-1.amazonaws.com', 'us-gov-west-1': 'ec2.us-gov-west-1.amazonaws.com', 'eu-west-1': 'ec2.eu-west-1.amazonaws.com', 'eu-central-1': 'ec2.eu-central-1.amazonaws.com', 'cn-north-1': 'ec2.cn-north-1.amazonaws.com.cn'}
  11. /root/c2tests/.venv/src/boto/boto/connection.py in get_status (arguments )

    self : VPCConnection
    VPCConnection:api.dev.c2.croc.ru
    action : str
    DeleteVpc
    params : dict
    {'VpcId': 'vpc-5BD6DBB4'}
    path : str
    /
    parent : VPCConnection
    VPCConnection:api.dev.c2.croc.ru
    verb : str
    GET
    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 0x7f4962ec29d0>
    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
  12. /root/c2tests/.venv/src/boto/boto/ec2/connection.py in make_request (arguments )

    self : VPCConnection
    VPCConnection:api.dev.c2.croc.ru
    action : str
    DeleteVpc
    params : dict
    {'VpcId': 'vpc-5BD6DBB4'}
    path : str
    /
    verb : str
    GET
    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
  13. /root/c2tests/.venv/src/boto/boto/connection.py in make_request (arguments )

    self : VPCConnection
    VPCConnection:api.dev.c2.croc.ru
    action : str
    DeleteVpc
    params : dict
    {'VpcId': 'vpc-5BD6DBB4'}
    path : str
    /
    verb : str
    GET
    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:(GET) protocol:(https) host(api.dev.c2.croc.ru) port(8443) path(/?Action=DeleteVpc&Version=2014-10-01&VpcId=vpc-5BD6DBB4) params({'VpcId': 'vpc-5BD6DBB4', 'Action': 'DeleteVpc', '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': '20230830T144245Z', 'Authorization': 'AWS4-HMAC-SHA256 Credential=p1:admin@hc.cloud.croc.ru/20230830/dev/api/aws4_request,SignedHeaders=host;x-amz-date,Signature=45e69185826c12ed675fcb451a1eff81359f0c490d13047abb98cd86f7600d8e', 'Content-Length': '0', 'Host': 'api.dev.c2.croc.ru:8443'}) body(b'')

    Globals

    config : Config
    <boto.pyami.config.Config object at 0x7f4962ec29d0>
    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
  14. /root/c2tests/.venv/src/boto/boto/connection.py in _mexe (arguments )

    self : VPCConnection
    VPCConnection:api.dev.c2.croc.ru
    request : HTTPRequest
    method:(GET) protocol:(https) host(api.dev.c2.croc.ru) port(8443) path(/?Action=DeleteVpc&Version=2014-10-01&VpcId=vpc-5BD6DBB4) params({'VpcId': 'vpc-5BD6DBB4', 'Action': 'DeleteVpc', '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': '20230830T144245Z', 'Authorization': 'AWS4-HMAC-SHA256 Credential=p1:admin@hc.cloud.croc.ru/20230830/dev/api/aws4_request,SignedHeaders=host;x-amz-date,Signature=45e69185826c12ed675fcb451a1eff81359f0c490d13047abb98cd86f7600d8e', 'Content-Length': '0', 'Host': 'api.dev.c2.croc.ru:8443'}) body(b'')
    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>a5780ee1-bd41-45d4-9849-1ca9d860e697</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 0x7f49536f56d0>
    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 0x7f49536f5f90>

    Globals

    config : Config
    <boto.pyami.config.Config object at 0x7f4962ec29d0>
    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
2023-08-30 17:43:18
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