简体   繁体   中英

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. 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. i tried reverting Cloud SDK version but still the issue persists.

Project Id is of format- google.com:abc-xyz

Cloud Build Log Snippet below:

....

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}

The causes an error for Container Registry because it wants eg

[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. You should just use ${PROJECT} without any domain prefixing.

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. Guess (?.).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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