Anyone facing issue with deployment using service account ?

觀看次數:48 次
跳至第一則未讀訊息

Pyang djo

未讀,
2016年9月20日 下午1:42:5420/9/2016
收件者︰ 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

未讀,
2016年9月20日 下午5:24:0020/9/2016
收件者︰ 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

未讀,
2016年9月21日 上午9:16:1821/9/2016
收件者︰ 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

未讀,
2016年9月21日 上午9:18:1121/9/2016
收件者︰ 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

未讀,
2016年9月21日 下午5:41:3021/9/2016
收件者︰ Google App Engine
Awesome! I'm glad that helped!

Evan
回覆所有人
回覆作者
轉寄
0 則新訊息