Not able to import openshift application in eclipse - eclipse

I am using eclipse to connect with openshift.
Below are the steps that I have taken.
sign up in openshift
created a "JBOSS Application Server 7" application
downloaded Eclipse Mars
downloaded openshift tools from the eclipse marketplace
from options selected import and choose openshift
sign in to openshift from the prompt(with default server location)
choose "Use my existing openshift application" and from the browse tab selected that application which I created in openshift & clicked next
selected "create a new project" in the next window and clicked "Next"
in "Cloning setting" browse to the location where I want to clone my application
in the same tab clicked on "SSH Keys wizards" and created a new SSH key.
in SSH2 preferences checked that my new key is present or not.(it was present).
clicked finish
it displays cloning from ssh://<url>
and then displayed
Could not clone the repository. Authentication failed.
Please make sure that you added your private key to the ssh preferences.
ssh://56fdfdad2d5271507d000049#btech-jmi.rhcloud.com/~/git/btech.git/: Connection timed out: connect
I have used this steps with several other ecplise versions i.e. mars, indigo, luna, helio (none of them worked).
I used above steps in all of them.
To see if public keys are uploaded on the remote server that checked and found that the public keys are being uploaded every time on the server.
Really stuck at this point.
I have also googled for other ways to do this, but none of them are working for me, I think I am missing something.
I remember doing the same steps sometimes back and it worked but not working this time.
Please help

I found out that, the reason for this problem was due port issue. In my university they are using cyberoam and they have blocked some ports which were being used by ssh to fetch data from remote.
I just tried same steps at home and it is working as expected.

Related

Unable to Finish connecting to SonarQube server

This is going to sound like a ridiculous question, but using the SonarLint Eclipse plugin (v3.2.0) on the latest Eclipse (Oxygen), I am unable to add a new SonarQube server connection.
I am working behind a company firewall, but that doesnt appear to be an issue. I am following the steps here and am able to successfully connect to our internal SonarQube instance, provide my credentials, but it is just on the final step, that the 'Finish' button does not seem to do anything, see screen below:
I appreciate there is probably some background processes need to run in order for this Finish to actually finish :) But this doesnt appear to be doing anything...Anyone else experience this issue?
Any before people ask, I've restarted Eclipse/laptop, uninstalled and reinstalled SonarLint plugin etc.
Thanks in advance!
SonarLint in Eclipse are storing credentials in Eclipse secure storage that itself is protected by a master password. So you must reset it or delete it to add a new SonarQube server connection. You can try this step :
In your Eclipse Go to Window > Preferences, filter and find Secure Storage.
In the Tab Contents find and highlight org.sonarlint.eclipse.core, click Delete > Apply > OK. After deletion process is finished, Eclipse will ask if you want to restart the IDE. It is strongly recommended that you restart the IDE and try again to adding SonarQube server in Eclipse.
Thanks.
On my linux machine I had the same issue, because the used master password provider doesn't work properly.
This answer worked for me:
Open Window > Preferences
Go to General > Security > Secure Storage
At Master password providers uncheck the used provider. The enabled provider with the highest priority is the used one [for me it was "Linux Integration (64 bit)"].
Click apply
I also encountered this problem, but was able to work around it.
This is environment in which I was running:
Eclipse Oxygen.1
Linux VM (VirtualBox) on Windows host
Solution that worked for me based on this post:
Uninstall SonarLint.
Reinstall using Help -> Install new software...
On the Install dialog, un-check the option "Show only the latest versions of available software"
Select the older version of SonarLint.
Select Next and continue with the install.
After installing, configure your SonarQube server like normal.
Upgrade to the latest version of SonarLint via Help -> Check for Updates
In my case the problem also concerned the credentials storage but was caused by the Avecto Defendpoint Client. The company restricted the permissions to create subfolders in user home (c:\users<username>). I had to create manually missing subfolders (.sonarlint and .eclipse) after access level elevation and after filling the reason in a text field. Then I had to give the permissions to those folders for myself. Having created them I could proceed with adding server to sonarlint plugin.

