我们刚刚迁移到虚拟机,在部署时,我们在 Java 环境中遇到了问题。错误是创建配置桶失败时出错。
然后尝试了 Google 页面中的所有步骤 - 部署到生产环境。似乎什么都不起作用。(https://cloud.google.com/appengine/docs/managed-vms/sdk)
然后,我们手动尝试在 Google 控制台中创建存储桶。重试了我们的部署,但遇到了相同的错误。
DETAILED Error message in the LOG :: Unable to update:
java.lang.RuntimeException: Fatal problem encountered during deployment. Please refer to the logs for more information.
at com.google.appengine.tools.admin.AppVersionUpload.isServing(AppVersionUpload.java:900)
at com.google.appengine.tools.admin.AppVersionUpload.access$100(AppVersionUpload.java:41)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:779)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:776)
at com.google.appengine.tools.admin.AppVersionUpload.retryWithBackoff(AppVersionUpload.java:1029)
at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:776)
删除图像对我来说是诀窍。
docker rmi <image>
然后:
gcloud preview app deploy --version=my_version my_dir/app.yaml