Unknown hostname localhost when connecting to SVN

I have a RedHat 6 enterprise server that I have installed SVN 1.6 on. This machine is not on a network and has never been on a network. Eventually, it will be added to a network but not right now.

I am running svnserve to provide access to the repository.

  • Start ssh-agent on login
  • Remove an Openshift server from RHC
  • git clone from linux to a windows with git-upload-pack not found. Msysgit prepend “windows path” to git-upload-pack
  • How do I build git on Red Hat Enterprise Linux 3?
  • Change JENKINS_HOME on Red Hat Linux?
  • Git not using SSH when doing 'git clone'
  • svnserve is started as,

    svnserve -d
    

    When I run the command, svn co svn://localhost/<project name> I get the error message, “svn: E000111” Can’t connect to host ‘localhost’: connection refused.

    netstat confirms that svn is listening on 0.0.0.0:3690.

    I have read it pays to be more explicit with svnserve so I started it as follows,

    svnserve -d --listen-port 3690 --listen-host 0.0.0.0 (also tried 127.0.0.1)
    

    I get the same connection refused error message when trying to checkout.

    Next I tried checking out directly with the ip address rather than a hostname,

    svn co svn://127.0.0.1/<project>
    

    The error message I get back is nonsensical, “svn: E670009: unknown hostname ‘127.0.0.1’”.

    At this point I am stumped. I can’t seem to perform a checkout using the “svn://” protocol. I have already disabled the ipv4 and ipv6 firewalls.

    Any thoughts?

  • How can I setup subversion with ssh tunnel in Eclipse?
  • How to debug git svn fetch invalid XML
  • SVN to GIT migration failed using svn2git
  • Cannot svn update, An error occurred during decompression
  • How do I remove an SVN tag completely that contains spaces?
  • How to set a revision number for svn external?
  • 3 Solutions collect form web for “Unknown hostname localhost when connecting to SVN”

    When you have a network error, you can use the telnet command to see if you can connect to that port. You should see a response like this:

    $ pint localhost   # Does this give you anything?
    $ telnet localhost 3690
    Connected to localhost.
    Escape character is '^]'.
    ( success ( 2 2 ( ) ( edit-pipeline svndiff1 absent-entries commit-revprops...
    

    It could be that your network was setup to block port 3690. Check your software firewall and how SEL is setup.

    svn co svn://localhost:3690/project name

    you should add port number in the svn path.Try commands above.

    Not quite an answer, but you could try checking out over ssh (assuming the server is running an appropriate server).

    This would be something like:

    svn co svn+ssh://127.0.0.1/<project>
    
    Git Baby is a git and github fan, let's start git clone.