系统相关
首页 > 系统相关> > linux-Subversion提交/ USVN / Raspberry Pi上的500内部服务器错误

linux-Subversion提交/ USVN / Raspberry Pi上的500内部服务器错误

作者:互联网

我在Raspberry Pi上使用User-Friendly SVN. Pi正在与Debian Wheezy一起运行.

创建存储库的工作正常,我可以签出并更新存储库,没有任何问题.但是,当我创建文件时,将其添加到存储库中并尝试提交,则会收到以下消息:

svn: E175002: Commit failed (details follow):
svn: E175002: Server sent unexpected return value (500 Internal Error) in response to POST request for '/usvn/svn/test/!svn/me'
svn: E175002: Your commit message was left in a temporary file:
svn: E175002:    '/svntest/test/svn-commit.tmp'

在error.log中什么都没有,但是在access.log中我可以找到:

192.168.10.34 - - [22/Sep/2013:10:23:14 +0200] "OPTIONS /usvn/svn/test/trunk HTTP/1.1" 401 653 "-" "SVN/1.7.5 neon/0.29.6"
192.168.10.34 - admin [22/Sep/2013:10:23:17 +0200] "OPTIONS /usvn/svn/test/trunk HTTP/1.1" 200 1347 "-" "SVN/1.7.5 neon/0.29.6"
192.168.10.34 - admin [22/Sep/2013:10:23:18 +0200] "POST /usvn/svn/test/!svn/me HTTP/1.1" 500 548 "-" "SVN/1.7.5 neon/0.29.6"

SVN路径具有www数据的读写访问权限.

我能做什么?

解决方法:

我遇到了同样的问题,对py3r3str的修复不满意.我发现如果我更改了usvn / public / .htaccess文件,则可以从重写规则中排除该回购协议,这对我来说解决了这个问题:

<Files *.ini>
Order Allow,Deny
Deny from all
</Files>

php_flag short_open_tag on
php_flag magic_quotes_gpc off

RewriteEngine on
#RewriteCond
RewriteBase "//usvn/"
RewriteRule ^svn/ - [L,NC] #this is the rule I added to fix the 500 errors
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$- [NC,L]
RewriteRule ^.*$index.php [NC,L]

标签:debian,raspberry-pi,apache,svn,linux
来源: https://codeday.me/bug/20191030/1967540.html