Anyone facing issue with deployment using service account ?

48 views
Skip to first unread message

Pyang djo

unread,
Sep 20, 2016, 1:42:54 PM9/20/16
to Google App Engine
Is anyone experiencing deployment issues with node.js + Service-Account deployment ?

I am using node js with flexible environment and setup a service account.
Permissions given are 'owner and editor' given to service-account email address.
But I am unable to deploy using service account. App deploys fine if I use gmail id instead of service account.


Thank you,

Evan Jones

unread,
Sep 20, 2016, 5:24:00 PM9/20/16
to Google App Engine
I'm not using Node JS, but we are using the Python flexible environment with a service account. It needs to have the Editor role for the project. We authenticate it with:

gcloud auth activate-service-account (service account email) --key-file (file.json)

gcloud config set project (projectid)


Sorry this probably isn't very helpful, but it is possible to make it work! For debugging gcloud things, I've found running with the following options helps: --log-http --verbosity debug


Good luck!


Evan

Pyang djo

unread,
Sep 21, 2016, 9:16:18 AM9/21/16
to Google App Engine
Thank you Evan --log-http helped me narrow down the issue.

There was an issue later but I think it is ongoing dev work from google that caused it.
It works well now. 

Thank you.

Pyang djo

unread,
Sep 21, 2016, 9:18:11 AM9/21/16
to Google App Engine
Hi Evan,

Thank you very much for suggesting --log-http : it asked me to enable google-app-engine admin related api. I was using verbosity but have managed to miss this crucial logging information.

after enabling the required api - gcloud deploy is crashing in terminal 

DEBUG: Response content was invalid ('ascii' codec can't decode byte 0x8b in position 231: ordinal not in range(128)), retrying




On Tuesday, September 20, 2016 at 10:24:00 PM UTC+1, Evan Jones wrote:

Evan Jones

unread,
Sep 21, 2016, 5:41:30 PM9/21/16
to Google App Engine
Awesome! I'm glad that helped!

Evan
Reply all
Reply to author
Forward
0 new messages