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.
Related
I am trying to create a new lagom scala project on windows 7 machine (behind proxy) but I get error message "org.eclipse.jgit.api.errors.TransportException: git://github.com/lagom/lagom-scala.g8.git: Connection time out"
Here is the command : sbt new lagom/lagom-scala.g8
I have the proxy environment variable http_proxy set but still I get this error. Any thoughts idea..to make this work ?
There's a discussion about this at https://github.com/lagom/lagom/issues/683
The conclusion is that this is a limitation of sbt 0.13.13, which uses the git protocol to clone templates and cannot be made to use an alternate protocol.
You can work around this by both forcing a newer version of sbt and specifying the complete https URL of the repository, like this:
sbt new -Dsbt.version=0.13.15 https://github.com/lagom/lagom-scala.g8
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.
I have installed Android studio and i want to build first app. Unfortunately "Gradle project sync failed" Error: Connection refused: connect.
I know it's because i use proxy server (my company does). I already made changes in Setings->HTTP Proxy-> Auto-detect proxy settings, but I guess, Gradle doesn't look on it. I read I should make write in gradle.properties my proxy server, user and password, but I don't know this parameters, and i don't know how to get them (even if it is available or not).
Can you help me? there are two ways: 1. If you know tell me how to avoid this problem without that parameters. For example like Auto-detect 2. How to get those parameters?
Apparently this code works
systemProp.http.proxyHost=<hostname>
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
systemProp.http.nonProxyHosts=localhost
or for https
systemProp.https.proxyHost=<hostname>
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=
systemProp.https.proxyPassword=
systemProp.https.nonProxyHosts=localhost
when password isn't set up.
It should be in gradle.properties file.
Enable No Proxy from Appearance and Behavior -> System Settings-> HTTP Proxy -> NO Proxy
This is worked for me
I'm using cargo to deploy my project to a test server. The cargo config is fine, works well on my local machine. However, on the hudson machine it always fails with a stacktrace showing:
Caused by: java.io.IOException: Server returned HTTP response code: 407 for URL: http://ppdtest.kbcsecurities.net:8080/manager/text/list
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:507)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.list(TomcatManager.java:644)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:657)
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:173)
... 34 more
The thing is however, I have NO proxy defined anywhere. Not in my setting.xml, not in the pom.xml files (parent or childs).
Anyone has some pointers or help to offer?
Are you sure that this is a proxy problem? The URL looks like it's Tomcat's Manager application. Can you verify that you're using the right credentials for your Tomcat instance?
If you want to make sure that no proxy is involved, please check the environment variables of the machine to see whether there's any global proxy setting that Java could be picking up, either in the global Maven options or in the options for Hudson.
One other thing to try is whether you can access the URL in question using a browser from the Hudson machine. If it's a headless machine, you can use a terminal browser like links and see if you can authenticate with that.
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.