【问题标题】:Deployment timeout while deploying the ML model in the Azure Container Instance with the azure pipeline使用 azure 管道在 Azure 容器实例中部署 ML 模型时部署超时
【发布时间】:2020-08-07 07:37:36
【问题描述】:

昨天在 Azure ACI 上部署 ML 模型时,我们的代码运行良好,但今天面临部署超时或有时 400(错误响应)。

microsoft datcenters 有什么问题还是有其他问题?

错误如下所示

"message": "收到来自模型管理服务的错误响应:\n响应代码:400\n标题:{'Date': 'Thu, 06 Aug 2020 21:05:31 GMT', 'Content-Type': '应用程序/json','传输编码':'分块','连接':'keep-alive','请求上下文':'appId = cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d',' x-ms-client-request-id':'8aa4dcafb0ec40ef822b55fc4c7a196f','x-ms-client-session-id':'bf2decff-8879-4a9c-bb5f-2fae7034946c','api-supported-versions':'1.0, 2018-03-01-preview, 2018-11-19', 'x-request-time': '0.044', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains; preload'}\n内容: b'{"code":"BadRequest","statusCode":400,"message":"请求无效。","details":[{"code":"InvalidOverwriteRequest","message":"无效覆盖请求 - 无法更新容器资源要求、dns 名称标签或部署类型。请删除并重新部署此服务。"}],"correlation":{"RequestId":"8aa4dcafb0ec40ef822b55fc4c7a196f"}}'"

"message": "服务部署轮询达到不成功终端状态,当前服务状态:不健康\n操作 ID:1b6746b3-cdb6-4e0c-a43d-b31b34ac99b2\n更多信息可以使用 '.get_logs()' 找到\ nError:\n{\n "code": "DeploymentTimedOut",\n "statusCode": 504,\n "message": "部署操作轮询超时。服务创建花费的时间比我们正常的时间要长。我们仍在尝试为 Web 服务实现所需的状态。请检查当前 Web 服务运行状况的 Web 服务状态。您可以从 python SDK 运行 print(service.state) 来检索 Web 服务的当前状态。"\n}"

【问题讨论】:

  • 你好朋友,这个问题怎么样?下面的答案是否解决了您的问题,如果是,您可以Accept it as an Answer,这样它可以帮助遇到相同问题的其他社区成员,我们可以存档这个帖子,谢谢。

标签: azure-devops azure-pipelines azureml


【解决方案1】:

根据错误消息InvalidOverwriteRequest-cannot update...,在管道运行之前,您已经有一个同名的现有部署。

您是否正在使用来自Machine LearningAzure ML Model Deploy task 任务?如果是这样,您需要为部署任务启用OverWrite existing deployment 设置。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-29
    • 2022-01-22
    • 2018-09-05
    • 1970-01-01
    • 1970-01-01
    • 2020-08-06
    • 1970-01-01
    • 2020-09-12
    相关资源
    最近更新 更多