
arantius at gmail
Nov 8, 2009, 10:31 AM
Post #1 of 10
(698 views)
Permalink
|
|
Serious trac failures, which I can't fix
|
|
I've had Trac installed for some time, on my Gentoo powered server. I believe my most recent update has broken something. I've managed to figure it out when stuff like this has happened in the past (it's distressingly often) but this time I'm completely stuck. If I run trac-admin, I get: $ trac-admin Traceback (most recent call last): File "/usr/bin/trac-admin", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2595, in <module> working_set.require(__requires__) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 621, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 519, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: setuptools>=0.6b1 But: $ easy_install --version distribute 0.6.4 It's very much installed and working. Is this the problem? $ python Python 2.6.2 (r262:71600, Oct 24 2009, 16:29:54) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import setuptools >>> setuptools.__version__ '0.6' I'd think "0.6" is newer than "0.6b1" (which I read as b1) but can also see how it might fail such a check. Also, I know I have 0.6.4 installed, so that seems a bit strange. Anyway, I only tried to run trac-admin because I was having more serious problems, and wanted to try a fresh environment. In my current environment, trying to access via the web, I just get a stack trace: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 377, in send_error 'text/html') File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 726, in render_template req.session.pop('chrome.%s.%d' % (type_, i))) File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 195, in __getattr__ value = self.callbacks[name](self) File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 264, in _get_session return Session(self.env, req) File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 152, in __init__ self.get_session(sid) File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 173, in get_session super(Session, self).get_session(sid, authenticated) File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 48, in get_session db = self.env.get_db_cnx() File "/usr/lib/python2.6/site-packages/trac/env.py", line 273, in get_db_cnx return DatabaseManager(self).get_connection() File "/usr/lib/python2.6/site-packages/trac/db/api.py", line 85, in get_connection connector, args = self._get_connector() File "/usr/lib/python2.6/site-packages/trac/db/api.py", line 130, in _get_connector raise TracError('Unsupported database type "%s"' % scheme) TracError: Unsupported database type "mysql" I have no idea why it might say that. I definitely have the requisite packages installed. $ python Python 2.6.2 (r262:71600, Oct 24 2009, 16:29:54) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import MySQLdb >>> I debugged it for a while, and found that adding this line (to my fastcgi wrapper script): from trac.db import mysql_backend Makes it load. But the navigation bar (normally: wiki, browser, tickets, admin, etc) is completely empty. And the contents of the page says: Trac detected an internal error: AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "WikiModule". Please update the option trac.default_handler in trac.ini. There was an internal error in Trac. It is recommended that you inform your local Trac administrator and give him all the information he needs to reproduce the issue. To that end, you could ==== How to Reproduce ==== While doing a GET operation on `/`, Trac issued an internal error. ''(please provide additional details here)'' User Agent was: `Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)` ==== System Information ==== || '''Trac''' || `0.11.5` || || '''Python''' || `2.6.2 (r262:71600, Oct 24 2009, 16:29:54) ` [[br]] `[GCC 4.3.4]` || || '''setuptools''' || `0.6` || || '''MySQL''' || `server: "5.0.70", client: "5.0.70", thread-safe: 1` || || '''MySQLdb''' || `1.2.3c1` || || '''Genshi''' || `0.5.1` || || '''jQuery:''' || `1.2.6` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/trac/ web/main.py", line 444, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 171, in dispatch chosen_handler = self.default_handler File "/usr/lib/ python2.6/site-packages/trac/config.py", line 498, in __get__ self.section, self.name)) AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "WikiModule". Please update the option trac.default_handler in trac.ini. }}} a ticket. The action that triggered the error was: GET: / So then I added the line: from trac.wiki import web_ui Which convinces it to find the WikiModule, and Wiki pages show (and 'wiki' is in the nav bar). But the page says: Warning: Can't synchronize with the repository (Unsupported version control system "svn": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information. But again: $ python Python 2.6.2 (r262:71600, Oct 24 2009, 16:29:54) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import svn >>> svn <module 'svn' from '/usr/lib/python2.6/site-packages/svn/ __init__.pyc'> >>> I've got that and it works fine. And in the wiki page, which used to work: Error: Failed to load processor TitleIndex No macro or processor named 'TitleIndex' found Now, at the top, I mentioned an upgrade. I upgraded some packages on Friday, but none of them were Trac. Trac has not been built since Oct 24, and it was Sep 23 when I upgraded from 0.11.2 to 0.11.5. These problems have only been happening for about a day. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users [at] googlegroups To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|