Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3075 closed defect (invalid)

Trac 0.9.5 not functioning with mod_python

Reported by: gorazd@… Owned by: Christopher Lenz
Priority: high Milestone:
Component: web frontend/mod_python Version: 0.9.5
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When I try to run trac 0.9.5 inside apache with mod_python 3.2.8 I get this in error log:

[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispa
tch\n    result = object(req)
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/export/software/trac/lib/python2.4/site-packages/trac/web/modpython_frontend.py"
, line 199, in handler\n    env = get_environment(mpr, project_opts)
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/export/software/trac/lib/python2.4/site-packages/trac/web/main.py", line 335, in
 get_environment\n    return _open_environment(env_path, threaded)
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/export/software/trac/lib/python2.4/site-packages/trac/web/main.py", line 51, in 
_open_environment\n    env_cache[env_path] = open_environment(env_path)
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 375, in open
_environment\n    if env.needs_upgrade():
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 281, in need
s_upgrade\n    if participant.environment_needs_upgrade(db):
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 334, in envi
ronment_needs_upgrade\n    dbver = self.env.get_version(db)
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 204, in get_
version\n    cursor.execute("SELECT value FROM system WHERE name='database_version'")
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in execute\n    self.
rs = self.con.db.execute(SQL)
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: DatabaseError: unsupported file format

In apache config this section is for trac (inside virtual host):

   <Location />
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /xxx/projects/yyy/
        PythonOption TracUriRoot /
    </Location>

but when I run same project with tracd it's working fine.

Attachments (0)

Change History (2)

comment:1 by Matthew Good, 18 years ago

Resolution: invalid
Status: newclosed

Support issues should be addressed to the MailingList instead of creating a ticket. However these items from the list archives may help:

comment:2 by Christian Boos, 18 years ago

See also:

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.