woops. someone forgot to set an exception in their C extension. submit a bug?

On 5/12/06, Jeremy Gillick <[EMAIL PROTECTED]> wrote:
When trying to run Trac on Apache I get a 500 Internal Server Error and the 
Apache error logs print
the following:

[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler
trac.web.modpython_frontend: Traceback (most recent call last):
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in 
HandlerDispatch\n
result = object(req)
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 
199, in handler\n
  env = get_environment(mpr, project_opts)
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 335, in 
get_environment\n
return _open_environment(env_path, threaded)
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 51, in 
_open_environment\n
env_cache[env_path] = open_environment(env_path)
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/env.py", line 375, in 
open_environment\n    if
env.needs_upgrade():
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/env.py", line 279, in 
needs_upgrade\n    db =
self.get_db_cnx()
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/env.py", line 137, in 
get_db_cnx\n    return
self.__cnx_pool.get_cnx()
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/db.py", line 157, in get_cnx\n   
 cnx =
self._cnx_class(**self._args)
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
   File "/usr/lib/python2.3/site-packages/trac/db.py", line 280, in __init__\n  
  timeout=timeout)
[Fri May 12 11:20:37 2006] [error] [client 216.145.49.15] PythonHandler 
trac.web.modpython_frontend:
SystemError: NULL result without error in PyObject_Call

I've read through the installation instructions on the site and installed all 
the software needed.
Here's my Apache configuration (located in a VirtualHost directive):

    <Location /trac>
       SetHandler mod_python
       PythonHandler trac.web.modpython_frontend
       PythonOption TracEnv /usr/local/trac/jwalk
       PythonOption TracUriRoot /projects/JWalk
    </Location>
    <Location /login>
         AuthType Basic
         AuthName "JWalk Trac Server"
         AuthUserFile /etc/httpd/conf/svnpasswd
         Require valid-user
     </Location>

Prior to setting up apache I created the jwalk environment with the following 
command:

     trac-admin /usr/local/trac/jwalk/ initenv

I tried the Trac standalone server, which works just fine, but I would rather 
run Trac through Apache.

Thanks,
Jeremy
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac



--
Patrick Kidd Stinson
http://www.patrickkidd.com/
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to