Unable to connect to SVN server on VPS : Subversion Configuration Problem

Posted by Pritam Barhate on Server Fault See other posts from Server Fault or by Pritam Barhate
Published on 2010-03-11T10:14:31Z Indexed on 2010/04/12 6:03 UTC
Read the original article Hit count: 444

Hello everybody,

I purchased a VPS account (centos-5-x86_64) from Hostgator mainly for the purpose of setting up an online Subversion Server. This is the first time I am managing a VPS and my linux skills are not so great, but I have basic knowledge of the OS and have been using it on and off as desktop from last few years.

So after foxing through a few tutorials online, as the first step I logged in using SSH root account provided by Hostgator and tried to run,

yum install mod_dav_svn subversion

As it turns out my account has Cpanel/WHM and since it some concept of easy apache straight forward procedure of yum install mod_dav_svn subversion won't work.

After that I found out how it can be worked out by compiling the source and stuff. But the whole procedure looked long and scary. [I am just a linux nub]. so I decided I would just skip whole apache integration stuff and just access the server using svn:// protocol, anyways that's how I configure svn on our LAN.

So I installed subversion using

yum install subversion

It installed fine.

Then I created a folder /svn_repos/testproject

and ran

svnadmin create /svn_repos/testproject/

No Problems

Using vi I changed svnserve.conf and passwd files for the repository and added a user with my name. Anonymous users don't have any access, authenticated users have write access.

Then I started svnserve using

svnserve -d

then in same terminal window

svn list svn://localhost/svn_repos/testproject

Asks for authentication for realm, provided root password then for svn username and password. Provided both. The command returns nothing but exists properly. Returns nothing is understood I didn't import anything.

But if try to access svn remotely using in another terminal:

svn list svn://ip.add.of.server/svn_repos/testproject svn: Can't connect to host 'ip.add.of.server': Operation timed out

Is what I get.

Parallels Power Panel that I got from Hostgator reports that:

The firewall is not active now. To activate the firewall, choose one of the firewall operation modes.

So if firewall is not running and I can access svn using localhost, why the operation is timing out when I try to access svn from a remote machine?

Experienced network admins please help.

Thanks in advance. Also please suggest a good book which gives detailed information on configuring Dedicated servers + WHM and CPanel.

© Server Fault or respective owner

Related posts about vps-administration

Related posts about subversion