Hi,

I'm attempting my first trac installation on a Fedora Core 5 machine.  I've followed the installation guide fairly carefully.  I decided to go the mod_python route, since that seemed the most obvious.  I installed trac using yum as instructed.  My subversion repository actually belongs to a user, svn.  This is for a project that is a little ways along, and I had set up people who needed access to the repository with membership in the svn group.  I added the apache user to the svn group.  So the repository lives at /home/svn/project (name changed for confidentiality).

I am able to view the trac homepage at www.server.com/trac but when I try to access the timeline or anything related to the repository I get the following traceback:

Trac detected an internal error:
("Can't open file '/home/svn/project/format': Permission denied", 13)


Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/Timeline.py", line 140, in process_request
    filters)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/changeset.py", line 108, in get_timeline_events
    repos = self.env.get_repository()
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 162, in get_repository
    repos = SubversionRepository(repos_dir, authz, self.log)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 192, in __init__
    self.repos = repos.svn_repos_open(self.path, self.pool())
  File "/usr/lib/python2.4/site-packages/libsvn/repos.py", line 47, in svn_repos_open
    return apply(_repos.svn_repos_open, args)
SubversionException: ("Can't open file '/home/svn/project/format': Permission denied", 13)


The machine is in a secure environment and has an SSL certificate for the whole site.  I've checked that apache can read the format file, when I do a  sudo -u apache cat /home/svn/project/format I get the contents of that file, a single integer.  I'm using subversion 1.3.1, python version 2.4.2, trac 0.9.5.  Here is my trac.conf file:

# Replace all occurrences of /srv/trac with your trac root below
# and uncomment the respective SetEnv and PythonOption directives.
<LocationMatch /cgi-bin/trac\.f?cgi>
    SetEnv TRAC_ENV /var/www/html/trac/asap
</LocationMatch>
<IfModule mod_python.c>
<Location /cgi-bin/trac.cgi>
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /var/www/html/trac/project
</Location>
<Location /trac>
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /var/www/html/trac/project
    PythonOption TracUriRoot /trac
    PythonPath "sys.path + ['/var/www/html/trac/project']"
    AuthType Basic
    AuthName "project"
    AuthUserFile /var/www/html/trac/.htaccess
    Require valid-user
</Location>
<Location /trac/login">
    AuthType Basic
    AuthName "project"
    AuthUserFile /var/www/html/trac/.htaccess
    Require valid-user
</Location>
</IfModule>

I put the authentication stuff into the <Location /trac> block because the system wasn't asking me for login info when I just left it in the <Location /trac/login> block.

I've googled around on the mailing list archives and the only other person I've seen with this problem was running SELinux.  I am not.  Please help!  I've run out of ideas.

Thanks!

Luke Nihlen
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to