Share via

Models registered with AML CLI cause ACI deployments to fail

Eu Jing Chua 6 Reputation points Microsoft Employee
2021-10-20T16:15:20.717+00:00

We were registering a local file ts_scalar.pickle as a model using AML CLI's create az model create -n test-model -l ./ts_scalar.pickle ...
This registered model test-model works fine when deployed to a LocalWebService, but does not work for a AciWebService.
We either get a timeout during the deployment (does not reach stage where containers start running) or this error:

Traceback (most recent call last):  
  File "./download.py", line 353, in <module>  
    init_container_assets(args.config_json, args.conn_string, args.container, args.appinsights_key, args.config_folder)  
  File "./download.py", line 327, in init_container_assets  
    downloader.download(config_file_content)  
  File "./download.py", line 128, in download  
    self.download_artifact(blob_path, local_path, unpack_type)  
  File "./download.py", line 92, in download_artifact  
    file_path=local_path)  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/blob/baseblobservice.py", line 2014, in get_blob_to_path  
    cpk=cpk)  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/blob/baseblobservice.py", line 2193, in get_blob_to_stream  
    raise ex  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/blob/baseblobservice.py", line 2160, in get_blob_to_stream  
    cpk=cpk)  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/blob/baseblobservice.py", line 1887, in _get_blob  
    operation_context=_context)  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/common/storageclient.py", line 446, in _perform_request  
    raise ex  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/common/storageclient.py", line 374, in _perform_request  
    raise ex  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/common/storageclient.py", line 360, in _perform_request  
    HTTPError(response.status, response.message, response.headers, response.body))  
  File "/usr/local/lib/python3.6/site-packages/azure/storage/common/_error.py", line 115, in _http_error_handler  
    raise ex  
azure.common.AzureMissingResourceHttpError: The specified blob does not exist. ErrorCode: BlobNotFound  
<?xml version="1.0" encoding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified blob does not exist.  
RequestId:59b52a82-301e-005a-51c8-c52ce4000000  
Time:2021-10-20T15:40:04.2703282Z</Message></Error>  

However if we register the model through AML's UI model registration, both kinds of deployments are successful.

Is there an issue with using the CLI to register models for ACI deployment?

Azure Machine Learning

1 answer

Sort by: Most helpful
  1. Nitin Khaneja 1 Reputation point
    2022-08-26T06:56:37.237+00:00

    Any Update on this? I am having the same issue?

    Was this answer helpful?

    0 comments No comments

Your answer

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