ACI Service request failed

Harry Sun 1 Reputation point
2021-04-28T22:02:01.237+00:00

Hello,

I got an error when trying to deploy AML model. The tutorial I refer to is this: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-and-where?tabs=python
Part of the console log is below.

2021-04-28 14:35:51-07:00 Registering the environment.
2021-04-28 14:35:53-07:00 Use the existing image.
2021-04-28 14:35:55-07:00 Submitting deployment to compute.
Failed
Service deployment polling reached non-successful terminal state, current service state: Transitioning
Operation ID: b6e3b3b3-d1f0-4819-81ac-b72c7b3582dd
Current sub-operation type not known, more logs unavailable.
Error:
{
"code": "InaccessibleImage",
"statusCode": 400,
"message": "ACI Service request failed. Reason: The image 'registryxdjudax3mnivo.azurecr.io/azureml/azureml_e1f2520e8a691cb15119fcbae8e452b7' in container
group 'myservice-dV-NN8cdrU2R5BJEiypZqQ' is not accessible. Please check the image and registry credential.. Refer to https://learn.microsoft.com/azure/cont
ainer-registry/container-registry-authentication#admin-account and make sure Admin user is enabled for your container registry."
}

Traceback (most recent call last):
File "deploy-model.py", line 34, in <module>
service.wait_for_deployment(show_output=True)
File "C:\Users\Administrator\source\repos\TestPython\venv\lib\site-packages\azureml\core\webservice\webservice.py", line 917, in wait_for_deployment
raise WebserviceException('Service deployment polling reached non-successful terminal state, current '
azureml.exceptions._azureml_exception.WebserviceException: WebserviceException:
Message: Service deployment polling reached non-successful terminal state, current service state: Transitioning
Operation ID: b6e3b3b3-d1f0-4819-81ac-b72c7b3582dd
Current sub-operation type not known, more logs unavailable.
Error:
{
"code": "InaccessibleImage",
"statusCode": 400,
"message": "ACI Service request failed. Reason: The image 'registryxdjudax3mnivo.azurecr.io/azureml/azureml_e1f2520e8a691cb15119fcbae8e452b7' in container
group 'myservice-dV-NN8cdrU2R5BJEiypZqQ' is not accessible. Please check the image and registry credential.. Refer to https://learn.microsoft.com/azure/cont
ainer-registry/container-registry-authentication#admin-account and make sure Admin user is enabled for your container registry."
}
InnerException None
ErrorResponse
{
"error": {
"message": "Service deployment polling reached non-successful terminal state, current service state: Transitioning\nOperation ID: b6e3b3b3-d1f0-4819
-81ac-b72c7b3582dd\nCurrent sub-operation type not known, more logs unavailable.\nError:\n{\n \"code\": \"InaccessibleImage\",\n \"statusCode\": 400,\n \
"message\": \"ACI Service request failed. Reason: The image 'registryxdjudax3mnivo.azurecr.io/azureml/azureml_e1f2520e8a691cb15119fcbae8e452b7' in container
group 'myservice-dV-NN8cdrU2R5BJEiypZqQ' is not accessible. Please check the image and registry credential.. Refer to https://learn.microsoft.com/azure/cont
ainer-registry/container-registry-authentication#admin-account and make sure Admin user is enabled for your container registry.\"\n}"
}
}

The python code used for this is below. The local deployment works actually.

from azureml.core import Environment
from azureml.core.model import InferenceConfig
from azureml.core.webservice import LocalWebservice
from azureml.core.webservice import AciWebservice
from azureml.core.model import Model
from azureml.core import Workspace

ws = Workspace.from_config(path="./config.json")

model = Model(ws, 'bidaf_onnx')
print(model.name, " : ", model.created_by)

env = Environment(name='myenv')
python_packages = ['nltk', 'numpy', 'onnxruntime']
for package in python_packages:
env.python.conda_dependencies.add_pip_package(package)

inf_config = InferenceConfig(environment=env, source_directory='./source_dir', entry_script='./score.py')
print("Generated inference configuration")

deploy_config = AciWebservice.deploy_configuration(cpu_cores = 0.5, memory_gb = 1)
print("Generated deployment configuration")

service = Model.deploy(ws, "myservice", [model], inf_config, deploy_config, overwrite=True)
service.wait_for_deployment(show_output=True)
print(service.get_logs())

I've enabled "Admin user" for the container registry as indicated by the error message. But still got the same error message.
Thank you,

Hai

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
384 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
635 questions
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,560 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Praveen 1 Reputation point
    2022-04-21T13:42:35.867+00:00

    We are having same issue, are there any updates to this forum?

    0 comments No comments

  2. Anonymous
    2022-11-17T20:53:28.99+00:00

    any update on this. running into same issue.

    0 comments No comments