SonarQube - Fail to connect to update center with no proxy - sonarqube

I installed SonarQube 5.6.3 and when I go to Update Center, I can only see "Installed" plugins. But the other tabs don't show anything (0 shown). I'm not using a proxy. The logs show the following:
ERROR web[o.s.s.p.UpdateCenterClient] Fail to connect to update center
org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties (no proxy)
at org.sonar.core.util.DefaultHttpDownloader.failToDownload(DefaultHttpDownloader.java:157) ~[sonar-core-5.6.3.jar:na]
I tried downloading manually the file https://update.sonarsource.org/update-center.properties using wget and it worked fine.
Why is not working from UpdateCenter? Do I need to specify anything in sonar.properties file?
The only line related to Update Center in sonar.properties is: sonar.updatecenter.activate=true

You are using IBM JDK that does not behave like Oracle JDK with TLS connections. And without setting com.ibm.jsse2.overrideDefaultTLS to true, the application is unable to connect to the Update Center that is using TLS 1.2 (http://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/com.ibm.java.security.component.80.doc/security-component/jsse2Docs/matchsslcontext_tls.html#matchsslcontext_tls)
Adding -Dcom.ibm.jsse2.overrideDefaultTLS=true to sonar.web.javaOpts in conf/sonar.properties will solve your issue.
I highly recommand to add this property (-Dcom.ibm.jsse2.overrideDefaultTLS=true) to sonar.web.javaOpts, sonar.ce.javaOpts and sonar.search.javaOpts
Cheers,

I followed the suggestion from Eric, and installed Java from Oracle, instead of IBM. Before doing that, I tried adding -Dcom.ibm.jsse2.overrideDefaultTLS=true to java options, but nothing changed. As soon as I changed to Oracle JRE, the Update Center started working as expected.
Thanks a lot for your help

Make sure that you set your http and https proxy configuration in sonar.properties:
http.proxyHost=<host>
http.proxyPort=<port>
http.proxyUser=<username>
http.proxyPassword=<password>
https.proxyHost=<host>
https.proxyPort=<port>
https.proxyUser=<username>
https.proxyPassword=<password>

Before you try any options available here, please check the internet connectivity to sonarqube machine and check(refresh) the ALM configuration again.

Related

-INTELLIJ IDEA 2020.3- Cannot connect to demostore.gatling.io

I am trying to execute a Gatling scenario to the https://demostore.gatling.io website, after register it through Chrome HAR export (inside my dev environment).
Import and everything goes smoothly, but when I run the scenario I receive the following error:
i.n.c.ConnectTimeoutException: connection timed out: demostore.gatling.io/54.147.169.32:80
I then tried to set up the IntelliJ proxy from Settings → System Settings → HTTP Proxy, setting it to Manually and providing the correct proxy configuration → Test Connection vs http://demostore.gatling.io and the IDE returns Connection Succesful.
Currently, my environment is as follow:
Intellij IDEA 2020.3
Gatling 3.5.1
Ubuntu 20.04 LTS 64 bit (on VirtualBox)
I am behind a VPN with proxy (need this since Maven is configured to use the internal Nexus repo)
This question was answered by #StéphaneLANDELLE, but the thread was deleted after editing something in the above question.
Stéphane was pointing me correctly to: Proxy parameters in the official Gatling documentation and after setting:
http.proxy(Proxy("<URL>", <PORT>).credentials("<user>", "<pwd>"))
everything started working as expected.

Is SonarLint 3.2.0 compatible with sonarqube 6.2?

I am trying to connect to a remote sonarqube 6.2 server from Sonarlint 3.2 plugin in eclipse neon. I am able to connect to my local server http://localhost:9000.
But When I am trying to hit the remote sonar server I am getting below error:
Fail to request https://xxxxxxxxxxxxxx:xxxx/xxx/api/system/status
Please advise.
I ran into this problem myself using SonarLint 3.1 and SonarQube 6.7.
In IntelliJ I kept running into this error message
Failed to connect to the server. Please check the configuration.
Error: Fail to request https://<SONARQUBE>/api/system/status
However I could access that URL through my browser without any issues.
When you WireShark the requests coming from the browser and the IDE you can see that the cypher suite is quite different and that the IDE plugin gets a TLS handshake failure.
That lead me to discover that Java still ships with limited strength cryptographic functions. That’s either because of US export policy or because nobody has gotten around to fixing it. The internet isn’t quite sure.
Either way, you can download the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Once I installed those onto the IntelliJ JVM, I no longer got the underlying TLS handshake failure when trying to connect to SonarQube and the connection works.

Rally Plugin for IntelliJ - Proxy issue

The Rally Plug-in for IntelliJ has an issue to connect with Rally using Proxy settings.
It doesn't seem that the rally plugin uses the proxy settings from IntelliJ.
Has anybody encountered this issue and have found a fix?
On the settings, I am able to successfully 'Check Connection' from the 'Http Proxy' node to Rally site.
However, from Rally node, when i click 'Test Connection', it says 'Unknown Host: rally1.rallydev.com'
Any workaround/solution is appreciated.
Currently, the Rally Plugin does not support going through a Proxy ( See this).
However, a workaround might be possible using Proxifier which I have used in the past to force applications to go through a proxy.
This was useful specially for legacy apps that did not support a proxy. Once setup, you should be able to see the rally1 connections being attempted and being 'proxified'.

SoapUI global proxy testings not taken for test execution

I have created a web test project using the SoapUi GUI (free version). I need a proxy to connect to the Internet. Therefore, I have set the proxy host and port in File->Preferences->Proxy Settings and made sure that it is enabled. I know the proxy settings are correct, because I see the "soapUi Starter Page" properly. But to my surprise, these global proxy settings do not seem to be taken when running the web test case (I just configured a HTTP GET for http://www.google.com), and my request always times out.
I have failed to make it work both with version 4.0.1 and with 4.05 beta 1.
Can anyone help me with this?
Thanks
can you try with http://stackoverflow.com?
It seems soapui doesn't handle redirect right.

How to start Enterprise Manager(em) console in Oracle AS 10.1.3.4 in windows and linux

I have installed Oracle AS 10.1.3.1 and then applied patch to upgrade it to 10.1.3.4
This OAS is configured to listen at port 80.
When I go to http://localhost after starting OPMN, i can wee the welcome screen.
But now I want to login to Enterprise Manager(em) console so I go to http://localhost/em
but this link doesn't work and says:
Not Found The requested URL /em was
not found on this server.
Please tell me how to start em console in OAS 10.1.3.4
Firstly to verify what port you should be using (and providing you haven't reconfigured it) you can check the file:
portlist.ini
which can be found at
ORACLE_APPLICATION_SERVER_HOME\install
Once you are sure that you are using the correct port, have you started the console? (opmnctl start all command doesn't start the AS control) You can try starting it using the following command:
ORACLE_APPLICATION_SERVER_HOME\opmn\bin\opmnctl startproc application=ascontrol
I'm casting my mind back a few years here, so this could be completely wrong.
I think that em had it's own web-server and so would have run on a different port. Try 1810.
You might also want to try https rather than http.
So, in conclusion, try:
http://localhost:1810/em
https://localhost:1810/em
If this doesn't work, please can you let me know and I'll delete this answer. :-)

Resources