gcloud app deploy works fine locally but fails when it runs using 
gcr.io/cloud-builders/gcloud 
with the following error:

Do you want to continue (Y/n)? 
DEBUG: No bucket specified, retrieving default bucket.
DEBUG: Using bucket [gs://staging.welovesailing-117.appspot.com].
Beginning deployment of service [default]...
INFO: Ignoring directory [.sass-cache]: Directory matches ignore regex.
DEBUG: function takes exactly 5 arguments (1 given)
Traceback (most recent call last):
File "/builder/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 
987, in Execute
resources = calliope_command.Run(cli=self, args=args)
File "/builder/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", 
line 789, in Run
resources = command_instance.Run(args)
File "/builder/google-cloud-sdk/lib/surface/app/deploy.py", line 90, in Run
parallel_build=False)
File 
"/builder/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", 
line 626, in RunDeploy
service_deployed = True
File "/builder/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", 
line 586, in __exit__
exceptions.reraise(prev_exc_type(message), tb=prev_exc_trace)
TypeError: function takes exactly 5 arguments (1 given)
ERROR: gcloud crashed (TypeError): function takes exactly 5 arguments (1 
given)

The same service account deploys other services fine so I don't believe 
it's a permission error that is causing this. The gcloud versions in Cloud 
Build matches my local gcloud versions, and I get the above error when 
running either cloud-build-local or when triggered within Cloud Build. I 
tried looking through all the log files I could find but couldn't find any 
better error message than the above.

The Cloud Build step that fails is:

- name: 'gcr.io/cloud-builders/gcloud'
  args: 
['app','deploy','app.yaml','--project=$PROJECT_ID','--verbosity=debug']
  env: ['PROJECT_ROOT=app-web']


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2e396405-5e13-4ff1-a439-974cd24fa031%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Craig Saville
    • [google-appen... 'George (Cloud Platform Support)' via Google App Engine
      • [google-a... Craig Saville
        • [goog... 'George (Cloud Platform Support)' via Google App Engine
          • [... Craig Saville
            • ... 'George (Cloud Platform Support)' via Google App Engine

Reply via email to