Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 无法使用自定义容器GCP部署_Google Cloud Platform_Google Ai Platform - Fatal编程技术网

Google cloud platform 无法使用自定义容器GCP部署

Google cloud platform 无法使用自定义容器GCP部署,google-cloud-platform,google-ai-platform,Google Cloud Platform,Google Ai Platform,我的图像是11.4GB。我正在尝试以下命令: 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 se

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

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
在本地运行图像。我需要改变什么

当我在未指定区域的情况下运行,并且“详细性”设置为“调试”时,我会得到:

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, properties_file)
  File "/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 2741, in _GetPropertyWithoutCallback
    for value_flags in reversed(invocation_stack):


无法理解您收到的此错误消息中的任何内容,但是, 我猜gcloud没有对你的容器进行健康检查,
您可以用:
--health route
来指定它,然后查看吗?

您可以尝试删除
--region
标志吗?然后将
--verbosity
添加到调试模式,以获得有关错误的更详细信息。这不是答案。请使用评论功能。@SidKwakkel认为他没有评论的名声。