Svn已经在运行,并且按照预期运行,但是Trac不是。
当我去trac页面时说:
Warning: Can't synchronize with the repository (Couldn't open Subversion repository /home/svn/repos: SubversionException: ("Can't open file '/home/svn/repos/format': Permission denied", 13)). Look in the Trac log for more information.
我已经将www数据添加到svn组,但是这不起作用。 我甚至把svn库变成了www-data:www-data,还是什么都没有。 作为最后的手段,我修改了整个存储库777,但仍然不起作用。
所以其他的东西一定是这个造成的,对吗?
这是我的/ etc / apache2 / sites-enabled / 000-default文件,以防万一:
<Location /trac/[[:alnum]]+/login"> AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/subversion/passwd Require valid-user </Location> <Location /trac> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /var/www/trac PythonOption TracUriRoot /trac </Location>
我也尝试通过apache添加WebDAV访问,通过添加到相同的文件:
<Location /svn/repos> AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/subversion/passwd Require valid-user DAV svn SVNPath /home/svn/repos </Location>
但是我又遇到一个错误:
<m:human-readable errcode="13"> Could not open the requested SVN filesystem</m:human-readable>
即使trac-admin project initenv命令祝贺我说成功了,但实际上并没有创造任何东西。 再次运行固定它。