java.lang.RuntimeException

tip

host port isnt set

tip

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

tip

Check if your MongoDB is available.


rprp
tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.


rafaelrafael
tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.


rafaelrafael
tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.


rafaelrafael
tip

spring-data-redis requires redis 2.6+ to work properly.

tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Everything went fine until having updated `docker-build-step-plugin`. After that, my job dumps me the message I dump bellow. I've took a look on `Global Cofiguration Tool` and I've realized my old Docker configuration has benn removed and appears another empty one which is nothing to do with the older one. I don't quite to difure out how to configure Docker again {code:java} [Docker] INFO: Creating docker image from /var/lib/jenkins/workspace/Create WebAPI Docker Image/webapi/QA 09:10:57 ERROR: Build step failed with exception 09:10:57 java.lang.RuntimeException: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to 172.17.0.1:4243 [/172.17.0.1] failed: Connection refused 09:10:57 at org.jenkinsci.plugins.dockerbuildstep.cmd.CreateImageCommand.execute(CreateImageCommand.java:139) 09:10:57 at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder.perform(DockerBuilder.java:75) 09:10:57 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 09:10:57 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 09:10:57 at hudson.model.Build$BuildExecution.build(Build.java:205) 09:10:57 at hudson.model.Build$BuildExecution.doRun(Build.java:162) 09:10:57 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) 09:10:57 at hudson.model.Run.execute(Run.java:1720) 09:10:57 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 09:10:57 at hudson.model.ResourceController.execute(ResourceController.java:98) 09:10:57 at hudson.model.Executor.run(Executor.java:404) 09:10:57 Caused by: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to 172.17.0.1:4243 [/172.17.0.1] failed: Connection refused 09:10:57 at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:513) 09:10:57 at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:246) 09:10:57 at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:683) 09:10:57 at org.glassfish.jersey.internal.Errors.process(Errors.java:315) 09:10:57 at org.glassfish.jersey.internal.Errors.process(Errors.java:297) 09:10:57 at org.glassfish.jersey.internal.Errors.process(Errors.java:228) 09:10:57 at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424) 09:10:57 at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:679) 09:10:57 at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:435) 09:10:57 at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:338) 09:10:57 at com.github.dockerjava.jaxrs.BuildImageCmdExec.execute(BuildImageCmdExec.java:71) 09:10:57 at com.github.dockerjava.jaxrs.BuildImageCmdExec.execute(BuildImageCmdExec.java:27) 09:10:57 at com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:57) 09:10:57 at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29) 09:10:57 at org.jenkinsci.plugins.dockerbuildstep.cmd.CreateImageCommand.execute(CreateImageCommand.java:110) 09:10:57 ... 10 more 09:10:57 Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 172.17.0.1:4243 [/172.17.0.1] failed: Connection refused 09:10:57 at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:142) 09:10:57 at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319) 09:10:57 at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) 09:10:57 at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) 09:10:57 at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) 09:10:57 at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) 09:10:57 at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) 09:10:57 at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) 09:10:57 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) 09:10:57 at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:465) 09:10:57 ... 24 more 09:10:57 Caused by: java.net.ConnectException: Connection refused 09:10:57 at java.net.PlainSocketImpl.socketConnect(Native Method) 09:10:57 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 09:10:57 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 09:10:57 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 09:10:57 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 09:10:57 at java.net.Socket.connect(Socket.java:589) 09:10:57 at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) 09:10:57 at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:125) 09:10:57 ... 33 more 09:10:57 Build step 'Execute Docker command' marked build as failure 09:10:57 Finished: FAILURE {code}
    via by Jordi Cabré,
  • GitHub comment 7874#279936609
    via GitHub by lntskyvang
    ,
  • Exception and throwable not being caught
    via Stack Overflow by Arya
    ,
  • GitHub comment 2#152827594
    via GitHub by dampfnudel
    ,
    • java.lang.RuntimeException: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to 172.17.0.1:4243 [/172.17.0.1] failed: Connection refused at org.jenkinsci.plugins.dockerbuildstep.cmd.CreateImageCommand.execute(CreateImageCommand.java:139) at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder.perform(DockerBuilder.java:75) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1720) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Caused by: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to 172.17.0.1:4243 [/172.17.0.1] failed: Connection refused at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:513) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:246) at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:683) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:679) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:435) at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:338) at com.github.dockerjava.jaxrs.BuildImageCmdExec.execute(BuildImageCmdExec.java:71) at com.github.dockerjava.jaxrs.BuildImageCmdExec.execute(BuildImageCmdExec.java:27) at com.github.dockerjava.jaxrs.AbstrDockerCmdExec.exec(AbstrDockerCmdExec.java:57) at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:29) at org.jenkinsci.plugins.dockerbuildstep.cmd.CreateImageCommand.execute(CreateImageCommand.java:110) ... 10 more Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 172.17.0.1:4243 [/172.17.0.1] failed: Connection refused at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:465) ... 24 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:125) ... 33 more

    Users with the same issue

    raytestraytest
    2 times, last one,
    musketyrmusketyr
    7 times, last one,
    poroszdporoszd
    3 times, last one,
    OmyaOmya
    12 times, last one,
    Nikolay RybakNikolay Rybak
    1010 times, last one,
    479 more bugmates