I spent a little more time looking into this. I noticed that it
appears that web.py is actually getting three separate exceptions (or
at least catching them, printing a traceback and then re-raising the
exception).
The second traceback is coming from my sqlalchemy handler code loosely
based upon http://webpy.org/cookbook/sqlalchemy

[Wed Nov 09 17:07:53 2011] [error] Traceback (most recent call last):
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
242, in process
[Wed Nov 09 17:07:53 2011] [error]     return self.handle()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
232, in handle
[Wed Nov 09 17:07:53 2011] [error]     fn, args =
self._match(self.mapping, web.ctx.path)
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 1165, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     return getattr(self._getd(),
key)
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 71, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     raise AttributeError, k
[Wed Nov 09 17:07:53 2011] [error] AttributeError: 'path'
[Wed Nov 09 17:07:53 2011] [error]
[Wed Nov 09 17:07:53 2011] [error] Traceback (most recent call last):
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
240, in process
[Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
process(processors))
[Wed Nov 09 17:07:53 2011] [error]   File "/var/www/cl_server/
controller.py", line 174, in load_sqla
[Wed Nov 09 17:07:53 2011] [error]     return handler()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
240, in <lambda>
[Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
process(processors))
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
249, in process
[Wed Nov 09 17:07:53 2011] [error]     raise self.internalerror()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
468, in internalerror
[Wed Nov 09 17:07:53 2011] [error]     parent = self.get_parent_app()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
453, in get_parent_app
[Wed Nov 09 17:07:53 2011] [error]     if self in web.ctx.app_stack:
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 1165, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     return getattr(self._getd(),
key)
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 71, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     raise AttributeError, k
[Wed Nov 09 17:07:53 2011] [error] AttributeError: 'app_stack'
[Wed Nov 09 17:07:53 2011] [error]
[Wed Nov 09 17:07:53 2011] [error] Traceback (most recent call last):
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
240, in process
[Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
process(processors))
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
561, in processor
[Wed Nov 09 17:07:53 2011] [error]     return handler()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
240, in <lambda>
[Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
process(processors))
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
249, in process
[Wed Nov 09 17:07:53 2011] [error]     raise self.internalerror()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
468, in internalerror
[Wed Nov 09 17:07:53 2011] [error]     parent = self.get_parent_app()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
453, in get_parent_app
[Wed Nov 09 17:07:53 2011] [error]     if self in web.ctx.app_stack:
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 1165, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     return getattr(self._getd(),
key)
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 71, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     raise AttributeError, k
[Wed Nov 09 17:07:53 2011] [error] AttributeError: 'app_stack'
[Wed Nov 09 17:07:53 2011] [error]
[Wed Nov 09 17:07:53 2011] [error] Traceback (most recent call last):
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
240, in process
[Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
process(processors))
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
580, in processor
[Wed Nov 09 17:07:53 2011] [error]     h()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
98, in _unload
[Wed Nov 09 17:07:53 2011] [error]     web.ctx.app_stack =
web.ctx.app_stack[:-1]
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 1165, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     return getattr(self._getd(),
key)
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 71, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     raise AttributeError, k
[Wed Nov 09 17:07:53 2011] [error] AttributeError: 'app_stack'
[Wed Nov 09 17:07:53 2011] [error]
[Wed Nov 09 17:07:53 2011] [error] Traceback (most recent call last):
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
240, in process
[Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
process(processors))
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
561, in processor
[Wed Nov 09 17:07:53 2011] [error]     return handler()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
240, in <lambda>
[Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
process(processors))
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
249, in process
[Wed Nov 09 17:07:53 2011] [error]     raise self.internalerror()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
468, in internalerror
[Wed Nov 09 17:07:53 2011] [error]     parent = self.get_parent_app()
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
453, in get_parent_app
[Wed Nov 09 17:07:53 2011] [error]     if self in web.ctx.app_stack:
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 1165, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     return getattr(self._getd(),
key)
[Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 71, in
__getattr__
[Wed Nov 09 17:07:53 2011] [error]     raise AttributeError, k
[Wed Nov 09 17:07:53 2011] [error] AttributeError: 'app_stack'






On Nov 11, 8:43 am, dgardner <davidgardne...@gmail.com> wrote:
> Unfortunately 0.34 is the version that is installed at my work.
> I could try running 0.36, however the problem that I am running
> into is that I have not been able to reliably reproduce the problem.
>
> On Nov 11, 8:15 am, andrei <andre...@gmail.com> wrote:
>
> > Is there any reason that you're using 0.34 instead of the latest
> > web.py release?
>
> > On Nov 11, 12:18 am, dgardner <davidgardne...@gmail.com> wrote:
>
> > > I've been using a web.py app in production now for a couple of weeks,
> > > deployed under Apache 2.2.3 / mod_wsgi 3.3.
>
> > > Then yesterday I started seeing tracebacks like this:
> > > [Wed Nov 09 17:07:53 2011] [error] Traceback (most recent call last):
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
> > > 240, in process
> > > [Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
> > > process(processors))
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
> > > 561, in processor
> > > [Wed Nov 09 17:07:53 2011] [error]     return handler()
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
> > > 240, in <lambda>
> > > [Wed Nov 09 17:07:53 2011] [error]     return p(lambda:
> > > process(processors))
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
> > > 249, in process
> > > [Wed Nov 09 17:07:53 2011] [error]     raise self.internalerror()
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
> > > 468, in internalerror
> > > [Wed Nov 09 17:07:53 2011] [error]     parent = self.get_parent_app()
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/application.py", line
> > > 453, in get_parent_app
> > > [Wed Nov 09 17:07:53 2011] [error]     if self in web.ctx.app_stack:
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 1165, in
> > > __getattr__
> > > [Wed Nov 09 17:07:53 2011] [error]     return getattr(self._getd(),
> > > key)
> > > [Wed Nov 09 17:07:53 2011] [error]   File "/rel/lang/python/2.6.4-6/
> > > opt-gccWS5_64/lib/python2.6/site-packages/web/utils.py", line 71, in
> > > __getattr__
> > > [Wed Nov 09 17:07:53 2011] [error]     raise AttributeError, k
> > > [Wed Nov 09 17:07:53 2011] [error] AttributeError: 'app_stack'
>
> > > I did a little searching and found two posts to the web.py mailing
> > > lists with the same error, but neither received 
> > > responses:http://groups.google.com/group/webpy/search?group=webpy&q=app_stack&q...
>
> > > I'm using the Apache mpm_worker_module, and am configuring mod_wsgi
> > > with:
> > > LoadModule wsgi_module modules/mod_wsgi.so
> > > <VirtualHost *:8090>
> > >  WSGIDaemonProcess concurrency_limit user=farmadmin group=user \
> > >      home=/var/www/cl_server python-path=/var/www/cl_server \
> > >      threads=20 processes=5
>
> > >  WSGIScriptAlias / /var/www/cl_server/controller.py/
>
> > >  Alias /static /var/www/cl_server/static/
> > >  AddType text/html .py
>
> > >  <Directory /usr/pic1/cl_server/>
> > >      Order deny,allow
> > >      Allow from all
> > >  </Directory>
> > > </VirtualHost>
>
> > > Let me know if there is anymore information I could provide.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to