AWS EC2上安装的subversion服务器上的签入错误

时间:2016-01-21 03:42:47

标签: apache svn amazon-ec2 tortoisesvn httpd.conf

我在AWS EC2上安装了subversion服务器。大多数工作正常。我能够结账但无法在命令行上签入文件。我得到svn:E000013:无法开始交易。日志中的错误是:

[Wed Jan 20 22:02:25.679636 2016] [:error] [pid 28816] [client 96.242.58.29:53390] Can't open file '/var/www/svn/repos/db/txn-current-lock': Permission denied  [500, #13]

这是我对subversion.conf的语法

cat /etc/httpd/conf.d/subversion.conf 
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

  <Location /svn>
DAV svn
SVNParentPath /var/www/svn
<LimitExcept GET PROPFIND OPTIONS REPORT>
     SVNListParentPath on
     AuthType Basic
     AuthName "Subversion Repositories"
     AuthUserFile /etc/svn-auth-conf
     Require valid-user
</LimitExcept>

回购权限如下:

ls -lrt /var/www/
total 0
drwxrwxrwx. 2 root   root    6 Sep 17 09:07 cgi-bin
drwxrwxrwx. 3 root   root   28 Jan 20 20:17 html
drwsrwsr-x. 3 apache apache 18 Jan 20 20:25 svn

ls -lrt /var/www/svn
total 0
drwsr-sr-x. 6 apache apache 80 Jan 20 20:25 repos

httpd ps -ef is:

 ps -ef | grep httpd
 root     28809     1  0 21:59 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28811 28809  0 21:59 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28813 28809  0 21:59 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28814 28809  0 21:59 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28815 28809  0 21:59 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28816 28809  0 21:59 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28817 28809  0 21:59 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28818 28809  0 22:00 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 apache   28819 28809  0 22:00 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
 ec2-user 28856  9252  0 22:07 pts/0    00:00:00 grep --color=auto httpd

1 个答案:

答案 0 :(得分:0)

从这篇文章得到解决。 SELinux问题。使用了这篇文章中的2选项:

https://serverfault.com/questions/625579/svn-cant-open-file-var-www-svn-repo-db-txn-current-lock-permission-denied