AnykeyNL / OCI-AutoScale

Automatic Scaling for OCI BM Database Cloud Service (Schedule based)
Universal Permissive License v1.0
112 stars 64 forks source link

Issue: script stopped working #32

Closed rcggomez closed 9 months ago

rcggomez commented 10 months ago

The script stopped working this morning after a long time running, it generates controversy since no change has been made to the account configuration. This is the issue, does anyone have an idea how to fix it?

Traceback (most recent call last): File "/home/opc/OCI-AutoScale/AutoScaleALL.py", line 319, in result = search.search_resources(search_details=sdetails, limit=1000).data File "/usr/lib/python3.6/site-packages/oci/resource_search/resource_search_client.py", line 393, in search_resources api_reference_link=api_reference_link) File "/usr/lib/python3.6/site-packages/oci/retry/retry.py", line 308, in make_retrying_call response = func_ref(*func_args, func_kwargs) File "/usr/lib/python3.6/site-packages/oci/base_client.py", line 476, in call_api return self.request(request, allow_control_chars, operation_name, api_reference_link) File "/usr/lib/python3.6/site-packages/circuitbreaker.py", line 52, in wrapper return self.call(function, *args, *kwargs) File "/usr/lib/python3.6/site-packages/circuitbreaker.py", line 67, in call result = func(args, kwargs) File "/usr/lib/python3.6/site-packages/oci/base_client.py", line 630, in request self.raise_transient_service_error(request, response, service_code, message, operation_name, api_reference_link, target_service, request_endpoint, client_version, timestamp, deserialized_data) File "/usr/lib/python3.6/site-packages/oci/base_client.py", line 816, in raise_transient_service_error deserialized_data=deserialized_data) oci.exceptions.TransientServiceError: {'target_service': 'resource_search', 'status': 502, 'code': 'InternalError', 'opc-request-id': '9C118318A1DF4E538803C8E4F16185F0/F8251B7F1A54A8EA0A87613F75670226/840B4E07711ECD8251A4602C82E053BB', 'message': 'Bad Gateway', 'operation_name': 'search_resources', 'timestamp': '2023-08-11T17:15:41.752187+00:00', 'client_version': 'Oracle-PythonSDK/2.93.1', 'request_endpoint': 'POST https://query.us-ashburn-1.oci.oraclecloud.com/20180409/resources', 'logging_tips': 'To get more info on the failing request, refer to https://docs.oracle.com/en-us/iaas/tools/python/latest/logging.html for ways to log the request/response details.', 'troubleshooting_tips': "See https://docs.oracle.com/iaas/Content/API/References/apierrors.htm#apierrors_502__502_internalerror for more information about resolving this error. Also see https://docs.oracle.com/iaas/api/#/en/search/20180409/ResourceSummary/SearchResources for details on this operation's requirements. If you are unable to resolve this resource_search issue, please contact Oracle support and provide them this full error message."} [opc@auto-scaller ~]$