My image is 11.4 GB. I'm trying the following command:
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
and it's failing with:
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"
even though I can run the image locally with docker run
. What do I need to change?
When I run without specifying a region and with verbosity set to DEBUG, I get:
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):