I have to connect with an SVN Repository from Eclipse, using Subclipse plugin but I can't.
I can access through browser and TortoiseSVN but every time I try with Eclipse I get "timedout" error.
Through TortoiseSVN it takes a while but I can make it, so I'm thinking it may be a problem of timeout configuration with Subclipse. It stays "connecting" like 5 or 10 minutes, then throws the error. I tryed changing the servers file from AppData\Roaming\Subversion, uncommenting the line:
http-timeout=120
But still can't connect.
NOTE: I can't post the URL of the repository because it's from work.
Maybe you need to configure a proxy server or something? It sounds like your repository URL is http or https? The Subclipse code uses the same libraries as TortoiseSVN so should work the same and respond to the same settings, though TortoiseSVN is able to configure some settings in its UI that you have to configure in the Subversion servers and config file when using Subclipse.
Related
I installed CollabNet Subversion Server on my server and had been using it with Eclipse on my desktop for a long time. Through some Eclipse changes, my SVN client install was lost (the server was untouched). After re-installation of the SVN client plug-in, I am unable to re-connect my projects with the SVN repository; I don't know the URL or anything.
When I open "SVN Repository Browser" in Eclipse, right click and select New > Repository Location, It asks me for a URL. I have typed "file://machineName" and "http://machineName", then the Browse... button, but I get "An error occurred while accessing the repository entry". Since the server hasn't changed, and I see that svnserve.exe is listening on 3690, and httpd.exe on port 90, I presume there's more needed on the URL, but I don't know what that is.
Resources available to use to recover the connection to the repository:
The .svn file in the project folder
The files on the server supporting the repository
svn.exe on the server (it says '.' is not a working copy when I tried a few commands). I don't have svn.exe on the client machine.
Where should I look to see how to reconnect my projects with the CollabNet svn server?
Make sure the expected Eclipse SVN plugin is being used (subversive vs subclipse, etc).
Try connecting with svn://
collabnet has its own plug-in try to install them from eclipse marketplace in Help menu.
Check the repository name it should be
"http:// [Your_Machine_name] / svn / [Your_Repository_name]"
I manually installed Eclipse Juno Java EE on my Ubuntu 12.04, inside the /usr/lib folder, then proceeded creating a link to the eclipse executable under /usr/bin and finally successfully started the program.
After installing the Subversive plugin, a prompt asked me to restart Eclipse, that I did since I know it's important to immediately install the connectors. However, with this setup I didn't get the Subversion Connection Discovery window on startup, nor any error in the error log view.
Now I have the Subversive plugin correctly installed, but no connector set up, and I seem not to be able to find a way for the Connection Discovery window to show up.
I would like not to use backup solutions (i.e. manually installing connectors from repositories) but solve this issue and get the normal procedure, since this is an installation I'll have to deal with for a while, and I feel this problem is a symptom of something wrong in my setup.
Create a dummy project, use Team -> Share, select SVN. The dialog should come up automatically now.
Alternatively install the connectors without the discovery dialog as described in several other SO question like: Subversive SVN Connectors does not appear in eclipse juno. You have to make sure that the update site matches your version of eclipse.
At least in my Eclipse (4.5), there is a button "Get Connectors" in the "Connectors" tab, if I visit Window/Preferences/Team/SVN. That button did the trick for me.
You will get the Subversion Connector Discovery from
Windows- Preference- Team- SVN -Svn Connector - Click on Get Connection Buttion
I have an SVN repository location via svn+ssh protocol in eclipse Indigo with Subclipse 1.8 on a Kubuntu 12.10.
Now, in order to access this outside our network, I need to go via another port. It worked with the previously used Subversive Plugin by editing the repository location and enter the new port number. But I don't see such a thing in Subclipse.
I tried the relocate option and entered the port in the url after the host in the common host:port format, which seemed to be fine at first, since it triggered again the authentication popup and within that had the port set correctly. But after confirming, the relocation didn't finish and eclipse had to be killed.
Can someone tell me what to do? And if there is really no option for that in Subclipse, maybe through some OS mechanism?
PS: I had to change the eclipse plugin since svn was updated to 1.7 and Subversive does not provide a connector for it within the Indigo release.
The port is part of the Subversion server URL. If you need to change the URL of the server in Subclipse, then the way to do it is with the Relocate option. This has to run through all of the working copies that are linked to that server and run the svn relocate API so that the working copies are pointing at the new server URL.
You do not mention what OS you are using, or whether you are using SVNKit or JavaHL. This matters because it will also determine how SSH is managed. Eclipse may have been hung up because a command line SSH tool was being spawned and there was no Terminal to provide answers to the prompts it wanted to provide. If you are using OpenSSH, then as long as you are running something like ssh-agent to manage your keys, you can avoid this. If you use SVNKit, then it provides a Java-based SSH client that will provide GUI prompts within Eclipse.
When trying to use subversive with my beanstalk svn repo (https://beanstalkapp.com) I get the following type of error:
Some of selected resources were not committed.
svn: Commit failed (details follow):
svn: Received fatal alert: bad_record_mac
This works fine via the command line, just not with eclipse or the subversive svn plugin. I've read that its to do with not allowing old versions of SSL but cannot find any way of fixing it in eclipse.
Thanks!
In case anyone is still interested, this seems to be an issue with SVNKit 1.3.6 (and the 1.7 betas) and JDK6. I was also having the same issue using my beanstalk svn repo. I think the bug may be related to this report.
http://issues.tmatesoft.com/issue/SVNKIT-176
Once you look more into it it's apparently a longstanding problem in JDK6 and that type of forced SSL connection from the server, though their solution did not work for me whatsoever (maybe I was totally doing it wrong).
So the "solutions" as it were, are to:
a. Develop with JDK7
b. Just start Eclipse with a 7.0 JVM (-vm parameter, continue developing with JDK6)
c. Go back to SVNKit 1.3.5 (again continue using JDK6)
d. Forget SVNKit altogether and use JavaHL (omg this is a whole new can of worms if you are using 64bit JVM)
e. Try adding that setting in eclipse.ini (I tried for hours... still got the same error trying to use svn repo)
I unfortunately went with option D for now. The rest I tested and all worked as well (cept the last).
Turns out you can use beanstalk without SSL (thanks Ray) which solves the problem for me.
Try to use -Dsvnkit.http.sslProtocols=SSLv3
I am a brand new Linux user configuring my first-ever dev sandbox in Ubuntu. I have installed Java and Eclipse and am trying to get either Subversive or Subclipse (I don't have a preference either way) but have a few questions before I start that process.
I just opened Synaptic and downloaded subversion through it.
(1) I'm not really sure how SVN deploys locally. My understanding is that SVN has a client and a server; the server manages the repository(ies) and the clieent just sends commands to the server. Is this correct? If so, then what did I download through Synaptic? The client, and/or the server?
(2) Do these Eclipse plugins come with SVN (client or server...?) or do you have to pre-install SVN prior to installing these plugins? Basically: is SVN a pre-req for Subclipse or Subversive?
Looking back at these 2 questions if someone could first explain to me the architecture of SVN, then explain how that architecture translates to downloading SVN via Synaptic, and then how it translates to downloading/installing either Eclipse plugin, I would see the "big picture" a lot better.
Thanks for any and all help!
I use subclipse with svnkit. Both can be installed from update site of subclipse. Works fine. No other sotware needed. You need to set svnkit instead of javahl. This can be done in preferences.
Installation Help/install new software.
Update sites depending on the version:
http://subclipse.tigris.org/update_1.8.x
http://subclipse.tigris.org/update_1.6.x
Setting window/preferences. (pick svkit at bottom):
You downloaded the SVN server. You can have multiple SVN clients connecting to it.
The Eclipse plugins do not come with SVN. You need to download them.
Once you install the plugin, you can connect to SVN repositories. If you want to connect to your own SVN repository, of course you need to install SVN and create it first.
However, with just the plugin installed, you can connect to any existing public repositories, or any other SVN repository to which you have access.
Example: If you install the plugin, without installing SVN, you can connect to this Apache Repository.
Hope that answers your questions.
1º question: You are correct. About Synaptic, I think it's the server one.
2º question: No, it isn't! Eclipse's plugin it's the client and you don't need to install the SVN outside the IDE. It's all embedded.
More info that could be useful:
How to configure SVN in Eclipse using Assembla repository:
Create or open your existing project in Eclipse.
Be sure that the SVN's plugin it's correctly installed into Eclipse.
Copy your project's url at the Assembla's web site.
Click with the right button over the project > Team > Share Project > SVN
At the showed window, copy the path to your project into the URL field. Remember of /trunk at the end of URL.
Inform your user (watch out, it's your user, not your e-mail) and password into the required fields and check the option: Save Authentication, otherwise your login and password will be required all the time.
Click over Finish.
The commit's screen will open for you add some comment and upload the files of your project. Remember that even being a new project, Eclipse will create all the default folder's structure for the project.
Click at Ok and it's done! Your code will be uploaded to the Assembla's online server.
Now open the Assemblas's web site, access the trunk folder into your repository and then explore your project's source code. Try the comments and see the automatic format applied over the code so it become more readable.
Here it's some advantages of Assembla service:
Unlimited useres working in the same project.
Easiness of use, create, import projects and use all the service, besides of huge documentation and support.
1 GB of space.
Online access to the source code, with the possibility of comment it.
Encrypt data traffic.
Integration with many tools of the site, which are excellent, but payed separately.
Possibility of, at any moment, hire any of the payed services, which offers an incredible amount of benefits for a fair price. (Look at the services list).
If so, then what did I download through Synaptic? The client, and/or the server?
From the Subversion package description in Ubuntu 10.10:
This package includes the Subversion client (svn), tools to create a Subversion repository (svnadmin) and to make a repository available over a network (svnserve).
So you have both the client software, and the software to create and serve your own repositories.
(2) Do these Eclipse plugins come with SVN (client or server...?)
No, you need to install subclipse.
do you have to pre-install SVN prior to installing these plugins?
As long as you install it via a package, you don't have to worry about this. The package management in ubuntu will make sure that any dependencies are installed automatically. AFAIK all package management systems of gnu\linux distributions of note have this feature.
The easiest way:
Help --> Eclipse MarketPlace, search subclipse, click install, and then follow the instructions to finish up the installation process.
One way to clear up your confusion could be to first use a free hosted Subversion repository, such as http://assembla.com.
Then you can download all of the SVN clients, including the Subclipse plugin, and commit a test project to the SVN repository on Assembla.
I recommend Subclipse as it's allegedly supposed to play nicer with other Subversion clients, which means you'll be able to use command line SVN as well as the Team context menu in Eclipse.
http://subclipse.tigris.org/
After playing with this configuration and being sure your client side is correctly configured, then you could look into installing a subversion server locally. Eliminating variables by clearly separating client and server will definitely help you avoid confusion at first.