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


On Sep 11, 10:23 am, Jason C <jason.a.coll...@gmail.com> wrote:
> 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
>
> On Sep 10, 9:55 am, yobin <yyo...@gmail.com> wrote:
>
>
>
> > 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.1171b90c403dd7a965 
> > 0493500d0a1b54.3600.1252602000-255015566&xn_sig_added=1&xn_sig_api_key=75da 
> > d05d3a794d4d9b58535dc331a309&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.f4042ec67411185c49 
> > f4c7662c88faef.
> > 3600.1252602000-221266426&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b5 
> > 8535dc331a309&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.f4042ec67411185c49 
> > f4c7662c88faef.
> > 3600.1252602000-221266426&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b5 
> > 8535dc331a309&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.3115a5a5b446988d7c 
> > 49b318a922913e.
> > 3600.1252602000-243184606&xn_sig_added=1&xn_sig_api_key=75dad05d3a794d4d9b5 
> > 8535dc331a309&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.1171b90c403dd7a965 
> > 0493500d0a1b54.3600.1252602000-255015566&xn_sig_added=1&xn_sig_api_key=75da 
> > d05d3a794d4d9b58535dc331a309&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.1171b90c403dd7a965 
> > 0493500d0a1b54.3600.1252602000-255015566&xn_sig_added=1&xn_sig_api_key=75da 
> > d05d3a794d4d9b58535dc331a309&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
> > > > Traceback (most recent call last):
> > > >   File...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to