WebserviceException

Naveen 326 Reputation points
2021-01-15T23:34:42.927+00:00

Hi all,

I am trying to do "create a Real-time Inferencing Service" and in the Notebook at some point, this is the code:

from azureml.core.webservice import AciWebservice
from azureml.core.model import InferenceConfig

# Configure the scoring environment
inference_config = InferenceConfig(runtime= "python",
                                   entry_script=script_file,
                                   conda_file=env_file)

deployment_config = AciWebservice.deploy_configuration(cpu_cores = 1, memory_gb = 1)

service_name = "diabetes-service"

service = Model.deploy(ws, service_name, [model], inference_config, deployment_config)

service.wait_for_deployment(True)
print(service.state)

This is the error message I am getting:

"WebserviceException: WebserviceException: Message: Service deployment polling reached non-successful terminal state, current service state: Failed Operation ID: "

Please can you help me with this?

Thanks,

Naveen

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,333 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zeqing Ma 76 Reputation points Microsoft Employee
    2021-01-18T02:59:51.073+00:00

    Hello, Naveen. This error msg is uncompleted, could you please provided the completed message?

    You can invoke service.get_logs() for obtain the detailed logs happened INSIDE k8s container, That may help you.

    Based on your provided python code, I think your deployment workflow is OK, so maybe the problem happened in your provided entry_script, so you can check first if there is some problems in the init() of your entry_script.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.