venf2k / google-cloud-sdk

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

gcloud preview app deploy unexpectedly fails with 403 #754

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Deploy to AppEngine using `gcloud preview app deploy

What is the expected output? What do you see instead?
The expected output would be a successful deployment of the updated module, 
instead I see `403: The caller does not have permission` errors.

What is the output of 'gcloud info'?

Google Cloud SDK [105.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Oct 23 2015, 19:19:21)  [GCC 4.2.1 Compatible 
Apple LLVM 7.0.0 (clang-700.0.59.5)]]
Python Location: 
[/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/C
ontents/MacOS/Python]
Site Packages: [Disabled]

Installation Root: [/Users/nicolasritz/google-cloud-sdk]
Installed Components:
  core: [2016.04.11]
  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/nicolasritz/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:
/sbin:/Users/nicolasritz/Library/Android/sdk/platform-tools/]
Cloud SDK on PATH: [True]

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

Account: [[n.........@gmail.com] (changed)
Project: [citric-abbey-120520]

Current Properties:
  [core]
    project: [citric-abbey-120520]
    account: [n.........@gmail.com] (changed)
    disable_usage_reporting: [True]
  [app]
    stop_previous_version: [true]
    suppress_change_warning: [true]
  [compute]
    region: [us-central1]
    zone: [us-central1-c]

Logs Directory: [/Users/nicolasritz/.config/gcloud/logs]
Last Log File: 
[/Users/nicolasritz/.config/gcloud/logs/2016.04.18/15.18.22.664814.log]

Please provide any additional information below.

Original issue reported on code.google.com by Nicolas....@gmail.com on 18 Apr 2016 at 10:23

GoogleCodeExporter commented 8 years ago
I can deploy other apps using my same credentials to another project.

Original comment by Nicolas....@gmail.com on 19 Apr 2016 at 1:33

GoogleCodeExporter commented 8 years ago
Can you paste the full 403 error? Knowing at which phase of deployment you get 
the 403 would be helpful here.

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

GoogleCodeExporter commented 8 years ago
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/citric-abbey-120520/builds?alt=js
on>: 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': 'Tue, 19 Apr 2016 15:37:23 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"
  }
}
>

Original comment by Nicolas....@gmail.com on 19 Apr 2016 at 3:38

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:41

GoogleCodeExporter commented 8 years ago
I was owner of the project but not listed also as editor. I added myself as 
editor but the problem persists.

After re/enabling the Counter Build API it works now.

Thank you!!

Original comment by Nicolas....@gmail.com on 19 Apr 2016 at 4:09

GoogleCodeExporter commented 8 years ago
Thanks for keeping us updated; glad that it works now.

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