Just in case you might ran into this problem:

I installed the SVN package QPKG SVN on my QNAP NAS server to have my subversion server running there. This package comes with SVN 1.6.17 . It’s easy to install via the package manager and also the brings the deamon service with it, so no further action required after NAS restarts. All my old SVN repositories were working fine. After i created a new Repository via command line i got an error message „Couldn’t open rep-cache database“. This are some version problems. Two simple fixes:

Creating the Repository fix backwards compatible flag:

# svnadmin create --pre-1.6-compatible /path/to/repos

Change the load order of the Apache modules in your http.conf file:

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule php5_module modules/libphp5.so


2 thoughts on “ QNAP SVN – Couldn’t open rep-cache database ”

  1. Thanks for posting this. Most of the other noise about this error on the web doesn’t have any practical solution. The load order of Apache modules did the trick for me. However, it wasn’t the libphp.so that was causing the issue since I’m not loading that at all. I think in my case, it might have been mod_dav_fs.so that needed to load after mod_dav_svn.so. In any case, thanks for taking the time to share this info.

  2. Thanks for this post. The compatibility option did the trick with newly created repositories. I did not want to change the old ones.

    I have found elswhere trick No 3. that helped me with the current ones created with svn 1.6. – sqllite upgrade

    ipkg install sqlite

    Upgrading sqlite on root from 3.7.3-1 to 3.8.1-1…

    I hope it might help someone who gets here as I did…

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert