[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 995
  • Last Modified:

Running multiple SVN repositories using svnserve on Centos

We set up an SVN server according to the instructions here:

http://www.civicactions.com/blog/2010/may/25/how_set_svn_repository_7_simple_steps

And it worked great, we configured two repositories on that server, which were accessible as two SVN paths e.g.

svn://server/repo1

and

svn://server/repo2

Acting normal, both on same port.

We had a power cut and the service didn't start - and came up with an error like so:

svnserve root path '/var/svn' does not exist or is not a directory

Open in new window


Which has never been a used path on our system.

After messing around for ages we got the daemon to start with the command:

svnserve -d -r /repo1 

Open in new window


But this only presented one repository.

How can we set up the default configuration to present both repos on the same port somehow?

It's Centos 7.
0
butterhook
Asked:
butterhook
  • 2
  • 2
1 Solution
 
gheistCommented:
You must use apache and mod_dav_svn
(Or SVN+SSH)
0
 
butterhookAuthor Commented:
Hi there

The solution was in fact to remove the default options from /etc/sysconfig/svnserve as these were confusing the daemon.

svnserve -d with no parameters allows connections to any repositories by explicit path, which is what we wanted.
0
 
gheistCommented:
Add at least -r /repos/ parameter and dont serve all your filesystem....
0
 
butterhookAuthor Commented:
We fixed it!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now