Opened 15 years ago
Closed 15 years ago
#8761 closed defect (wontfix)
Mod_wsgi and ticket #8365 (on trac.edgewall website) TROUBLE
Reported by: | Tony | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.12dev |
Severity: | critical | Keywords: | mod_wsgi, Unsupported sqlite |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hello,
I have a windows 2003 server, its running apache 2.2 and python 2.6.2 and mod_wsgi. Trac 0.12dev was running ok on tracd but I had to change the genshi verssion on the file name as on the ticked I opened ticket #8365. When running the apache with wsgi web server trac sttoped working and only worked again when I changed the verssion on genshi package again to r0, but trac was not loading the pysql. It only loaded it when I placed a "import trac.db.pysql_backend" in my wsgi config file that is like this:
import os os.environ['TRAC_ENV'] = '/usr/local/trac/mysite' os.environ['PYTHON_EGG_CACHE'] = '/usr/local/trac/mysite/eggs' import trac.web.main import trac.db.pysql_backend application = trac.web.main.dispatch_request
Now trac open but is now showing:
AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "WikiModule". Please update the option trac.default_handler in trac.ini.
and when I try to log in:
Authentication information not available.
My authentication method is using the method described on http://trac.edgewall.org/wiki/TracStandalone using the trac-digest.py script to generate the passwords.
Any help will be appreciated.
Attachments (0)
Change History (5)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Keywords: | needinfo added |
---|---|
Milestone: | 0.12 |
comment:3 by , 15 years ago
Keywords: | mod_wsgi Unsupported sqlite added; needinfo removed |
---|
Trac only works when I add the
import trac.db.pysql_backend
on my wsgi config.
If I remove it I get
Traceback (most recent call last): File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\web\api.py", line 382, in send_error 'text/html') File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\web\chrome.py", line 763, in render_template req.chrome[type_].append( File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\web\api.py", line 199, in __getattr__ value = self.callbacks[name](self) File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\web\chrome.py", line 515, in prepare_request for category, name, text in contributor.get_navigation_items(req): File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\ticket\web_ui.py", line 171, in get_navigation_items if 'TICKET_CREATE' in req.perm: File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\perm.py", line 529, in has_permission return self._has_permission(action, resource) File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\perm.py", line 543, in _has_permission check_permission(action, perm.username, resource, perm) File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\perm.py", line 430, in check_permission perm) File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\perm.py", line 287, in check_permission get_user_permissions(username) File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\perm.py", line 362, in get_user_permissions for perm in self.store.get_user_permissions(username): File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\perm.py", line 178, in get_user_permissions db = self.env.get_db_cnx() File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\env.py", line 278, in get_db_cnx return DatabaseManager(self).get_connection() File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\db\api.py", line 86, in get_connection connector, args = self._get_connector() File "C:\Python26\lib\site-packages\trac-0.12dev_r0-py2.6.egg\trac\db\api.py", line 132, in _get_connector scheme=scheme)) TracError: Unsupported database type "sqlite"
Trac is configured in my httpd.conf file as follow:
NameVirtualHost *:80 <VirtualHost *:80> ServerName www.trac.xxx.ba.gov.br ServerAlias *.trac.xxx.ba.gov.br ServerAdmin xxx@xxx.ba.gov.br WSGIScriptAlias / C:/TracProjects/SAS/conf/wsgiConfig.wsgi <Directory C:/TracProjects/SAS/conf> WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerName www.emarketing.xxx.ba.gov.br ServerAlias *.emarketing.xxx.ba.gov.br RewriteEngine On RewriteRule ^/(.*) \http://www.emarketing.xxx.ba.gov.br:8080/$1 [P] </VirtualHost>
Its weird. Trac worked ok running on tracd…
comment:4 by , 15 years ago
Milestone: | → 0.12 |
---|
SORRY SORRY SORRY.
I gave the wrong command line I added in my wsgi config.
The correct import is:
import trac.db.sqlite_backend
This is what Im using just to make trac use sqlite. But there any still the issues I said before.
comment:5 by , 15 years ago
Milestone: | 0.12 |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This is an InstallationIssue. Please try to get help on the MailingList and/or IrcChannel.
Well, there's no such thing as:
Start by fixing this, and see if the error persists.