#6796 closed defect (fixed)
Improve Trac error reporting for misconfigured repositories
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11.1 |
Component: | version control | Version: | 0.10.4 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Trying to setup Trac for subversion gui
here's the trace
Python Traceback
Traceback (most recent call last): File "/var/lib/python-support/python2.5/trac/web/main.py", line 406, in dispatch_request dispatcher.dispatch(req) File "/var/lib/python-support/python2.5/trac/web/main.py", line 191, in dispatch chosen_handler = self._pre_process_request(req, chosen_handler) File "/var/lib/python-support/python2.5/trac/web/main.py", line 263, in _pre_process_request chosen_handler = f.pre_process_request(req, chosen_handler) File "/var/lib/python-support/python2.5/trac/versioncontrol/api.py", line 73, in pre_process_request self.get_repository(req.authname).sync() File "/var/lib/python-support/python2.5/trac/versioncontrol/api.py", line 94, in get_repository ((self.repository_type,)*2)) TracError: Unsupported version control system "/var/svn/svpp". Check that the Python bindings for "/var/svn/svpp" are correctly installed.
Attachments (2)
Change History (10)
comment:1 by , 17 years ago
Description: | modified (diff) |
---|---|
Priority: | high → normal |
Resolution: | → invalid |
Status: | new → closed |
comment:2 by , 17 years ago
Keywords: | tobedeleted added |
---|
comment:3 by , 17 years ago
Component: | general → version control |
---|---|
Keywords: | help added; tobedeleted removed |
Milestone: | → 0.12 |
Resolution: | invalid |
Severity: | normal → major |
Status: | closed → reopened |
Summary: | Trac reports an internal error → Improve Trac error reporting for misconfigured repositories |
Here the error was that the repository_type
was set to a repository path. It should instead have been something like:
[trac] repository_dir = /var/svn/svpp repository_type = svn
I suggest to not delete the ticket as this might help someone having the same error message.
Also in 0.12, I will take a look at making the error messages for the versioncontrol subsystem more helpful, as this is by far the kind of reports we get the most. And it will get even worse with the multirepos support if nothing improves on that topic.
comment:4 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
by , 17 years ago
Attachment: | unsupported_vcs-r7031.diff added |
---|
Provide a mechanism by which one can get (slightly) more meaningful messages for this common error
comment:5 by , 17 years ago
Keywords: | review added; help removed |
---|---|
Milestone: | 0.12 → 0.11 |
Tentatively scheduling this for 0.11 if there's positive review.
As said above, this error is by far one of the most common support request, so getting more detailed help message would be very useful.
Still, there's no magic in there and it won't tell exactly how one has managed to mess up the install, only provide useful hints (reporting the actual ImportError, telling to look in the Trac log, etc.).
by , 17 years ago
Attachment: | unsupported-vcs-hg-r7031.diff added |
---|
Related changes for the TracMercurial plugin (0.11). I had to fight a bit the demandimport
stuff …
comment:7 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've applied the patches in r7435,7436 but I'm leaving the TracMercurial patch for you Christian since I can't really test it myself.
Installation issue. Please re-read the TracInstall documentation or post to a message to the MailingList if you have trouble installing Trac.