I'm seeing 500 status and 204 error code.

232 views
Skip to first unread message

Nicolas Enriquez

unread,
Sep 5, 2015, 10:36:19 AM9/5/15
to Google App Engine
Hi folks!

I'm seeing a lot of requests with 500 response code. There are only one line on file log:

A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)

Addinialy, I can see a weird appengine's auto log line. I'm using Python 2.7 with threading on and 5 idle instances:

190.210.97.5 - - [04/Sep/2015:10:00:21 -0700] "POST /api/v1/ecclaro/sondeos/event HTTP/1.1" 500 0 - "Java/1.6.0_24" "xxxxxxxxxxx.appspot.com" ms=4301 cpu_ms=0 pending_ms=942 exit_code=204 instance=00c61b117c96c7c9c0bec141a97c4d4f8ebb5189 app_engine_release=1.9.26 

This happens more often when the traffic on my application is increasing. And often happen with some resources. I don't know to do. Because I can't see low level error logs. My assumption is it's a runtime failure of python but I don't know.

Anyone got any ideas?

Regards

Nick (Cloud Platform Support)

unread,
Sep 8, 2015, 1:18:45 PM9/8/15
to Google App Engine
Hey Nicolas,

Given that this is a specific technical issue and not a more general discussion-thread, it's somewhat off-topic here, although I'll be happy to help as much as I can. Feel free to post such questions to stackoverflow in future, since we also monitor there and you'll find many more users who are ready and willing to help.

Error Code 204, from what I can read in previous threads, seems to denote some kind of uncaught error in your application or its runtime. Are you using Managed VMs or App Engine python? Secondly, how low is your log level set in the Developers Console viewer? Perhaps there are logs you aren't seeing?

Best wishes,

Nick

Nicolas Enriquez

unread,
Sep 9, 2015, 10:39:00 AM9/9/15
to Google App Engine
Hi nick.

Im sorry for the offtopic.
Im using App Engine python, and my log level was * (all levels) when I'm seeing those errors.

Thanks!

Nick (Cloud Platform Support)

unread,
Sep 10, 2015, 6:51:44 PM9/10/15
to Google App Engine
Hi Nicolas,

Alright, so given that this appears to have disproved the simplest explanation, it looks as though it could be something more interesting. From reading elsewhere, it appears it could be this is an error which wasn't caught in your app's runtime, although not in the main request-handling thread. Do you use any task queues or cron tasks, threading or the "deferred" module? 

Sincerely,

Nick

Nicolas Enriquez

unread,
Sep 11, 2015, 3:03:20 PM9/11/15
to Google App Engine
HI Nick,

Thanks for your attention!
Yes, we're using crons and task queues. But, this kind of error occurs in resources whether they're related to crons and tasks or not.
I've increased the instance's class from default to F2 and this kind of errors occurs with minor frequency. Maybe, it could be a clue.
Regards.

--
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/8R0iaYnnmbg/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/b8fb596b-876d-4c39-92b4-75cff68be1d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nick (Cloud Platform Support)

unread,
Sep 14, 2015, 4:48:52 PM9/14/15
to Google App Engine
Hey Nicolas,

The issue shouldn't generally be related to memory, although I'm unsure if it's strictly impossible that an increase of memory or CPU might not help. If you'd like more in-depth troubleshooting on this, feel free to file a public issue tracker issue with Type-Production, and your app id, and we may be able to look into it deeper to find the exact cause of the 204 error code.

Best wishes,

Nick
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.

Nicolas Enriquez

unread,
Sep 15, 2015, 8:17:59 AM9/15/15
to Google App Engine
Great that'll very good for us. I'll do it.
In fact, it could be a great idea for all apps. Maybe app engine's log could show  the error trace with more information for this kinds of errors.

Anyway, thanks a lot. Your time was helpful for us!

Thanks a lot.

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.

--
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/8R0iaYnnmbg/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.

Nick (Cloud Platform Support)

unread,
Sep 16, 2015, 7:21:59 PM9/16/15
to Google App Engine
Hey Nicolas,

No worries, glad to have been of help! Best of luck with the next step.

Sincerely,

Nick
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.

--
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/8R0iaYnnmbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages