Hi,

I have a strange problem in my application. Everything works normally
for days, but then suddenly there are bursts of DeadlineEceededError
Exceptions (like 20 in a row). All are thrown during datastore put
operation. But interestingly in many different types of datastore
puts. And the error happens in calls that usually never take more than
about 250ms.

Also it says in the error log:

A serious 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. If you see this
message frequently, you may be throwing exceptions during the
initialization of your application. (Error code 104)

Some additional information:
- I am using the channel api in the application
- My cpu-quota reaches about 50% at the end of the day
- The problem has been persisting for about a month now, it happens on
average 3 times a week
- The call that triggers the DeadlineExceededError is a trivial
database lookup. Timing of a typical call without the error is: ms=192
cpu_ms=243 api_cpu_ms=220 cpm_usd=0.006793

Here is the error-log message:

01-15 12:22PM 01.342 [...] 500 31283ms 208cpu_ms 21api_cpu_ms 0kb
gzip(gfe)
194.29.236.66 - - [15/Jan/2011:12:22:32 -0800] "GET [...] HTTP/1.1"
500 0 - "gzip(gfe)" "[...]" ms=31283 cpu_ms=208 api_cpu_ms=22
cpm_usd=0.005802 pending_ms=2629 exit_code=104
E 01-15 12:22PM 32.601

And the framework-part of the stacktrace from the error-log:

<class 'google.appengine.runtime.DeadlineExceededError'>:
Traceback (most recent call last):

[...]
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/db/__init__.py", line 895, in put
    return datastore.Put(self._entity, config=config)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/datastore.py", line 404, in Put
    return _GetConnection().async_put(config, entities,
extra_hook).get_result()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_rpc.py", line 601, in get_result
    self.check_success()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_rpc.py", line 570, in check_success
    self.wait()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_rpc.py", line 560, in wait
    apiproxy_stub_map.UserRPC.wait_all(self.__rpcs)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/apiproxy_stub_map.py", line 617, in wait_all
    finished = cls.wait_any(rpcs)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/apiproxy_stub_map.py", line 593, in wait_any
    running.__rpc.Wait()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/apiproxy_rpc.py", line 112, in Wait
    rpc_completed = self._WaitImpl()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
runtime/apiproxy.py", line 116, in _WaitImpl
    rpc_completed = _apphosting_runtime___python__apiproxy.Wait(self)

W 01-15 12:22PM 32.611
A serious 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. If you see this
message frequently, you may be throwing exceptions during the
initialization of your application. (Error code 104)

Any help would be appreciated.

Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to