How to create openshift application for OPENSHIFT ONLINE 3 STARTER (NEW!) server in Eclipse IDE?

I am trying to create an openshift3 application in Eclipse IDE after installing JBoss Developer tool plugin in IDE, But getting below error at the time Sign into OpenShift.
Error: The server type, credentials, or auth scheme might be incorrect:
I have also tried other server hostname like https://console.starter-us-east-1.openshift.com/console/ and much more, but still not working.
While, when I tried to log in using OC tool (OpenShift CLI) with the same credential (as seen in picture), I haven't got any error.
I also tried to run RHC (OpenShift Client Tool) but at the time of RHC setup it is saying "You are not authorized to perform this operation."
Please help me to solve it out.
First of all, it looks like you're using an outdated version of the JBoss Tools Openshift plugin, because the "New Openshift Application" wizard looks a little bit different at the moment. So try to update it:
Help -> About Eclipse -> Installation Details -> Update... - and choose at least all the JBoss Tools plugins that it'll report to you (the best will be to choose everything reported) and update them.
Secondly, what is the URL which you use to access the Openshift web console in your browser? It seems to me that it is https://console.starter-us-east-1.openshift.com. Are you able to login there with your credentials? If yes, the same must work in JBoss Tools Openshift plugin. Check this and this articles for more info about using it.

Cannot Sign In to OpenShift using Eclipse IDE

