Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`gcloud preview app deploy` gives MaxRetrialsException in version 105.0.0

When I run gcloud preview app deploy with Cloud SDK version 105.0.0, I get the following error message:

ERROR: gcloud crashed (MaxRetrialsException): last_result=(None, (<class 'googlecloudsdk.calliope.exceptions.BadFileException'>, BadFileException('[.../source-context.json] not found or not accessible',), <traceback object at 0x7f7bb4ab07e8>)), last_retrial=3, time_passed_ms=1,time_to_wait=0
like image 442
Zachary Newman Avatar asked Apr 14 '16 14:04

Zachary Newman


People also ask

How does gcloud app deploy work?

By default, the gcloud app deploy command deploys only the app. yaml file in your current directory. Whenever you run this command, App Engine generates a unique ID for the version that you deploy, deploys the version to the Cloud project you configured the gcloud CLI to use, and routes all traffic to the new version.

How long does gcloud app deploy take?

This is required because Cloud Build build steps and builds have a default timeout of 10 minutes and App Engine deployments could take longer than that to complete. Specifying a longer timeout will make sure that the build doesn't timeout if gcloud app deploy takes longer than 10 minutes to complete.

How do I know what version of Google Cloud SDK I have?

The first thing to do after successful installation is open your command line and type “gcloud” to check whether Cloud SDK has installed perfectly.


1 Answers

This is a known issue, and is fixed in the 106.0.0 Cloud SDK release. Please update to that release.

If you cannot, work around by running:

gcloud config set app/use_gsutil true

This particular issue happens when using gcloud to deploy to a 'standard' (as opposed to a 'managed VM' or 'flexible') App Engine app that has a .git directory.

like image 76
Zachary Newman Avatar answered Oct 13 '22 21:10

Zachary Newman