微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法使用自定义容器GCP

如何解决无法使用自定义容器GCP

我的图像为11.4 GB。我正在尝试以下命令:

gcloud beta ai-platform versions create v1 \
  --region=$REGION \
  --model=$MODEL \
  --machine-type=n1-highmem-2 \
  --image=$REGION-docker.pkg.dev/$PROJECT_ID/$REPO_NAME/$IMAGE_NAME \
  --ports=8000 

并且失败:

Error: model server never became ready. Please validate that your model file or container configuration are valid,Error details: model server never became ready: status: "False" last_transition_time { seconds: 1603932493 } reason: "ContainersNotReady" message: "containers with unready status: [online-prediction-be-test85b70d-v1fb1b0606]" type: "ContainersReady"

即使我可以使用docker run在本地运行映像。我需要更改什么?

当我在未指定区域且详细程度设置为DEBUG的情况下运行时,我得到:

RecursionError: maximum recursion depth exceeded while calling a Python object
ERROR: gcloud crashed (RecursionError): maximum recursion depth exceeded while calling a Python object

The Python stack trace is massive (last couple of lines):
  File "/googlecloudsdk/core/log.py",line 484,in ShowStructuredOutput
    show_messages = properties.VALUES.core.show_structured_logs.Get()
  File "/googlecloudsdk/core/properties.py",line 2380,in Get
    value = _GetProperty(self,named_configs.ActivePropertiesFile.Load(),File "/googlecloudsdk/core/properties.py",line 2679,in _GetProperty
    value = _GetPropertyWithoutDefault(prop,properties_file)
  File "/google-cloud-sdk/lib/googlecloudsdk/core/properties.py",line 2711,in _GetPropertyWithoutDefault
    value = _GetPropertyWithoutCallback(prop,line 2741,in _GetPropertyWithoutCallback
    for value_flags in reversed(invocation_stack):

解决方法

无法从您收到的此错误消息中理解任何内容,但是, 我猜 gcloud 无法对您的容器运行健康检查, 你能用:--health-route 来指定它吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。