Connect to jmeter-plugins.org:443 timed out

475 views
Skip to first unread message

Paddmaja S Rao

unread,
Jan 17, 2023, 6:36:28 AM1/17/23
to jmeter-plugins
Hi, 

I am trying to install a jmeter plugin using command line on gitlab.
Having set the proxy variables in gitlab-ci.yml, was able to download the plugin manager successfully. But failed to download the plugin. Further, I set the JVM_ARGS through command line like this:
JVM_ARGS="-Dhttps.proxyHost=<private host> -Dhttps.proxyPort=80 -Dhttp.proxyHost=<private host> -Dhttp.proxyPort=80" sh PluginsManagerCMD.sh install jpgc-cmd              

Still seeing this error

-----------
2023-01-17 16:30:08,495 INFO o.j.r.PluginManagerCMD: Command is: install
2023-01-17 16:30:08,501 INFO o.j.r.PluginManagerCMD: Params line is: jpgc-cmd
2023-01-17 16:30:08,531 INFO o.j.r.JARSourceHTTP: Requesting https://jmeter-plugins.org/repo/?installID=mac_os_x-6c5ae3cd8caa7003808ca41e9f44c90c-nongui
ERROR: java.lang.RuntimeException: Failed to perform cmdline operation: Connect to jmeter-plugins.org:443 timed out
*** Problem's technical details go below ***
Home directory was detected as: /Users/padmrao/tools/apache-jmeter-5.5/lib
Exception in thread "main" java.lang.RuntimeException: Failed to perform cmdline operation: Connect to jmeter-plugins.org:443 timed out
    at org.jmeterplugins.repository.PluginManagerCMD.processParams(PluginManagerCMD.java:102)
    at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:62)
    at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:21)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:117)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to jmeter-plugins.org:443 timed out
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:545)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:415)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
    at org.jmeterplugins.repository.JARSourceHTTP.execute(JARSourceHTTP.java:499)
    at org.jmeterplugins.repository.JARSourceHTTP.execute(JARSourceHTTP.java:494)
    at org.jmeterplugins.repository.JARSourceHTTP.getJSON(JARSourceHTTP.java:152)
    at org.jmeterplugins.repository.JARSourceHTTP.getRepositories(JARSourceHTTP.java:276)
    at org.jmeterplugins.repository.JARSourceHTTP.getRepo(JARSourceHTTP.java:304)
    at org.jmeterplugins.repository.PluginManager.load(PluginManager.java:71)
    at org.jmeterplugins.repository.PluginManagerCMD.getPluginsManager(PluginManagerCMD.java:112)
    at org.jmeterplugins.repository.PluginManagerCMD.process(PluginManagerCMD.java:155)
    at org.jmeterplugins.repository.PluginManagerCMD.processParams(PluginManagerCMD.java:75)
-----------

Appreciate any help on this!

DT

unread,
Jan 17, 2023, 1:19:44 PM1/17/23
to jmeter-plugins
When you call sh it creates a new instance of the shell interpreter which is not aware of the JVM_ARGS environment variable which is set in the previous step, try using export command and && operator instead like:

export JVM_ARGS="-Dhttps.proxyHost=<private host> -Dhttps.proxyPort=80 -Dhttp.proxyHost=<private host> -Dhttp.proxyPort=80" && sh PluginsManagerCMD.sh install jpgc-cmd

Alternatively you can try adding those JVM_ARGS to JMeter's system.properties file - the Plugins Manager should respect JMeter's proxy configuration and pick them up.

Paddmaja S Rao

unread,
Jan 18, 2023, 7:34:29 AM1/18/23
to jmeter-plugins
Thank you!
Reply all
Reply to author
Forward
0 new messages