简体   繁体   English

谷歌云部署失败-Java 11,cloud sdk 288.0.0,builder:java11_20200223_11_0_RC00

[英]Google Cloud Deployment Failure-Java 11,cloud sdk 288.0.0 ,builder:java11_20200223_11_0_RC00

I'm trying to deploy a Java 11 Maven project in App Engine(Standard), using mvn appengine:deploy command.我正在尝试使用mvn appengine:deploy命令在 App Engine(标准)中部署 Java 11 Maven 项目。 It was successful until last week.直到上周才成功。 This week after Google cloud sdk got updated to 288.0.0 the deployment is failing with below error.本周在谷歌云 sdk 更新到 288.0.0 后,部署失败并出现以下错误。 i tried reverting Cloud SDK version but still the issue persists.我尝试恢复 Cloud SDK 版本,但问题仍然存在。

Project Id is of format- google.com:abc-xyz项目 ID 的格式为 - google.com:abc-xyz

Cloud Build Log Snippet below: Cloud Build 日志片段如下:

....

Finished Step #2 - "detector"

Starting Step #3 - "analyzer"

Step #3 - "analyzer": Already have image (with digest): us.gcr.io/gae-runtimes/buildpacks/java11/builder:java11_20200223_11_0_RC00

Step #3 - "analyzer": ERROR: failed to access previous image: could not parse reference: us.gcr.io/**google.com:abc-xyz**/app-engine-tmp/ttl-7d/default/buildpack-app:latest

Finished Step #3 - "analyzer"

ERROR

ERROR: build step 3 "us.gcr.io/gae-runtimes/buildpacks/java11/builder:java11_20200223_11_0_RC00" failed: step exited with non-zero status: 1

-Thanks -谢谢

Your error appears to be a result of the project ID google.com:${ID}您的错误似乎是项目 ID google.com:${ID}的结果

The causes an error for Container Registry because it wants eg这会导致 Container Registry 出错,因为它想要例如

[us.]gcr.io/${PROJECT}/${IMAGE}...

but it's getting但它越来越

[us.]gcr.io/google.com:${PROJECT}..

IIRC google.com: is a defunct method of specifying projects. IIRC google.com:是指定项目的已失效方法。 You should just use ${PROJECT} without any domain prefixing.您应该只使用${PROJECT}而不使用任何域前缀。

Hmmm... you said that the project is in production and this used to work.嗯...您说该项目正在生产中,并且曾经可以正常工作。 I think this is possibly (effectively) a breaking change for you.我认为这可能(有效地)对你来说是一个突破性的变化。 I'll Google it but, using domain prefixes ( google.com: ) used to be a thing in GCP and perhaps this is now formally deprecated.我会用谷歌搜索它,但是使用域前缀( google.com: )曾经是 GCP 中的一个东西,也许现在已经正式弃用了。 Guess (?.).猜测 (?。)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM