dutchdukes
dutchdukes

Reputation: 395

gcloud deployment fails with BadFileExceptions

I migrated an AppEngine project to Google Cloud Endpoints V2 and started using Google Cloud SDK and Maven for this project.

Unfortunately, deployment always fails. When mvn appengine:deploy is done, I get similar errors for (all) files that are uploaded:

[INFO] GCLOUD: MaxRetrialsException: last_result=(None, (class 'googlecloudsdk.calliope.exceptions.BadFileException', BadFileException('Cloud storage upload failure. Uploaded file does not match local file: XXX\target\appengine-staging\__static__/scripts/modules.js. Please retry.',), traceback object at 0x0AE158A0)), last_retrial=3, time_pass ed_ms=2522,time_to_wait=0

I wonder why the uploaded files don't the match local files at my machine.

I retried it several times, but it always failed. Between the deploy attempts the target directory and the staging area in https://console.cloud.google.com/storage were deleted, but this did not help.

Development environment:

Anyone an idea? Thanks in advance.

Upvotes: 1

Views: 770

Answers (1)

dutchdukes
dutchdukes

Reputation: 395

It appeared that the Project configuration in Eclipse was not up-to-date with the Maven pom.xml, after updating it and removing the staging area/bucket from https://console.cloud.google.com/storage, deployment went fine.

Note when this even fails: try to remove the staging areas from your local machine as well and deploy with Eclipse - Right mouse click on project - Deploy to App Engine Standard.

Upvotes: 3

Related Questions