On Thu, June 1, 2006 03:19, Luke Nihlen wrote:
> Hi,
>
> 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)
>
Assuming something like this is your directory setup:
drwxrwxr-x 7 svn svn 4096 2006-03-23 15:32 svn
drwxr-xr-x 11 trac trac 4096 2006-04-25 13:27 trac
and that the permissions on ./svn/format are no more restrictive than:
-rw-rw-r-- 1 svn svn 2 2006-03-23 15:32 format
and that you are using the default fsfs respository type; then my guess is
that the trac project owner is not a member of the svn group.
# grep svn /etc/group
svn:x:501:trac,apache # groupid 'svn' is the primary group for userid 'svn'
trac:x:502:apache # groupid 'trac' is the primary group for userid 'trac'
My httpd/conf.d/trac.conf file looks like this:
<VirtualHost aaa.bbb.ccc.ddd>
DocumentRoot /path/to/trac
ServerName trac.harte-lyne.ca
<Directory /path/to/trac>
allow from all
Options +Indexes
</Directory>
Alias /trac/ /usr/share/trac/htdocs
Alias /cgi-bin/ /usr/share/trac/cgi-bin
### Tell Trac where the project directory is located
<Location "/cgi-bin/trac.cgi">
SetEnv TRAC_ENV "/path/to/trac"
</Location>
<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /path/to/trac
SetEnv PYTHON_EGG_CACHE /path/to/trac/cache
PythonOption TracUriRoot /
AuthType Digest
AuthName "ca.harte-lyne"
AuthDigestDomain /
AuthDigestFile /path/to/trac/conf/trac.htdigest
Require valid-user
</Location>
SSLEngine on
SSLCertificateFile /usr/share/ssl/certs/traccert.pem
SSLCertificateKeyFile /usr/share/ssl/private/trackey.pem
ScriptAlias cgi-bin "/usr/share/trac/cgi-bin"
</VirtualHost>
I hope that this information helps you find a solution.
--
*** e-mail is NOT a secure channel ***
James B. Byrne mailto:ByrneJB.<token>@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3CE delivery <token> = hal
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac