service.get_logs() giving internal server error

Anonymous
2023-03-05T19:59:33.53+00:00

Azure container instance when deployed using aciwebservice giving internal server error when i try to get the logs using service.get_logs()

error message:

Received bad response from Model Management Service: Response Code: 500 Headers: {'Date': 'Sun, 05 Mar 2023 19:50:57 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-ms-client-request-id': '99fe2bd2-fa79-4ad3-8a2a-375f4e9a9a6d', 'x-ms-client-session-id': 'e476f4f2-cf80-4f1a-a85e-6ca1a4c4f3dc', 'api-supported-versions': '1.0, 2018-03-01-preview, 2018-11-19', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains; preload', 'X-Content-Type-Options': 'nosniff', 'x-aml-cluster': 'vienna-eastus2-01', 'x-request-time': '31.336'} Content: b'{"code":"InternalServerError","statusCode":500,"message":"An internal server error occurred. Please try again. If the problem persists, contact support.","details":[{"code":"InternalServerError","message":"Encountered an internal server error. The tracking activity id is '6bb142b7-2b7f-405c-9d8d-1f389b5ba084', correlation id is '61799891-394a-4771-9453-162e92c904d2'."}],"correlation":{"RequestId":"99fe2bd2-fa79-4ad3-8a2a-375f4e9a9a6d"}}

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
633 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 18,347 Reputation points Microsoft Employee
    2023-04-11T06:14:33.1266667+00:00

    Since this error is not giving any details about the issue, we can try to troubleshoot the issue by checking the logs of the Azure Container Instances. When you have a misbehaving container in Azure Container Instances, start by viewing its logs with az container logs, and stream its standard out and standard error with az container attach. You can also view logs and events for container instances in the Azure portal, or send log and event data for container groups to Azure Monitor logs. If your container fails to deploy successfully, review the diagnostic information provided by the Azure Container Instances resource provider. To view the events for your container, run the az container show command:

    az container show --resource-group myResourceGroup --name mycontainer
    

    Try the steps provided in this document and let me know the results: Retrieve container logs and events in Azure Container Instances Also, please share more details about the webservice and your scenario in the comments. Thanks.

    0 comments No comments