gcloud app deploy command broken

773 views
Skip to first unread message

Assistant RDV

unread,
Apr 27, 2021, 9:09:10 AM4/27/21
to Google App Engine
hello, 
I am looking for help for an issue of GAE deploy

I switched branch of my local repo while executing command "gcloud app deploy"

Now I get an error message every time I run the command.

Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 0 files to Google Cloud Storage                ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build dfc8fb71-1240-4de0-9b16-bc4260f02bc6 status: FAILURE
Build error details: Failed to download at least one file. Cannot continue.


The error just repeat and I cannot get rid of it . 
Does anyone have any idea about this problem?

Thanks

Shawn Wu

unread,
Apr 27, 2021, 2:40:54 PM4/27/21
to Google App Engine
please add --verbosity(https://cloud.google.com/sdk/gcloud/reference#--verbosity) flag to debug to pull out the error details for further understanding

Assistant RDV

unread,
Apr 27, 2021, 6:55:33 PM4/27/21
to Google App Engine
Hi, 
there is the log of Cloud Build. 
It seem that 2 files are corrupted in bold font. 

Is there any command I can use to flush existing file/image and upload brand new files?

Thanks



starting build "80322687-0c4e-4b52-bd98-9441d3472263"

FETCHSOURCE
BUILD
Starting Step #0 - "fetcher"
Step #0 - "fetcher": Already have image (with digest): gcr.io/cloud-builders/gcs-fetcher
Step #0 - "fetcher": Processing 7035 files.
Step #0 - "fetcher": Failed to fetch gs://staging.MyDomain-285409.appspot.com/c01d687f09edc9d5591355550bd3053ed0ce0b02, will no longer retry: fetching "gs://staging.MyDomain-285409.appspot.com/c01d687f09edc9d5591355550bd3053ed0ce0b02" with timeout 1h0m0s to temp file "/workspace/.download/staging.MyDomain-285409.appspot.com-c01d687f09edc9d5591355550bd3053ed0ce0b02-197704-2": order/forms.py SHA mismatch, got "9bf9c4edd1510f1544344c22d886a11655fdd3b7", want "c01d687f09edc9d5591355550bd3053ed0ce0b02"
Step #0 - "fetcher": Failed to fetch gs://staging.MyDomain-285409.appspot.com/c1b08832160d6368663495576f8b636d11849a1d, will no longer retry: fetching "gs://staging.MyDomain-285409.appspot.com/c1b08832160d6368663495576f8b636d11849a1d" with timeout 1h0m0s to temp file "/workspace/.download/staging.MyDomain-285409.appspot.com-c1b08832160d6368663495576f8b636d11849a1d-31499-2": order/views.py SHA mismatch, got "037cb47b5236eff2edba89126193de9689f91583", want "c1b08832160d6368663495576f8b636d11849a1d"
Step #0 - "fetcher": Failed to download at least one file. Cannot continue.
Finished Step #0 - "fetcher"
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcs-fetcher" failed: step exited with non-zero status: 1

Assistant RDV

unread,
May 2, 2021, 9:06:49 AM5/2/21
to Google App Engine
OK
problem resolved.

Root cause: 
Content of the staging bucket of Cloud Storage was corrupted.

Solution: 
Delete staging bucket from Cloud storage and run "gcloud app deploy" command again. 
So the deploy command will create a new bucket and upload file from scratch.
Reply all
Reply to author
Forward
0 new messages