Does not appear to be a Subversion repository

106 views
Skip to first unread message

mallio

unread,
Sep 30, 2007, 6:04:01 PM9/30/07
to Trac Users
When attempting to run tracd I'm getting the following error:

Traceback (most recent call last):
File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line
387, in dispatch_request
dispatcher.dispatch(req)
File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line
191, in dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line
263, in _pre_process_request
chosen_handler = f.pre_process_request(req, chosen_handler)
File "/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/
api.py", line 73, in pre_process_request
self.get_repository(req.authname) # triggers a sync if applicable
File "/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/
api.py", line 101, in get_repository
repos = self._connector.get_repository(rtype, rdir, authname)
File "/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/
svn_fs.py", line 259, in get_repository
repos = SubversionRepository(dir, None, self.log)
File "/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/
svn_fs.py", line 289, in __init__
raise TracError("%s does not appear to be a Subversion
repository." \
TracError: /home/aftervibe/svn2/testrep does not appear to be a
Subversion repository.


The repository "testrep" was created using svnadmin, the directory
contents are correct, and the user:group is the same as the one I run
tracd with, and I've even tried setting all permissions to 777 on the
repository.

The strange thing is that when I copied the code that throws that
error into a seperate python test script with all the necessary
imports, it works fine. And just to be sure, I gave it an invalid
location and it threw that same error.

For some reason it seems that 'repos.svn_repos_find_root_path()' is
doing something wrong, but only when it is run from tracd.

Any help or suggestions would be appreciated.

Reply all
Reply to author
Forward
0 new messages