Mac OS X (snow leopard) and SVN (1.6.2)
Today I spent a few hours trying to figure out why eclipse was unable to connect to my locally running Subversion server. I was annoyed especially because xcode and terminal were not having any issues.
Some background information.
-SVN is running as a daemon locally. It gets started:
Svnserve-D-Listen-host localhost-r/library/subversion/Repository
-Trying to checkout stuff using the command below via Terminal works fine
SVN Co SVN: // localhost/project1/trunk workingdirname
-Trying to browse the svn Repository from within eclipse 3.5 Galileo using either subclipse or subversive always ends up:
SVN: Connection refused by the server
I tried got things but none of them helped. I googled but failed to find something relevant. just before giving up I thought I wocould check what ports were open on my machine, maybe there was some conflict. there was no conflict...
Netstat-anp tcp | grep listen
Returned this:
Tcp6 0 0: 1.3690 *. * listen
That's when it dawned on me: The svnserve was binding an IPv6 address and eclipse cocould not handle that!
Solution:
PS-Ef | grep svnserve
Kill-9(Where proc_id is the process ID of your svnserve, the second number on the line)
Svnserve-D-Listen-host 127.0.0.1-r/library/subversion/Repository/(Or wherever you 've placed your repository)
Done! Now svnserve is bound to an IPv4 and eclipse can play nice too.
Cheers...
P.s. Please let me know if this worked with other Mac OS/SVN versions too