App Engine Flex "Error: Server Error" occurs often, how to find cause?

6,524 views
Skip to first unread message

Nickolas Daskalou

unread,
Mar 2, 2017, 7:19:16 PM3/2/17
to Google App Engine
Hi,

If we hit our Flexible environment service (Python 3 runtime) with a relatively low concurrency level using ApacheBench, we get this returned more often than not:

Error: Server Error

The server encountered a temporary error and could not complete your request.

Please try again in 30 seconds.


I can't seem to find any information in any of logs about why this is occurring.

Is there a way to get the cause of the above page being returned, whether it be via the logs or otherwise?

Thanks,
Nick

Nick (Cloud Platform Support)

unread,
Mar 3, 2017, 10:40:17 AM3/3/17
to Google App Engine

Hey Nickolas,


This forum should be used to post general discussion threads about the platform, services, design patterns, etc., and a specific-issue question like this should be posted to Stack Overflow, although maybe we could gather more information before that, as in this state it seems there's not quite enough information for anyone to begin working on it. I have some lines of investigation which might lead to a better understanding:

1 .This could be a case of not inspecting the logs with the right logs level - are you sure you're viewing "All logs", and not just "stdout, stderr"? 



2. You might also want to check whether you have any logs for the resource "Cloud HTTP Load Balancer" as opposed to "GAE Application" 

3. A final thing to check would be the headers attached to the response - specifically looking to see what the "server" header says - to determine whether this response is generated by our machines or your own. It seems to look like an error that our infrastructure generates, not your app, but it's good to check.

Let me know what you find, and feel free to ask any further questions or provide any information you think may be relevant.

Cheers,

Nick
Cloud Platform Community Support

Nickolas Daskalou

unread,
Mar 4, 2017, 7:35:36 PM3/4/17
to Google App Engine
Thanks for those suggestions Nick, I will let you know if I have any other questions 👍

Nick


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a944a61c-c6bd-4022-841f-9fabe5ae9bf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alon Schwartzman

unread,
May 10, 2017, 1:06:51 PM5/10/17
to Google App Engine
Hi Nick.

I just deployed a node js app and I'm experiencing the same issue.

Usingt the Stackdriver logs i can see the instance fails to start my app.

read-function of plugin `tail-0' failed. Will suspend it for 480.000 seconds."   

Can you help?

Thanks 

Nick (Cloud Platform Support)

unread,
May 10, 2017, 1:58:03 PM5/10/17
to google-a...@googlegroups.com
Hey Alon,

From what I can see online, it seems that error comes from collectd, a logging service running on the instance. Can you try to run the docker container for your app locally and see what happens? Here are the steps:

1. Generate the Dockerfile if you don't already have one:
 
gcloud beta app gen-config --custom

2. Build a docker image from the Dockerfile:

docker build -t myappcontainer .

3. Run a docker container using the docker image

 docker run -p 127.0.0.1:8080:8080 myappcontainer

You can then observe the container starting up, or see if there's an error when you send a request to 8080 (note that 8080 is the port most apps listen on, but you might need to use another port if your app doesn't use 8080).

Let me know how it goes,

Cheers,

Nick
Cloud Platform Community Support

nare...@robosystems.com

unread,
Oct 5, 2018, 10:29:35 AM10/5/18
to Google App Engine
Hi ,

I am also facing the same issue in the App engine standard environment, could you please suggest us.
find the below issue.

Error: Server Error

The server encountered an error and could not complete your request.

Please try again in 30 seconds.


Thanks,

Narendra

George (Cloud Platform Support)

unread,
Oct 5, 2018, 3:03:09 PM10/5/18
to Google App Engine
Hello Narendra, 

Your issue might well be different from the initial issue on this thread. You are encouraged to open a separate issue in the Public Issue Tracker, with all needed detail, including relevant logs, details about your application, such as programming language used, entire copies of related error messages, output of gcloud info. 

If you would like us to have a more in-depth look at your issue, you may write me a private message with your project ID. You get to the private message frame from the reply button's drop-down menu, situated at the top right of the message window.  
Reply all
Reply to author
Forward
0 new messages