modxevil / google-cloud-sdk

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

gcloud preview app deploy - "This application does not exist (app_id=u'rate-engine-ws') #296

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I am trying to deploy a java app from a compute engine instance to an app 
engine project with id 'rate-engine-ws'. The catch is the compute engine 
instance is under a different project id.

I think that's the reason that when I run: 
     gcloud --project=rate-engine-ws preview app deploy app.yaml

I get the following error:
     Beginning deployment...
     Updating module [default]...ERROR: (gcloud.preview.app.deploy) Server responded with code [404]:
       Not Found Unexpected HTTP status 404.
       This application does not exist (app_id=u'rate-engine-ws').

I have been able to previously been able to deploy to rate-engine-ws using 
appcfg, but I'm trying to set up a push to deploy system using jenkins and this 
guide:
https://cloud.google.com/tools/cloud-repositories/docs/push-to-deploy

I believe I'm getting this error because the user does not have edit 
permissions to rate-engine-ws. I have created a service account on the compute 
engine project and given it edit permissions on rate-engine-ws, but I'm not 
sure how to run the gcloud preview app deploy using that service account.

Original issue reported on code.google.com by graha...@londonhydro.com on 8 Oct 2015 at 6:22

GoogleCodeExporter commented 8 years ago
Hey,

To make gcloud use a service account you can download the service account 
credentials json file, and pass it to gcloud with:

gcloud auth activate-service-account --key-file <file>

Original comment by dlor...@google.com on 8 Oct 2015 at 6:34

GoogleCodeExporter commented 8 years ago
That worked perfectly. Thank you!

Original comment by graha...@londonhydro.com on 8 Oct 2015 at 7:03

GoogleCodeExporter commented 8 years ago
Glad we could help!

Original comment by z...@google.com on 8 Oct 2015 at 7:04