Linux – Subversion Commit/USVN/500 Internal Server Error on Raspberry Pi

Subversion Commit/USVN/500 Internal Server Error on Raspberry Pi… here is a solution to the problem.

Subversion Commit/USVN/500 Internal Server Error on Raspberry Pi

I’m using User-friendly SVN on my Raspberry Pi. Pi runs with Debian Wheezy.

The repository is being created and I can check out and update the repo without any issues. But when I create a file, add it to the repository and try to commit, I get this message:

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'

There is nothing in error.log, but I can find in 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 paths have read and write access to www data.

What can I do?

Solution

I’m having the same issue and not happy with the fix for py3r3str. I found that if I changed the usvn/public/.htaccess file, I could exclude repos from the rewrite rules, which solved my problem:

<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]

Related Problems and Solutions