Opened 18 years ago
Closed 18 years ago
#4914 closed defect (duplicate)
Internal Server Error with mod_python
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend/mod_python | Version: | 0.10.2 |
Severity: | minor | Keywords: | |
Cc: | martin.marcher@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hello,
I have quite a few projects on a host which in general hosts
- trac
- a central maven repository (if you don't know what that is don't care - it's for the server side just webdav)
- a filestore per repository (webdav again)
About 70% of the time things work as expected, i.e. reqeuests are passed thru and people can work flawlessly.
However the rest of the time my users get Internal Server Errors which shows the following in the apache error_log:
[Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):, referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/web/modpython_frontend.py", line 87, in handler\n gateway.run(dispatch_request), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/web/wsgi.py", line 87, in run\n response = application(self.environ, self._start_response), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line 377, in dispatch_request\n env = _open_environment(env_path, run_once=environ['wsgi.run_once']), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line 58, in _open_environment\n env_cache[env_path] = open_environment(env_path), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/env.py", line 434, in open_environment\n env = Environment(env_path), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/env.py", line 121, in __init__\n load_components(self), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/loader.py", line 140, in load_components\n __import__(module), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 56, in ?\n from svn import fs, repos, core, delta, referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/svn/fs.py", line 19, in ?\n from libsvn.fs import *, referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/libsvn/fs.py", line 29, in ?\n import core, referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/libsvn/core.py", line 3057, in ?\n svn_pool_create(), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/python2.4/site-packages/libsvn/core.py", line 1098, in svn_pool_create\n return apply(_core.svn_pool_create, args), referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit [Tue Mar 06 15:43:52 2007] [error] [client 10.200.2.5] PythonHandler trac.web.modpython_frontend: TypeError: argument number 0: a 'apr_pool_t *' is expected, 'instance(<libsvn.core.GenericSWIGWrapper instance at 0x2ac62de2cf38>)' is received, referer: https://borderline.host.at.company/bas/trac/wiki/BasOcx?action=edit
python Info:
# python -V Python 2.4.3
Trac Version:
0.10.2
Distro
Ubuntu Edgy
My setup is the following:
Apache 2.0 Borderline Host:
#VirtualHost :80 RewriteRule ^(.*)$ https://dev.openforce.com$1 [R] #VirtualHost :443 RewriteRule ^/(.*)/(.*) http://tracenv.openforce.com/$1/$2 [P]
Apache 2.0 with mod_python (posted the probably unnecessary details too if something's in the way)
<LocationMatch "/(.*)"> AuthName "Trac Project Access" AuthType basic Auth_PG_authoritative on Auth_PG_host db Auth_PG_port 5432 Auth_PG_database auth Auth_PG_user auth Auth_PG_pwd supersecret Auth_PG_encrypted On Auth_PG_hash_type MD5 Auth_PG_pwd_table "user" Auth_PG_grp_table "group" Auth_PG_uid_field username Auth_PG_pwd_field password Auth_PG_grp_group_field groupname Auth_PG_grp_user_field username </LocationMatch> ###### START bas project environment ###### <LocationMatch "/bas/trac(.*)"> SetHandler mod_python PythonOption TracLocale "de_DE.UTF-8" PythonHandler trac.web.modpython_frontend PythonOption TracEnv /var/lib/trac/bas PythonOption TracUriRoot /bas/trac SetEnv PYTHON_EGG_CACHE /var/cache/apache2/ require group general_access </LocationMatch> Alias /bas/filestore /srv/httpd/htdocs/bas/filestore <LocationMatch "/bas/filestore(.*)"> Dav On Options +Indexes <Limit GET HEAD OPTIONS PROPFIND> require group general_access </Limit> <LimitExcept GET HEAD OPTIONS PROPFIND> require group general_access </LimitExcept> </LocationMatch> Alias /bas/maven /srv/httpd/htdocs/maven <Location "/bas/maven"> Dav On Options +Indexes <Limit GET HEAD OPTIONS PROPFIND> require group general_access </Limit> <LimitExcept GET HEAD OPTIONS PROPFIND> require group general_access </LimitExcept> </Location> <Location "/bas/svn"> Dav svn SVNPath /var/svn/repos/trac_bas/ <Limit GET HEAD OPTIONS PROPFIND> require group general_access </Limit> <LimitExcept GET HEAD OPTIONS PROPFIND PUT> require group general_access </LimitExcept> </Location> ###### END bas project environment ######
This is a duplicate of #2611, for which there's a workaround.