Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in the process of trying to move a ViewVC setup (along with Subversion repositories) from one server to another.

I have already created an empty "ViewVC" MySQL database and a database user to access it.

The command

/usr/lib/viewvc/svndbadmin -v rebuild /path/to/repo

still fails, apparently because the the database is not initialised properly (I was hoping "rebuild" would do that for me).

According to the INSTALL file, one should probably use the <VIEWVC_INSTALLATION_DIRECTORY>/bin/make-database script for this. However, the Debian ViewVC packages do not contain such a file! These are the packages I have installed:

$  dpkg -l|grep viewvc
ii  viewvc                1.0.5-0.2  view CVS/SVN repositories via HTTP
ii  viewvc-query          1.0.5-0.2  utility to query CVS commit database

My question is, how are you actually supposed to set up a ViewVC commit database on Debian? Google and ViewVC FAQ didn't seem very helpful with this, so I thought I'd give Server Fault a shot.

share|improve this question
up vote 4 down vote accepted

Ah, /usr/lib/viewvc/make-database script is included, in the viewvc-query package. Silly of me to miss that one (or I'm just too tired today).

So it's a simple matter of:

 sudo /usr/lib/viewvc/make-database

...which will prompt you for MySQL username, password and database name. (Note that this clears all commit data if a ViewVC database with that name already existed.)

After this, sudo /usr/lib/viewvc/svndbadmin -v rebuild /path/to/repo works nicely.

Thanks and sorry.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.