Bug 227862 - Trac does not work with mod_python if python-sqlite2 is installed
Trac does not work with mod_python if python-sqlite2 is installed
Product: Fedora
Classification: Fedora
Component: trac (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joost Soeterbroek
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-02-08 12:25 EST by Raoul
Modified: 2008-05-06 15:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-06 15:11:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Raoul 2007-02-08 12:25:21 EST
trac version: 0.10.3-1.fc5

I have wasted the whole day with this assuming it was a configuration issue, but
it seems that there is some problem with its dependencies or with itself.

How to test:

Assuming that an apache vhost is set up and mod_python is enabled,

- create the trac environment
    trac-admin /home/test/public_html/myprogram initenv
- give the apache user write permission in the whole trac environment
- add the following to the virtual host context in the apache config

<Location /myprogram>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend 
   PythonOption TracEnv /home/test/public_html/myprogram
   PythonOption TracUriRoot /myprogram
   PythonDebug on

- visit http://myserver/myprogram  -->  blank page

- check apache's main thread's error log:

[Thu Feb 08 19:18:45 2007] [notice] mod_python: (Re)importing module
[Thu Feb 08 19:18:48 2007] [notice] child pid 3917 exit signal Segmentation
fault (11)

Nobody has tested this before, at least if it can run?
Comment 1 Will Woods 2007-02-08 12:28:38 EST
Is this on FC5 or FC6? You filed the bug against FC6 but the package version
says FC5.
Comment 2 Raoul 2007-02-08 12:32:18 EST
I am sorry. It is the fc5 package.
Comment 3 Raoul 2007-02-08 13:09:53 EST
I have double checked it.

It works in FC6.

It does not work in FC5. I don't know what the problem might be.
Comment 4 Raoul 2007-02-09 07:12:01 EST
Hello again it seems that the problem was caused by having installed both sqlite
2.x and 3.x at the same time.

A "yum remove python-sqlite2 sqlite2" , so that sqlite 3.x is only available to
the system solved the problem and the trac website worked with mod_python.

I should say that I upgraded to fedora 6 and that I use virtualhosts in apache
(in case this info is needed). Having both sqlite versions installed caused
problems in FC6 too.

PS: I am sorry for my first angry post, but I have wasted too many hours with
this issue.
Comment 5 Raoul 2007-02-17 22:15:43 EST
The python sqlite2 bindings cause all the trouble. Trac works perfectly with
pysqlite 1.x

Problematic software (it didn't work in a custom test python web application i
wrote): python-sqlite2 1:2.3.2-2

Comment 6 Bug Zapper 2008-04-04 02:09:18 EDT
Fedora apologizes that these issues have not been resolved yet. We're
sorry it's taken so long for your bug to be properly triaged and acted
on. We appreciate the time you took to report this issue and want to
make sure no important bugs slip through the cracks.

If you're currently running a version of Fedora Core between 1 and 6,
please note that Fedora no longer maintains these releases. We strongly
encourage you to upgrade to a current Fedora release. In order to
refocus our efforts as a project we are flagging all of the open bugs
for releases which are no longer maintained and closing them.

If this bug is still open against Fedora Core 1 through 6, thirty days
from now, it will be closed 'WONTFIX'. If you can reporduce this bug in
the latest Fedora version, please change to the respective version. If
you are unable to do this, please add a comment to this bug requesting
the change.

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we are following is outlined here:

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

And if you'd like to join the bug triage team to help make things
better, check out http://fedoraproject.org/wiki/BugZappers
Comment 7 Bug Zapper 2008-05-06 15:11:40 EDT
This bug is open for a Fedora version that is no longer maintained and
will not be fixed by Fedora. Therefore we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen thus bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.