Problem with Node.js Managed VMs deployment

119 views
Skip to first unread message

Alois Bělaška

unread,
Oct 10, 2015, 10:30:52 AM10/10/15
to Google App Engine
Hi,

I've run into a problem with deployment of node.js managed VM to GAE. Docker container is build successfully, new version established but then the deloy failes with this error:

ERROR: (gcloud.preview.app.deploy) Not enough VMs ready (0/1 ready, 1 failed). The user does not have access to service account 'frien...@appspot.gserviceaccount.com' Deployed Version: 20151010t162759.387751622472188220

This can happen when your application does not start successfully.
Please check your project logs at:

Logs are empty of course.

I have no idea what may be wrong. Can anybody help?

Thank you.

Michael Spainhower

unread,
Oct 10, 2015, 3:01:05 PM10/10/15
to Google App Engine
Have you run your image in a local docker container and logged into it to see whether it works correctly?  If so, what did you find?  If not, I highly recommend this approach.  

Also, have you tried running the app locally using the `gcloud` command? https://cloud.google.com/appengine/docs/managed-vms/sdk#run-local

I am sure you have, but just to double check - you have run `gcloud components update` recently as well right? 

Cheers,
--Spain

Alois Bělaška

unread,
Oct 10, 2015, 3:41:33 PM10/10/15
to Google App Engine
Hey Michael,

I've started with a simple project that I am able to deploy to a new project but I am not able to deploy to one old project.

I can deploy for example go project to the old project without a single problem, the only problem is with managed VM GAE app.

I am using the latest Google Cloud SDK 0.9.81

app 2015.10.05
app-engine-java 1.9.27
app-engine-php  
app-engine-python 1.9.27
beta 2015.10.05
bq 2.0.18
bq-nix 2.0.18
core 2015.10.05
core-nix 2015.09.03
gcloud 2015.10.05
gsutil 4.15
gsutil-nix 4.14
kubectl 
kubectl-linux-x86_64 1.0.6

It looks more like permissions problem with my old project.

HAve you ever encountered such a problem?

Michael Spainhower

unread,
Oct 10, 2015, 3:45:38 PM10/10/15
to Google App Engine
Agree that it looks like a permissions issue based on "The user does not have access to service account ...".  That's why I was interested in whether the image and app worked locally.  I run node.js in managed VMs, but have not encountered your specific problem unfortunately.

Alois Bělaška

unread,
Oct 10, 2015, 3:56:47 PM10/10/15
to Google App Engine
I run some services and database in my project and I need the GAE app to run there because there's no easy way to route network requests from other project GAE app but to use VPN which is not exactly nice solution for me.

I have had some problem enabling the GAE for the project so there may be the root of the problem. I only hope someone will be able to help. 

Nick (Cloud Platform Support)

unread,
Oct 12, 2015, 7:02:21 PM10/12/15
to Google App Engine
Hey Alois, 

This forum isn't really meant for specific-issue technical support. Feel free to post a thread like this on stackoverflow or the public issue tracker (depending on whether you think a solution exists and you just don't know it, or whether you think something is actually going wrong according to what docs say should happen in a given situation).

As a piece of advice before you do that, I think that you might need to check whether the service account 'friendspme@appspot.gserviceaccount.com' is referenced anywhere in the codebase. Also, you should make sure the user you're auth'd as with the SDK has permissions to deploy to the given project.

Alois Bělaška

unread,
Oct 13, 2015, 3:34:32 AM10/13/15
to Google App Engine
Hi Nick,

I am sorry I didn't know. Other posts looked similar to my topic.

It's deinitely permissions problem but not one I can fix myself as there's not way to do so. The problem appears when I use gcloud preview app deploy command. I've had some problem enabling GAE in my google cloud project and this may be just manifestation of that problem. As I mentioned before deploy of Go app to GAE works but deploy of managed VM does not.

It's a kind a deal breaker for me. I would love to make it work. Where should I direct my request?

Thank you. 


On Tuesday, October 13, 2015 at 1:02:21 AM UTC+2, Nick (Cloud Platform Support) wrote:
Hey Alois, 

This forum isn't really meant for specific-issue technical support. Feel free to post a thread like this on stackoverflow or the public issue tracker (depending on whether you think a solution exists and you just don't know it, or whether you think something is actually going wrong according to what docs say should happen in a given situation).

As a piece of advice before you do that, I think that you might need to check whether the service account 'frien...@appspot.gserviceaccount.com' is referenced anywhere in the codebase. Also, you should make sure the user you're auth'd as with the SDK has permissions to deploy to the given project.

Nick (Cloud Platform Support)

unread,
Oct 13, 2015, 12:16:43 PM10/13/15
to Google App Engine
It's quite alright. I can understand how you'd get that impression from reading the post titles. But you'll pretty-universally find that we don't want to be doing technical support in this forum, and within those threads whose titles look similar, describing a specific technical issue, there's a reply from someone at Google advising that specific issue technical support be moved to either a stackexchange site or the public issue tracker. We do monitor many tags on stackexchange sites, and there are also a lot more developers there, so it's absolutely the better place for an issue like this.

A small piece of advice I can offer would be to include a lot of relevant information when you make your report of the issue on either stackexchange or the public issue tracker. Some of that information might be:

* the history of the project you're deploying to
* what kind of code you're deploying
* what you see in the Developers Console "APIs & Auth > Credentials" section?

Alois Bělaška

unread,
Oct 13, 2015, 4:00:37 PM10/13/15
to Google App Engine

Thank you, Nick, will do.


Dne út 13. 10. 2015 18:17 uživatel Nick (Cloud Platform Support) <pay...@google.com> napsal:
--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/H1PQfVDq3bw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/df48f4c1-e356-4ee0-b690-6a20ee1c3551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages