Server error without any log

492 views
Skip to first unread message

bbayer

unread,
Sep 8, 2009, 8:42:27 AM9/8/09
to Google App Engine
Sometimes Google App Engine displays an error page. I think it is not
related with my application.

It says
Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this
error message and the query that caused it.

Even report link redirects to App Engine home which it doesnt have any
support related things.

Also sometimes django gives strange DeadlineExceeded error on random
places like on import statements of core django modules. I could see
ViewDoesntExist error which was caused by core modules for example

<class 'django.core.exceptions.ViewDoesNotExist'>: Could not import
views. Error was: cannot import name signals
Traceback (most recent call last):
File "/base/data/home/apps/trendybing/1.336175352323073178/
django_bootstrap.py", line 68, in <module>
main()
File "/base/data/home/apps/trendybing/1.336175352323073178/
django_bootstrap.py", line 65, in main
util.run_wsgi_app(application)
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
util.py", line 76, in run_wsgi_app
result = application(env, _start_response)
File "/base/python_lib/versions/third_party/django-1.0/django/core/
handlers/wsgi.py", line 239, in __call__
response = self.get_response(request)
File "/base/python_lib/versions/third_party/django-1.0/django/core/
handlers/base.py", line 128, in get_response
return self.handle_uncaught_exception(request, resolver, exc_info)
File "/base/python_lib/versions/third_party/django-1.0/django/core/
handlers/base.py", line 160, in handle_uncaught_exception
return callback(request, **param_dict)
File "/base/python_lib/versions/third_party/django-1.0/django/views/
defaults.py", line 24, in server_error
return http.HttpResponseServerError(t.render(Context({})))
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 176, in render
return self.nodelist.render(context)
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 781, in render_node
return node.render(context)
File "/base/python_lib/versions/third_party/django-1.0/django/
template/loader_tags.py", line 97, in render
return compiled_parent.render(context)
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 176, in render
return self.nodelist.render(context)
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 781, in render_node
return node.render(context)
File "/base/python_lib/versions/third_party/django-1.0/django/
template/loader_tags.py", line 24, in render
result = self.nodelist.render(context)
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/base/python_lib/versions/third_party/django-1.0/django/
template/__init__.py", line 781, in render_node
return node.render(context)
File "/base/python_lib/versions/third_party/django-1.0/django/
template/defaulttags.py", line 373, in render
url = reverse(self.view_name, args=args, kwargs=kwargs)
File "/base/python_lib/versions/third_party/django-1.0/django/core/
urlresolvers.py", line 254, in reverse
*args, **kwargs)))
File "/base/python_lib/versions/third_party/django-1.0/django/core/
urlresolvers.py", line 227, in reverse
possibilities = self.reverse_dict.getlist(lookup_view)
File "/base/python_lib/versions/third_party/django-1.0/django/core/
urlresolvers.py", line 169, in _get_reverse_dict
self._reverse_dict.appendlist(pattern.callback, (bits, p_pattern))
File "/base/python_lib/versions/third_party/django-1.0/django/core/
urlresolvers.py", line 133, in _get_callback
raise ViewDoesNotExist, "Could not import %s. Error was: %s" %
(mod_name, str(e))

It seems it couldn't import signal module. I think this kind of things
is result of module caching mechanism of python itself. I am sure
Google engineers try to find efficient way to minimize startup time of
application it self. But if you try to build business over Google App
Engine , you should wait a little bit.

bbayer

unread,
Sep 8, 2009, 2:17:49 PM9/8/09
to Google App Engine
For last 3 hours server response was horrible. All requests are taking
too long and finally DeadlineExceedError occurs. Also I saw lots of
ViewDoesNotExist error related with importing modules. Is there any
chance to fix it. If Django has drawback I will port my app to webapp
or another lightweight framework. (I am using Django version that
already installed on GAE server.)

yobin

unread,
Sep 10, 2009, 11:55:59 AM9/10/09
to Google App Engine
I've met the same problems for a week.

Since my application had run well for several month, I don't think it
is my app's problem.
I am using Django Helper with the Django installed on GAE server.

