【问题标题】:Azure ML Online Endpoint deployment DriverFileNotFound ErrorAzure ML 在线终结点部署 DriverFileNotFound 错误
【发布时间】:2022-01-13 06:25:50
【问题描述】:

运行 Azure ML Online 终结点命令时,它在本地运行。但是当我尝试将它部署到 Azure 时,我收到了这个错误。 命令 - az ml online-deployment create --name blue --endpoint "unique-name" -f endpoints/online/managed/sample/blue-deployment.yml --all-traffic

{
    "status": "Failed",
    "error": {
        "code": "DriverFileNotFound",
        "message": "Driver file with name score.py not found in provided dependencies. Please check the name of your file.",
        "details": [
            {
                "code": "DriverFileNotFound",
                "message": "Driver file with name score.py not found in provided dependencies. Please check the name of your file.\nThe build log is available in the workspace blob store \"coloraiamlsa\" under the path \"/azureml/ImageLogs/1673692e-e30b-4306-ab81-2eed9dfd4020/build.log\"",
                "details": [],
                "additionalInfo": []
            }
        ],
        

这是直接取自 azureml-examples repo 的部署 YAML

$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
name: blue
endpoint_name: my-endpoint
model:
  local_path: ../../model-1/model/sklearn_regression_model.pkl
code_configuration:
  code: 
    local_path: ../../model-1/onlinescoring/
  scoring_script: score.py
environment: 
  conda_file: ../../model-1/environment/conda.yml
  image: mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1
instance_type: Standard_F2s_v2
instance_count: 1

【问题讨论】:

    标签: endpoint azureml


    【解决方案1】:

    终于,经过多次头疼后,我能够在另一个 Azure ML 工作区中持续重现此错误。

    我尝试在创建的全新 Azure ML 工作区中部署相同的示例,并且进展顺利。

    此时我记得我已将之前的 AML 工作区的存储帐户升级到 DataLake Gen2。

    所以我在这个新工作区的存储帐户中进行了同样的升级。升级后,当我尝试部署相同的端点时,我得到相同的DriverFileNotFoundError

    似乎 Azure ML 不支持具有 DataLake Gen2 功能的存储帐户,尽管支持页面另有说明。 https://docs.microsoft.com/en-us/azure/machine-learning/how-to-access-data#supported-data-storage-service-types.

    此时我唯一的选择是重新创建一个新工作区并在那里部署我的代码。希望 Azure 团队尽快解决这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-13
      • 1970-01-01
      • 1970-01-01
      • 2022-09-28
      相关资源
      最近更新 更多