我一直在尝试从google自定义运行时教程在google appengine上部署修改过的docker镜像,但看起来似乎有一些错误,谷歌云日志似乎没有显示清楚。
有没有人能够理解这些日志?
Updating service [default]...|DEBUG: Operation [apps/cobalt-door-118421/operations/c34145bb-3baf-4d1b-8e34-e39f0ec65743] not complete. Waiting 5s. Updating service [default]...-DEBUG: Operation [apps/cobalt-door-118421/operations/c34145bb-3baf-4d1b-8e34-e39f0ec65743] not complete. Waiting 5s. Updating service [default]...\DEBUG: Operation [apps/cobalt-door-118421/operations/c34145bb-3baf-4d1b-8e34-e39f0ec65743] not complete. Waiting 5s. Updating service [default]...|DEBUG: Operation [apps/cobalt-door-118421/operations/c34145bb-3baf-4d1b-8e34-e39f0ec65743] not complete. Waiting 5s. Updating service [default].../DEBUG: Operation [apps/myprojectid/operations/c34145bb-3baf-4d1b-8e34-e39f0ec65743] complete. Result: { Updating service [default]...failed. DEBUG: (gcloud.preview.app.deploy) Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy. (0/2 ready, 2 still deploying). Traceback (most recent call last): File "/home/japheth/Downloads/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 715, in Execute resources = args.calliope_command.Run(cli=self, args=args) File "/home/japheth/Downloads/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 1538, in Run resources = command_instance.Run(args) File "/home/japheth/Downloads/google-cloud-sdk/lib/surface/app/deploy.py", line 80, in Run return deploy_util.RunDeploy(self, args, enable_endpoints=True) File "/home/japheth/Downloads/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 378, in RunDeploy all_services) File "/home/japheth/Downloads/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 253, in Deploy endpoints_info) File "/home/japheth/Downloads/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 118, in DeployService return operations.WaitForOperation(self.client.apps_operations, operation) File "/home/japheth/Downloads/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/operations.py", line 70, in WaitForOperation encoding.MessageToPyValue(completed_operation.error))) OperationError: Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy. (0/2 ready, 2 still deploying). ERROR: (gcloud.preview.app.deploy) Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy. (0/2 ready, 2 still deploying).
@WillHayworth Dockerfile看起来像这样
#FROM nginx
FROM eu.gcr.io/myprojectid/nginx_september
COPY nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /var/log/app_engine
RUN mkdir /usr/local/installations
RUN mkdir -p /usr/share/nginx/www/_ah && \
echo "healthy" > /usr/share/nginx/www/_ah/health
ADD www/ /usr/share/nginx/www/
RUN chmod -R a+r /usr/share/nginx/www This is the example from google, notice I have FROM pointing to a custom image which is just the original nginx image but modified with say a command like mkdir /usr/local