My app is cnstock6.appspot.com, below is my error logs,it seems that
all error logs is <class
'google.appengine.runtime.DeadlineExceededError'>,
and every error log appears in different place.

Anyone can help me to solve this problem?Thanks a lot.


120.95.162.230 - - [10/Sep/2009:08:44:48 -0700] "GET /xiaonei/
indexdetail/?
xn_sig_in_iframe=1&xn_sig_method=get&xn_sig_time=1252597456237&xn_sig_user=255015566&xn_sig_expires=1252602000&xn_sig_session_key=2.1171b90c403dd7a9650493500d0a1b54.3600.1252602000-255015566&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b58535dc331a309&xn_sig_app_id=24754
HTTP/1.1" 500 0 "http://apps.renren.com/livestock/?
origin=103&_os_type=14" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; SV1; MAXTHON 2.0),gzip(gfe),gzip(gfe)"
"cnstock6.taotaobujue.info"
E 09-10 08:44AM 48.067
<class 'google.appengine.runtime.DeadlineExceededError'>:
Traceback (most recent call last):
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
main.py", line 31, in <module>
InstallAppengineHelperForDjango()
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
appengine_django/__init__.py", line 486, in
InstallAppengineHelperForDjango
PatchDjangoSerializationModules()
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
appengine_django/__init__.py", line 269, in
PatchDjangoSerializationModules
from django.core.serializers import python
File "/base/python_lib/versions/third_party/django-1.0/django/core/
serializers/python.py", line 8, in <module>
from django.core.serializers import base
File "/base/python_lib/versions/third_party/django-1.0/django/core/
serializers/base.py", line 7, in <module>
from django.db import models
File "/base/python_lib/versions/third_party/django-1.0/django/db/
models/__init__.py", line 10, in <module>
from django.db.models.fields.files import FileField, ImageField
File "/base/python_lib/versions/third_party/django-1.0/django/db/
models/fields/files.py", line 7, in <module>
from django.core.files.storage import default_storage
File "/base/python_lib/versions/third_party/django-1.0/django/core/
files/storage.py", line 9, in <module>
from django.utils._os import safe_join
File "/base/python_lib/versions/third_party/django-1.0/django/utils/
_os.py", line 1, in <module>
import os


