Mac OS X (snow leopard) and SVN (1.6.2)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.