Subversion Connection: RA layer request failed - eclipse

Out of the blue yesterday afternoon, subversion connections from my Eclipse IDE to our Subversion repository have been failing (with both Subversive and Subclipse).
I can browse the subversion directory via the browser and it only connections via Eclipse that are failing (I am using a MacBook Prod Mountain Lion OSX 10.8.1; latest Java from Apple 1.6.0)
Message receive when attempting subversion connection:
"RA layer request failed
svn: OPTIONS of 'http://example.com/tags/project': Could not read status line: Connection reset by peer (http://example.com)"

Are you trying to browse the repository, or do you have an existing working copy you are trying to update? I think you are probably not entering a proper SVN repository URL. Just because the browser is working, does not mean that is the right URL for the client. It might be. It depends whether you are browsing the repository directly or using a web GUI.
The problem could also be related to a proxy server. If you need a proxy server, odds are that your web browser is already configured to use it. However, SVN clients have their own configuration for proxies that has to be configured separately.

Related

SSL handshake failed remote host closed connection during handshake in Eclipse

I am trying to create a repository in Eclipse. The code that I need is hosted in a VisualSVN server. I am trying to use its trunk URL as the repository location, but when I try to connect to the URL through Eclipse's SVN plug-in, it fails with error SSL handshake failed.
I am using a proxy server.
I have seen solutions mentioning modifying the settings like so:
-Dhttps.protocols=TLSv1.1,TLSv1.2
Source: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake during web service communicaiton
I figured out my issue. I had to open my network connection settings in Eclipse and change the 'Active Provider' to manual instead of native. I had to do this because my visual svn server was not allowing me to connect to it through a proxy server, and native was using the proxy.
(also, I checked this at the get-go but it was not showing my proxy server for some reason in eclipse's network connection dialog box)
Update SVN plug-in that you use in Eclipse. It seems that it is very outdated.
Try setting the TLS/SSL compatibility level to Legacy in VisualSVN Server's settings.

SVN plugin issue in eclipse

I have installed SVN plugin to my eclipse by 'Help->Install new software'. Used the URL - http://subclipse.tigris.org/update_1.6.x.
After installation, I tried connect my SVN URL(http://svnserver.com/svn) which worked others machine in tortaise svn. It got prompted with credentials, then it ended up with below error message in eclipse.
RA layer request failed
svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'http://svnserver.com/svn'
Note : I have connected client network in citrix (Cisco anyclient) after disabling the proxy in my machine.
Eclipse platform is v3.6.3
You should make sure that the SVN plug-in installed in Eclipse is up to date and that the entered URL is correct. Generally speaking, the error 500 Internal Server Error indicates a problem with the server. However, invalid repository URL might also produce such error in certain cases.
I have resolved my issue by adding host under proxy bypass in Window->preference->General->Network connections(Active provider = Manual).

Connecting Eclipse to SVN server only when needed

I have installed SVN server on my Synology NAS and have successfully connected my Eclipse Java project to it.
However, I do not want to have the NAS online all the time.
I have not been able to see how I can get the SubVersive Eclipse plugin to connect to SVN "on demand" only.
Is this possible ?
Is it "safe" for me to work like this ?
Subversion already works in this way. It's designed to work in an "offline" mode, only communicating with the server when performing checkouts, commits, locks, updates, looking at logs, etc. If you're not performing an operation which requires data from the server, the client doesn't attempt to contact the server.

GitHub: Refresh failed: Could not connect to remote server

On GitHub Desktop (I use it on Windows), I have had this error over the last few days:
My Internet connection seems to work fine though. What could cause the issue?
Is your internet connection goes through firewall/proxy server. I found that GitHub Windows client is only reliably works when no proxy enabled. Being windows (.NET to be precise) application it takes proxy settings as they defined in Internet Explorer connection settings. Meanwhile, Git itself, which GitHub Windows client desktop application simply uses via command prompt, is governed by http and https proxy settings in .gitconfig file or environment variables. This discrepancy makes it quite sophisticated to setup.
What's interesting, is that desktop app was working the first time I installed it fresh (never had it on this Windows), but it wasn't able to connect to GitHub. Then I started to fiddle with --global http/https settings and I broke the app. Now, even uninstalling and installing it back again, I still have connectivity issues, as it seems to remember settings somewhere, as it doesn't prompt me with welcome screen and does remember my name.
Worth to mention, that even if the app complains about connection, I can clone the repo with it.
This worked for me:
In Internet Explorer: Tools/Internet Options/Connections/LAN Settings
Uncheck "Use a Proxy server..."
Restart GitHub.
You might also be able to disable the Proxy Server via Edge. In my case, I found that after turning it off in IE, it was off in Edge also.
Edit: I also had to update the GitHub application in order to be able to clone to my local repository.

Unable to access a repository with Eclipse SVN plugin

I have a problem to access the following SVN repository http://primefaces.googlecode.com/svn/ using Eclipse and Subclipse or Subversive plugins and JavaHL or SVNKit.
I have this problem only with Eclipse on the computer in my office. With Firefox it works fine and at home it works fine, even with Eclipse.
The error is
Get revision properties operation failed.
RA layer request failed
svn: Server sent unexpected return value (400 ) in response to PROPFIND request for '/svn'
It's likely a firewall issue and a question of user-agent.
I've already asked to the network administrator to check the firewall configuration and he will probably manage to solve it but I'd like to know if there are any other solutions ? For instance, "hacking" the default Eclipse SVN client user-agent, or anything else?
Any idea?
HTTP uses port 80, and I doubt your office is blocking port 80. Does this URL work in a web browser from your office? If it does, see if there's a proxy setting for http.
You might be able to set it up in the $HOME/.subversion/server file. Look under the [global] section and look for the proxy configurations listed there.