09-10 08:44AM 04.367 /xiaonei/indexdetail/?
xn_sig_in_iframe=1&xn_sig_method=get&xn_sig_time=1252597428041&xn_sig_user=221266426&xn_sig_expires=1252602000&xn_sig_session_key=2.f4042ec67411185c49f4c7662c88faef.
3600.1252602000-221266426&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b58535dc331a309&xn_sig_app_id=24754
500 29327ms 1146cpu_ms 0kb Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
123.112.35.215 - - [10/Sep/2009:08:44:33 -0700] "GET /xiaonei/
indexdetail/?
xn_sig_in_iframe=1&xn_sig_method=get&xn_sig_time=1252597428041&xn_sig_user=221266426&xn_sig_expires=1252602000&xn_sig_session_key=2.f4042ec67411185c49f4c7662c88faef.
3600.1252602000-221266426&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b58535dc331a309&xn_sig_app_id=24754
HTTP/1.1" 500 0 "http://apps.renren.com/livestock/?origin=103&_hua=50"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322),gzip(gfe),gzip(gfe)" "cnstock6.taotaobujue.info"
E 09-10 08:44AM 33.659
<class 'google.appengine.runtime.DeadlineExceededError'>:
Traceback (most recent call last):
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
main.py", line 31, in <module>
InstallAppengineHelperForDjango()
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
appengine_django/__init__.py", line 486, in
InstallAppengineHelperForDjango
PatchDjangoSerializationModules()
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
appengine_django/__init__.py", line 269, in
PatchDjangoSerializationModules
from django.core.serializers import python
File "/base/python_lib/versions/third_party/django-1.0/django/core/
serializers/python.py", line 8, in <module>
from django.core.serializers import base
File "/base/python_lib/versions/third_party/django-1.0/django/core/
serializers/base.py", line 7, in <module>
from django.db import models
File "/base/python_lib/versions/third_party/django-1.0/django/db/
models/__init__.py", line 10, in <module>
from django.db.models.fields.files import FileField, ImageField
File "/base/python_lib/versions/third_party/django-1.0/django/db/
models/fields/files.py", line 7, in <module>
from django.core.files.storage import default_storage
File "/base/python_lib/versions/third_party/django-1.0/django/core/
files/storage.py", line 10, in <module>
from django.core.files import locks, File
File "/base/python_lib/versions/third_party/django-1.0/django/core/
files/locks.py", line 16, in <module>
"""

218.95.18.43 - - [10/Sep/2009:08:35:15 -0700] "GET /xiaonei/
indexdetail/?
xn_sig_in_iframe=1&xn_sig_method=get&xn_sig_time=1252596870563&xn_sig_user=243184606&xn_sig_expires=1252602000&xn_sig_session_key=2.3115a5a5b446988d7c49b318a922913e.
3600.1252602000-243184606&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b58535dc331a309&xn_sig_app_id=24754
HTTP/1.1" 500 0 "http://apps.renren.com/livestock/?
origin=103&_visitor_id=39" "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; SV1; QQDownload 1.7),gzip(gfe),gzip(gfe)"
"cnstock6.taotaobujue.info"
E 09-10 08:35AM 15.099
<class 'google.appengine.runtime.DeadlineExceededError'>:
Traceback (most recent call last):
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
main.py", line 37, in <module>
import django.core.handlers.wsgi
File "/base/python_dist/lib/python2.5/py_zipimport.py", line 105, in
__init__
if not os.path.isfile(archive):
File "/base/python_dist/lib/python2.5/posixpath.py", line 208, in
isfile
st = os.stat(path)

09-10 08:34AM 37.762 /xiaonei/indexdetail/?
xn_sig_in_iframe=1&xn_sig_method=get&xn_sig_time=1252596873820&xn_sig_user=255015566&xn_sig_expires=1252602000&xn_sig_session_key=2.1171b90c403dd7a9650493500d0a1b54.3600.1252602000-255015566&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b58535dc331a309&xn_sig_app_id=24754
500 32651ms 1166cpu_ms 0kb Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; SV1; MAXTHON 2.0),gzip(gfe),gzip(gfe)
120.95.162.230 - - [10/Sep/2009:08:35:10 -0700] "GET /xiaonei/
indexdetail/?
xn_sig_in_iframe=1&xn_sig_method=get&xn_sig_time=1252596873820&xn_sig_user=255015566&xn_sig_expires=1252602000&xn_sig_session_key=2.1171b90c403dd7a9650493500d0a1b54.3600.1252602000-255015566&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b58535dc331a309&xn_sig_app_id=24754
HTTP/1.1" 500 0 "http://apps.renren.com/livestock/?
origin=103&_os_type=54" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; SV1; MAXTHON 2.0),gzip(gfe),gzip(gfe)"
"cnstock6.taotaobujue.info"
E 09-10 08:35AM 10.378
<class 'google.appengine.runtime.DeadlineExceededError'>:
Traceback (most recent call last):
File "/base/data/home/apps/cnstock6/cocc0722.336240820715932178/
main.py", line 37, in <module>
import django.core.handlers.wsgi
File "/base/python_lib/versions/third_party/django-1.0/django/core/
handlers/__init__.py", line 1, in <module>



On Sep 9, 2:17 am, bbayer <bbaye...@gmail.com> wrote:
> For last 3 hoursserverresponse was horrible. All requests are taking
> too long and finally DeadlineExceedError occurs. Also I saw lots of
> ViewDoesNotExisterrorrelated with importing modules. Is there any
> chance to fix it. If Django has drawback I will port my app to webapp
> or another lightweight framework. (I am using Django version that
> already installed on GAEserver.)
>
> On 8 Eylül, 15:42, bbayer <bbaye...@gmail.com> wrote:
>
>
>
> > Sometimes Google App Engine displays anerrorpage. I think it is not
> > related with my application.
>
> > It says
> >Error:ServerError
> > Theserverencountered anerrorand could not complete your request.
>
> > If the problem persists, please report your problem and mention this
> >errormessage and the query that caused it.
>
> > Even report link redirects to App Engine home which it doesnt have any
> > support related things.
>
> > Also sometimes django gives strange DeadlineExceedederroron random
> > places like on import statements of core django modules. I could see
> > ViewDoesntExisterrorwhich was caused by core modules for example
>
> > <class 'django.core.exceptions.ViewDoesNotExist'>: Could not import
> > views.Errorwas: cannot import name signals
> >     raise ViewDoesNotExist, "Could not import %s.Errorwas: %s" %

Jason C

unread,
Sep 11, 2009, 12:23:19 PM9/11/09
to Google App Engine
We see the same behaviour. The DeadlineExceededError crops up in
arbitrary locations, often within Django modules.

Further, we've seen occasions where the application instance seems to
get a "poorly initialized Django" and then view lookups (e.g., with
reverse()) always fail. The application instance seems to be
permanently damaged and we continue to get errors from it until it is
recycled. I suspect this occurs when the DeadlineExceededError pulls
the rug out from under the initialization, though since it doesn't
always happen, it must just be when it's in a particular location.

j
> > >   File...
>
> read more »

Jason C

unread,
Sep 11, 2009, 12:35:03 PM9/11/09
to Google App Engine
Here is an example that occurred this morning. We use the Google-
supplied Django 1.0, and are using r91 of http://code.google.com/p/google-app-engine-django/,
which presumably is a reasonably common App Engine / Django
deployment. The request that caused this exception was pegged at
28956ms.

<class 'google.appengine.runtime.DeadlineExceededError'>:
Traceback (most recent call last):
File "/base/data/home/apps/myfrontsteps/
sprint13-8578.336245755973553585/main.py", line 37, in <module>
InstallAppengineHelperForDjango()
File "/base/data/home/apps/myfrontsteps/
sprint13-8578.336245755973553585/appengine_django/__init__.py", line
485, in InstallAppengineHelperForDjango
PatchDjangoSerializationModules()
File "/base/data/home/apps/myfrontsteps/
sprint13-8578.336245755973553585/appengine_django/__init__.py", line
268, in PatchDjangoSerializationModules
from django.core.serializers import python
File "/base/python_lib/versions/third_party/django-1.0/django/core/
serializers/python.py", line 8, in <module>
from django.core.serializers import base
File "/base/python_lib/versions/third_party/django-1.0/django/core/
serializers/base.py", line 7, in <module>
from django.db import models
File "/base/python_lib/versions/third_party/django-1.0/django/db/
models/__init__.py", line 9, in <module>
from django.db.models.fields.subclassing import SubfieldBase
File "/base/python_lib/versions/third_party/django-1.0/django/db/
models/fields/subclassing.py", line 6, in <module>
"""

