[google-appengine] Re: Outage of site due to "cannot import name datastore_stub_util"

2010-10-14 Thread Anand
We are facing same issue from yesterday evening.. some time it throws
error while loading the module and sometime deadline exceed error.
There was no change in the application as such and and something at
the infrastructure level is causing this.

Error I am getting currently is

10-14 07:18AM 57.239 / 500 29033ms 500cpu_ms 0kb Mozilla/5.0 (Windows;
U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/
6.0.472.63 Safari/534.3,gzip(gfe),gzip(gfe)
83.244.197.164 - - [14/Oct/2010:07:19:26 -0700] "GET / HTTP/1.1" 500 0
- "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3
(KHTML, like Gecko) Chrome/6.0.472.63 Safari/
534.3,gzip(gfe),gzip(gfe)" "www.planneddeparture.com" ms=29033
cpu_ms=500 api_cpu_ms=0 cpm_usd=0.013985 loading_request=1
pending_ms=424
E 10-14 07:19AM 26.268
:
Traceback (most recent call last):
  File "/base/data/home/apps/nilgiriapp/2.345491452186038764/main.py",
line 32, in 
import django.core.handlers.wsgi
  File "/base/python_runtime/python_lib/versions/third_party/
django-1.1/django/core/handlers/wsgi.py", line 11, in 
from django.core.urlresolvers import set_script_prefix
  File "/base/python_runtime/python_lib/versions/third_party/
django-1.1/django/core/urlresolvers.py", line 8, in 
"""
I 10-14 07:19AM 26.271
This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.

Will appreciate any help / support on this.

On Oct 14, 3:22 pm, cybertoast  wrote:
> This is a request for help from someone at google.
>
> Appid: fpgamesserver.appspot.com
> At 3.53pm on Oct 13 we had an error that said "cannot import name
> datastore_stub_util" due to the launch of a new process. It's not
> clear why a new process was launched since the previous requests were
> not CPU intensive. It's possible that this one request was, but I
> can't quite tell why. Every subsequent request to my application
> results in an error: 'NoneType' object has no attribute 'exception'.
> This error references a line main.py which says:
> logging.exception('Exception in request:')
> Requests to the site (fpgamesserver.appspot.com/heist) return this
> error:
> "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."
>
> The first error that seems to have been triggered by the launch of a
> new process is:
>
>       10-13 03:54PM 39.280 /heist/ 500 2722ms 1108cpu_ms 0kb Mozilla/
> 5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/
> 20100914 Firefox/3.6.10,gzip(gfe)
>       See details
>
>       65.46.75.178 - - [13/Oct/2010:15:54:42 -0700] "GET /heist/ HTTP/
> 1.1" 500 0 - "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
> rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe)"
> "fpgamesserver.appspot.com" ms=2722 cpu_ms=1108 api_cpu_ms=0
> cpm_usd=0.030836 loading_request=1
>
>       D 10-13 03:54PM 41.340
>
>       FILTER_LIST: [{'PATH_INFO': '!.*/admin/.*'}]
>
>       D 10-13 03:54PM 41.341
>
>       Match on {'PATH_INFO': '!.*/admin/.*'}
>
>       I 10-13 03:54PM 41.537
>
>       Hook registered
>
>       I 10-13 03:54PM 41.538
>
>       DatastoreProxy initialized
>
>       E 10-13 03:54PM 41.912
>
>       Exception in request:
>       Traceback (most recent call last):
>         File "/base/python_runtime/python_lib/versions/third_party/
> django-0.96/django/core/handlers/base.py", line 68, in get_response
>           callback, callback_args, callback_kwargs =
> resolver.resolve(request.path)
>         File "/base/python_runtime/python_lib/versions/third_party/
> django-0.96/django/core/urlresolvers.py", line 162, in resolve
>           sub_match = pattern.resolve(new_path)
>         File "/base/python_runtime/python_lib/versions/third_party/
> django-0.96/django/core/urlresolvers.py", line 118, in resolve
>           return self.callback, args, kwargs
>         File "/base/python_runtime/python_lib/versions/third_party/
> django-0.96/django/core/urlresolvers.py", line 127, in _get_callback
>           raise ViewDoesNotExist, "Could not import %s. Error was: %s"
> % (mod_name, str(e))
>       ViewDoesNotExist: Could not import freshplanet.framework.views.
> Error was: cannot import name datastore_stub_util
>
>       E 10-13 03:54PM 41.993
>
>       : Tried
> freshplanet.framework.views.get500. Error was: cannot import name
> datastore_stub_util
>       Traceback (most recent call last):
>         File "/base/data/home/apps/fpgamesserver/0-0-4-first-caper-
> online.345419715554941267/main.py", line 50, in 
>           main()
>         File "/base/data/home/apps/fpgamesserver/0-0-4-first-caper-
> online.345419715554941267/main.py", line 47, in main
>           util.run_wsgi_app(application)
>         File "/base/python_runtime/python_li

[google-appengine] Re: Outage of site due to "cannot import name datastore_stub_util"

2010-11-05 Thread Adam Sah
I'm having the same issue-- 'xxx' object has no attribute 'yyy' for
code that has worked
for months.  This appears to be a library-loading issue of some kind.

I've also seen a recent increase in Django 0.96 vs. 1.1 problems,
where 0.96 gets loaded
'ahead' of 1.1 and attempts to replace 0.96 fail.

adam

11-05 08:16AM 31.568
: 'module' object has no attribute
'cssproductions'
Traceback (most recent call last):
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
main.py", line 25, in 
import views, workflows, template_helpers as th,
company_uploaded_files as cuf
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
views.py", line 5, in 
import base, customer, order, bbf_email, jsmin, cssutils, stats
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/__init__.py", line 87, in 
import css
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/css/__init__.py", line 52, in 
from cssfontfacerule import *
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/css/cssfontfacerule.py", line 7, in 
from cssstyledeclaration import CSSStyleDeclaration
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/css/cssstyledeclaration.py", line 57, in 
from property import Property
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/css/property.py", line 7, in 
from cssvalue import CSSValue
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/css/cssvalue.py", line 12, in 
from cssutils.prodparser import *
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/prodparser.py", line 529, in 
class PreDef(object):
  File "/base/data/home/apps/bbf-prod/v0-63-r613a.345987192142689065/
cssutils/prodparser.py", line 533, in PreDef
types = cssutils.cssproductions.CSSProductions



On Oct 14, 7:32 am, Anand  wrote:
> We are facing same issue from yesterday evening.. some time it throws
> error while loading the module and sometime deadline exceed error.
> There was no change in the application as such and and something at
> the infrastructure level is causing this.
>
> Error I am getting currently is
>
> 10-14 07:18AM 57.239 / 500 29033ms 500cpu_ms 0kb Mozilla/5.0 (Windows;
> U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/
> 6.0.472.63 Safari/534.3,gzip(gfe),gzip(gfe)
> 83.244.197.164 - - [14/Oct/2010:07:19:26 -0700] "GET / HTTP/1.1" 500 0
> - "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3
> (KHTML, like Gecko) Chrome/6.0.472.63 Safari/
> 534.3,gzip(gfe),gzip(gfe)" "www.planneddeparture.com" ms=29033
> cpu_ms=500 api_cpu_ms=0 cpm_usd=0.013985 loading_request=1
> pending_ms=424
> E 10-14 07:19AM 26.268
> :
> Traceback (most recent call last):
>   File "/base/data/home/apps/nilgiriapp/2.345491452186038764/main.py",
> line 32, in 
>     import django.core.handlers.wsgi
>   File "/base/python_runtime/python_lib/versions/third_party/
> django-1.1/django/core/handlers/wsgi.py", line 11, in 
>     from django.core.urlresolvers import set_script_prefix
>   File "/base/python_runtime/python_lib/versions/third_party/
> django-1.1/django/core/urlresolvers.py", line 8, in 
>     """
> I 10-14 07:19AM 26.271
> This request caused a new process to be started for your application,
> and thus caused your application code to be loaded for the first time.
> This request may thus take longer and use more CPU than a typical
> request for your application.
>
> Will appreciate any help / support on this.
>
> On Oct 14, 3:22 pm, cybertoast  wrote:
>
>
>
>
>
>
>
> > This is a request for help from someone at google.
>
> > Appid: fpgamesserver.appspot.com
> > At 3.53pm on Oct 13 we had an error that said "cannot import name
> > datastore_stub_util" due to the launch of a new process. It's not
> > clear why a new process was launched since the previous requests were
> > not CPU intensive. It's possible that this one request was, but I
> > can't quite tell why. Every subsequent request to my application
> > results in an error: 'NoneType' object has no attribute 'exception'.
> > This error references a line main.py which says:
> > logging.exception('Exception in request:')
> > Requests to the site (fpgamesserver.appspot.com/heist) return this
> > error:
> > "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."
>
> > The first error that seems to have been triggered by the launch of a
> > new process is:
>
> >       10-13 03:54PM 39.280 /heist/ 500 2722ms 1108cpu_ms 0kb Mozilla/
> > 5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/
> > 20100914 Firefox/3.6.10,gzip(gfe)
> >       See details
>
> >       65.46.75.178 - - [13/Oct/2010:15:54:42 -0700] "GET /heist/ HTTP/
> > 1.1" 500 0 - "Mozilla/