Сбой развертывания Azure Kubernets …. Ошибка: получен неверный ответ от службы управления моделями: код ответа: 400

#azure #kubernetes #azure-functions

#azure #kubernetes #azure-функции

Вопрос:

Сбой развертывания Azure kubernets….

Исключение WebserviceException:

 Message: Service deployment polling reached non-successful terminal state, current service state: Failed
 

Идентификатор операции: cf9db31f-0466-41dd-b70f-fe5a9

Дополнительную информацию можно найти с помощью ‘.get_logs ()’

 Error:
{
  "code": "KubernetesDeploymentFailed",
  "statusCode": 400,
  "message": "Kubernetes Deployment failed",
  "details": [
    {
      "code": "CrashLoopBackOff",
      "message": "Your container application crashed. This may be caused by errors in your scoring file's init() function.nPlease check the logs for your container instance: aks-service-fa2. From the AML SDK, you can run print(service.get_logs()) if you have service object to fetch the logs. nYou can also try to run image c377cabf339b45c71.azurecr.io/azureml/azureml_bd83accc12:latest locally. Please refer to https://aka.ms/debugimage#service-launch-fails for more information."
    },
    {
      "code": "DeploymentFailed",
      "message": "Your container endpoint is not available. Please follow the steps to debug:n1. From the AML SDK, you can run print(service.get_logs()) if you have service object to fetch the logs.
 

Комментарии:

1. Вы пытались запустить контейнер из этого образа локально?

Ответ №1:

Как ясно указывает ошибка,

Сбой вашего контейнерного приложения. Это может быть вызвано ошибками в функции init() вашего файла оценки.Пожалуйста, проверьте журналы для вашего экземпляра контейнера: aks-service-fa2. Из AML SDK вы можете запустить print(service.get_logs()), если у вас есть объект service для извлечения журналов. Вы также можете попытаться запустить изображение c377cabf339b45c71.azurecr.io/azureml/azureml_bd83accc12:latest локально. Пожалуйста, обратитесь к https://aka.ms/debugimage#service-launch-fails для получения дополнительной информации.

Вам необходимо проверить в журнале приложений (проверить журнал Docker), в чем ошибка, и исправить ее.

 # if you already have the service object handy
print(service.get_logs())

# if you only know the name of the service (note there might be multiple services with the same name but different version number)
print(ws.webservices['mysvc'].get_logs())