The request has not even reached any of our application code (I
realize that appengine_django is part of our code, but hopefully it is
a lightweight initialization), so I'm not certain how we could
optimize any further.

Looking at this particular trace is misleading; I have lots of
examples of other arbitrary places within this appengine_django/django
initialization where the DeadlineExceededError occurs.

Finally, when we _do_ get a properly inflated application instance
(which we do most of the time), it is blazing fast.

j
> > > >   File...
>
> read more »

johnP

unread,
Sep 11, 2009, 12:56:23 PM9/11/09
to Google App Engine

I'm using Django via AppEnginePatch - and today am seeign a horrible
episode of multiple deadline-exceeded errors as the app is trying to
initialize...

johnP




On Sep 11, 9:35 am, Jason C <jason.a.coll...@gmail.com> wrote:
> Here is an example that occurred this morning. We use the Google-
> supplied Django 1.0, and are using r91 ofhttp://code.google.com/p/google-app-engine-django/,
> ...
>
> read more »

Ernesto Ferro

unread,
Sep 11, 2009, 2:00:09 PM9/11/09
to Google App Engine
I'm having the same issue. I've made a REALLY simple site with django
1.02 (from app engine) trying to find the problem. The only thing that
this app does is return an html with render_to_response. Nothing else
ant yet it fail by deadline, imports or some disk i/o operations.
Does google knows about this? Because it seems like the problem it's
outside the users code.

