Tuesday, September 1, 2015

Common Subversion Errors with Apache

Error: Can't open db/txn-current-lock - permission denied

This is one of the common error while accessing SVN via Apache httpd server.
This error comes due to misconfiguration of Apache and SVN
Here are the additional steps which you need to perform to resolve this issue.
  1. Configure run apache with non root previledged user. 
  2. Give read and write permission to that user on SVN repository folder
Example:
  • useradd -s /sbin/nologin apache-user
  • Change in httpd.conf
    User apache-userGroup apache-user
  • Restart apache
Change user ownership and file permission on SVN repository folders
  • chown -R apache-user /path/to/repository
  • chmod -R 770 /path/to/repository

Error: Couldn't open rep-cache database" (post commit FS processing)

If you are using PHP on Apache which is loading SQLite can cause this issue.
This issue comes when any older version of SQLite modules loaded by Apache.
Check your Apache configuration and load mod_dav_svn before mod_php