venf2k / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Permission error while running gcloud preview app deploy #743

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command [gcloud preview app deploy].

What steps will reproduce the problem?
$ gcloud preview app deploy ./default/app.yaml ./default/cron.yaml 
./default/dispatch.yaml ./update/module.yaml

What is the expected output? What do you see instead?
I expect the deployment to succeed. Instead I get:
Beginning deployment...

Verifying that Managed VMs are enabled and ready.
Building and pushing image for module [default]
ERROR: gcloud crashed (HttpError): HttpError accessing 
<https://cloudbuild.googleapis.com/v1/projects/chromiumperfstats/builds?alt=json
>: response: <{'status': '403', 'alternate-protocol': '443:quic', 
'content-length': '126', 'x-xss-protection': '1; mode=block', 
'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 
'Origin, X-Origin, Referer', 'server': 'ESF', '-content-encoding': 'gzip', 
'cache-control': 'private', 'date': 'Fri, 15 Apr 2016 17:49:59 GMT', 
'x-frame-options': 'SAMEORIGIN', 'alt-svc': 'quic=":443"; ma=2592000; 
v="32,31,30,29,28,27,26,25"', 'content-type': 'application/json; 
charset=UTF-8'}>, content <{
  "error": {
    "code": 403,
    "message": "The caller does not have permission",
    "status": "PERMISSION_DENIED"
  }
}

Please provide any additional information below.

Full stack trace (formatted):
Trace:
googlecloudsdk/gcloud_main.py:169
 gcloud_cli.Execute()
googlecloudsdk/calliope/cli.py:654
 result = args.cmd_func(cli=self, args=ar...
googlecloudsdk/calliope/backend.py:1401
 resources = command_instance.Run(args)
surface/preview/app/deploy.py:507
 config_cleanup)
googlecloudsdk/api_app/deploy_command_util.py:195
 storage_client)
googlecloudsdk/api_app/deploy_command_util.py:245
 image.tag, cloudbuild_client)
googlecloudsdk/api_app/cloud_build.py:150
 logsBucket=logs_bucket,
googlecloudsdk/third_party/apis/cloudbuild/v1/cloudbuild_v1_client.py:198
 config, request, global_params=global_pa...
googlecloudsdk/third_party/apitools/base/py/base_api.py:708
 return self.ProcessHttpResponse(method_c...
googlecloudsdk/third_party/apitools/base/py/base_api.py:714
 self.__ProcessHttpResponse(method_config...
googlecloudsdk/third_party/apitools/base/py/base_api.py:586
 raise exceptions.HttpError.FromResponse(...
HttpError: HttpError accessing 
<https://cloudbuild.googleapis.com/v1/projects/chromiumperfstats/builds?alt=json
>: response: <{'status': '403', 'alternate-protocol': '443:quic', 
'content-length': '126', 'x-xss-protection': '1; mode=block', 
'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 
'Origin, X-Origin, Referer', 'server': 'ESF', '-content-encoding': 'gzip', 
'cache-control': 'private', 'date': 'Fri, 15 Apr 2016 17:49:59 GMT', 
'x-frame-options': 'SAMEORIGIN', 'alt-svc': 'quic=":443"; ma=2592000; 
v="32,31,30,29,28,27,26,25"', 'content-type': 'application/json; 
charset=UTF-8'}>, content <{
Installation information:

Google Cloud SDK [105.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)  [GCC 4.2.1 
(Apple Inc. build 5666) (dot 3)]]
Python Location: 
[/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents
/MacOS/Python]
Site Packages: [Disabled]

Installation Root: [/Users/dtu/google-cloud-sdk]
Installed Components:
  core: [2016.04.11]
  app-engine-python: [1.9.35]
  core-nix: [2016.03.28]
  gcloud: []
  gsutil-nix: [4.18]
  gsutil: [4.18]
  bq: [2.0.24]
  bq-nix: [2.0.24]
System PATH: 
[/Users/dtu/google-cloud-sdk/bin:/Library/Frameworks/Python.framework/Versions/2
.7/bin:/opt/local/bin:/opt/local/sbin:/usr/local/git/current/bin:/usr/local/bin:
/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Users/dtu/depot_tools/]
Cloud SDK on PATH: [True]

Installation Properties: [/Users/dtu/google-cloud-sdk/properties]
User Config Directory: [/Users/dtu/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: 
[/Users/dtu/.config/gcloud/configurations/config_default]

Account: [dtu@google.com]
Project: [chromiumperfstats]

Current Properties:
  [core]
    project: [chromiumperfstats]
    account: [dtu@google.com]
    disable_usage_reporting: [False]
  [app]
    suppress_change_warning: [true]

Logs Directory: [/Users/dtu/.config/gcloud/logs]
Last Log File: [/Users/dtu/.config/gcloud/logs/2016.04.15/10.49.49.341154.log]

Original issue reported on code.google.com by d...@google.com on 15 Apr 2016 at 5:54

GoogleCodeExporter commented 8 years ago
Can you verify that your project has a cloudbuild.gserviceaccount.com service 
account with EDITOR permissions? You can do this by navigating to the Cloud 
Console > Permissions page (the name you see may be slightly different, like 
"Admin").

If you disable and re-enable the Container Builder API from the Cloud Console, 
the service account should re-appear. Do you mind doing that and trying again?

Original comment by z...@google.com on 19 Apr 2016 at 3:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
That fixed it for me, thanks!

Original comment by d...@google.com on 28 Apr 2016 at 9:05