Regards

Mike Wesner

unread,
Sep 11, 2009, 5:37:57 PM9/11/09
to Google App Engine
Any response from a googler on this? We are seeing this issue also.

thanks!

Ernesto Ferro

unread,
Sep 12, 2009, 2:21:32 PM9/12/09
to Google App Engine
I have the same problem and I found a solution (at least it seems so)
that works for me. If you are using django 1.02 or greater switch to
0.96. If it works for you please post about it.
So far there's no errors in my logs and by now I should have many with
the older version of my app.

Regards

Cameron

unread,
Sep 15, 2009, 10:40:04 AM9/15/09
to Google App Engine
I've been using the standard 0.96 version of django built-in to
appengine with my app and have had the same DeadlineExceededErrors for
the past two weeks. My app has worked fine for the last 9 months.
I've tried the last 5 versions of my app to see if the problem was
related to any code changes I've made, but I get the
DeadlineExceededErrors on all of them, so I don't think it's related
to any of my code.

It definitely seems like django is not getting properly loaded, as all
the errors I've seen seem to be related to django modules not being
found. Here is a one from this morning.

<class 'google.appengine.runtime.DeadlineExceededError'>:
Traceback (most recent call last):
File "/base/data/home/apps/gqueues/beta2-7-9.336205351043982571/
gqueues.py", line 23, in <module>
from controllers.admin import AdminHandler
File "/base/data/home/apps/gqueues/beta2-7-9.336205351043982571/
controllers/admin.py", line 10, in <module>
from controllers.baserequest import BaseRequestHandler
File "/base/data/home/apps/gqueues/beta2-7-9.336205351043982571/
controllers/baserequest.py", line 6, in <module>
from google.appengine.ext.webapp import template
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
template.py", line 65, in <module>
import django.template
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 918, in <module>
add_to_builtins('django.template.defaultfilters')
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 915, in add_to_builtins
builtins.append(get_library(module_name))
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 904, in get_library
mod = __import__(module_name, {}, {}, [''])
File "/base/python_lib/versions/third_party/django-0.96/django/
template/defaultfilters.py", line 5, in <module>
from django.utils.translation import gettext
File "/base/python_lib/versions/third_party/django-0.96/django/utils/
translation/__init__.py", line 1, in <module>
from django.conf import settings
File "/base/python_dist/lib/python2.5/py_zipimport.py", line 105, in
__init__
if not os.path.isfile(archive):
File "/base/python_dist/lib/python2.5/posixpath.py", line 208, in
isfile
st = os.stat(path)


This is very frustrating and it would be nice if a Googler would at
least explain what's going on.

Denis

unread,
Sep 16, 2009, 11:19:54 AM9/16/09
to Google App Engine
The same problem with the default 0.96. This week the number of
DeadlineExceededError s and other random errors in Django packages is
very disappointing. Some times like 5-10% of requests, sometimes all
requests are timed out for 5-10 minutes in a row.

I'm looking for an official explanation.

Nick Winter

unread,
Sep 16, 2009, 4:09:52 PM9/16/09
to Google App Engine
This is mauling us as well (Django 1.0, exact same thing these last
two weeks). A few people asked about it in today's developer chat, but
it was unclear what the problem was. Please star this issue:
http://code.google.com/p/googleappengine/issues/detail?id=1695

johnP

unread,
Sep 16, 2009, 4:20:20 PM9/16/09
to Google App Engine
If they need help diagnosing - I'm sure there are plenty of people who
can provide hundreds or thousands of stack-traces as clues...

:)

bbayer

unread,
Sep 18, 2009, 3:17:15 AM9/18/09
to Google App Engine
I will port my application to webapp but I afraid to see that same
problem will occur with django's templating system. Is there any issue
about that. I am planning to use template tags also.
Reply all
Reply to author
Forward
0 new messages