I am currently learning OpenShift and would like to experiment with a few examples. I have created an OpenShift account (using my github account as a login) and was able to create a new project and deploy an application online. Note that I'm using OpenShift Online (Developer Preview) which I think is OpenShift 3.
Now, I'd like to import that OpenShift project into Eclipse IDE. However, I cannot sign in to connect to the online server.
I tried both the versions 2 and 3 of the OpenShift server unsuccessfully. Attached is a screenshot of the error I'm getting
As shown on the screenshot, I can get a token when clicking the retrieve link (which does take me to the OpenShift site, with a token generated. This shows that eclipse does connect to https//console.preview.openshift.com).
I've also tried authentication with both username and password, leading to the same outcome.
Any help is appreciated.
This error is because you are using the free version. You need to use you console address in 'Server:' that you get after clicking the 'Open Web Console' button that you get after logging in to openshift.
This url should be something like this: "https://console.starter-us-east-1.openshift.com/console/catalog". You may use just "https://console.starter-us-east-1.openshift.com". And then click 'Next', it should work.

Eclipse can not connect to internet

I am using Eclipse 3.6. I am trying to download a plug in from an update site, but it won't connect, it keeps saying "Pending" for quite some time.
Not alot of information there. It helps to let us know what you have tried...
I'll quote an answer I gave to a similar question, which contains the basic workarounds:
Can you connect to internet at all through Eclipse?
Open the internal webbrowser. In Eclipse: Window -> show view -> Other -> General: Internal web browser. Look up any normal adress, is it working?
Can you connect to another update site? Try for example Eclipse Emma: http://update.eclemma.org/ Do you see anything there?
What are your proxy preferences? Go to Window -> preferences -> General: Network connections.
The active provider:
Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the connections to be opened without the use of a proxy server. Selecting Manual causes settings defined in Eclipse to be used. On some platforms there is also a Native provider available, selecting this one causes settings that were discovered in the OS to be used.
If internet is working fine outside of Eclipse, try changing to Native. After that, try Direct.
Here's one more option to try if none of the efforts above helped. You might be using Eclipse from a Shared Drive (for eg, H:). If so, move/copy it the entire Eclipse directory to C: and try again.
My Eclipse could not connect to internet, nor access Eclipse Marketplace, nor even open ports for Tomcat server. I am behind a corporate proxy and tried many options that I have found on Stack Overflow and other forums but to no avail. I've also tried different versions (Mars, Luna, Kepler and a corporate-provided Kepler).
These are the options I have tried:
Use Direct Connection
Go to Windows > Perferences > General > Network Connections.
Change Active Provider to Direct.
Restart Eclipse.
Set up Manual Proxy
Go to Windows > Perferences > General > Network Connections.
Change Active Provider to Manual.
Input proxy details, including username/password if required.
Clear SOCKS proxy.
Restart Eclipse.
Change Eclipse.ini
Go to Windows > Perferences > General > Network Connections.
Change Active Provider to Native.
Open Eclipse.ini.
Add the following under -vmargs, each on its own line.
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=myproxy
-Dhttp.proxyUser=mydomain\myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.nonProxyHosts=localhost|127.0.0.1
-Djava.net.preferIPv4Stack=true
Restart Eclipse
See:
Unable to connect to the Eclipse Luna Market
How do I configure the proxy settings so eclipse indigo can install new plugins
https://wiki.eclipse.org/Disabling_Apache_Httpclient
See answer by Ruhr Dev on Thu, 29 December 2011: https://www.eclipse.org/forums/index.php/t/270718/
Add Eclipse to Firewall
Go to Control Panel > Windows Firewall (or your own firewall)
Add Eclipse to whitelist (see https://stackoverflow.com/a/35508990 for Windows Firewall)
Delete Oomph-releated sub folders
Delete all Oomph-releated sub folders in ${user.home}/.eclipse/ folder
For Windows this may be in C:\Users\.eclipse
See answer by Stephan EberleFriend on Fri, 14 August 2015 18:54: https://www.eclipse.org/forums/index.php/t/270718/
See my other answer for Eclipse not able to open ports for Tomcat (https://stackoverflow.com/a/37246227/4212710).
If eclipse could not able to connect to internet, following may be one of the reason:
There is a service called "Network Access Protection Agent", which might be blocking eclipse from accessing the internet.
In this case, you can try the following (this worked for me-Windows 7 PC):
1. Click on Windows Start button and search for Administrative Tools and Open it
2. Then open Services
3. Look for "Network Access Protection Agent" service
4. Stop this service
5. Now eclipse should be able to connect to internet
Note: This happens when Windows are not up to date. So after stopping this service, update your Windows, then start this service.

Problem on installing new software on Eclipse Galileo Platform

I want to install a subversion on my eclipse.
So I went to Help < Install New Software and when I pick the "Galileo - http://download.eclipse.org/releases/galileo" in the "Work with" dropdown, it tells me in the main box "No repository found at http://...".
It is appearing in my available software sites and when I test the connection it returns me an error saying Unknown host.
Can someone please help me, I really need to install that subversion :).
Anna
As mention in this thread, this could be a proxy issue:
I assume you mean you used a web browser to get that - if so, is it
configured to use a web proxy? If your browser is using a proxy then
you need to configure Eclipse to use one too (see the General/Network
Connections preference page).
Since 3.5 Galileo, The Network Connection page has been changed to better show the current proxy configuration.
Now if you go to Preferences > General > Network Connections, you are able to see and change Eclipse proxy settings as well as see settings provided by the operating system.
If you want to use your browser or Gnome settings, or you have your proxy configured using environmental variables on Linux, you can see them all in this new UI
So to set your proxy, you can follow this tutorial (How to configure Proxy Settings in Eclipse)
The severity of the bug is downgraded, since there is a workaround. Open the eclipse.ini file and add the following
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
In a few words the above command says that Eclipse can access the web via the *.pac files of the HTTP clients (eg Internet Explorer or Firefox).
To summarize:
Add the above line at the ini file
ensure that your default system http client (eg Internet Explorer) has proxy settings configured
Go to Eclipse Window->Preferences->Network Connection and enter the proxy setting here as well
It should work with this workaround
I'm not sure which Subversion client you use but neither of them can be installed from the main Galileo site. Follow the instructions on the web page of the Subversion plug-in how to install it.