java.net.ConnectException: Connection timed out

Atlassian JIRA | Felipe van Schaik Willig [Atlassian] | 12 months ago
  1. 0

    h3. Summary Using the Deploy to Tomcat task it takes about 20 minutes to fail the build when the Tomcat server isn't found or the wrong port is set (hence it times out). h3. Steps to Reproduce # Set up a job to use a Deploy to Tomcat task # In the _Tomcat Manager URL_ field use an offline (or nonexistent) Tomcat server and/or a wrong port (on my tests I used http://192.168.10.10:10100/manager/) h3. Expected Results Bamboo quickly identifies the server is down/unresponsive/nonexistent and the task fails quickly. h3. Actual Results Bamboo takes around 20 minutes to fail the task with the following error: {noformat}simple 18-Dec-2015 16:20:28 Starting task 'Tomcat' of type 'com.atlassian.bamboo.plugins.tomcat.bamboo-tomcat-plugin:deployAppTask' simple 18-Dec-2015 16:20:28 Deploying application with war file '/sample.war' to context '/' to server 'http://192.168.10.10:10100/manager/' simple 18-Dec-2015 16:20:28 Confirm expected Tomcat manager location. simple 18-Dec-2015 16:20:28 Trying to retrieve Tomcat details from http://192.168.10.10:10100/manager//text/serverinfo error 18-Dec-2015 16:28:57 Could not list server info from /manager//text/serverinfo error 18-Dec-2015 16:28:57 java.net.ConnectException: Connection timed out error 18-Dec-2015 16:28:57 at java.net.PlainSocketImpl.socketConnect(Native Method) error 18-Dec-2015 16:28:57 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) error 18-Dec-2015 16:28:57 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) error 18-Dec-2015 16:28:57 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) error 18-Dec-2015 16:28:57 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) error 18-Dec-2015 16:28:57 at java.net.Socket.connect(Socket.java:589) error 18-Dec-2015 16:28:57 at java.net.Socket.connect(Socket.java:538) error 18-Dec-2015 16:28:57 at java.net.Socket.<init>(Socket.java:434) error 18-Dec-2015 16:28:57 at java.net.Socket.<init>(Socket.java:286) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getTomcatVersionFromServerInfo(TomcatApplicationManagerImpl.java:298) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.confirmTomcatVersionThroughServerInfo(TomcatApplicationManagerImpl.java:255) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getURLPrefix(TomcatApplicationManagerImpl.java:241) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.deployApplication(TomcatApplicationManagerImpl.java:158) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:84) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$32(TaskExecutorImpl.java:273) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 18-Dec-2015 16:28:57 at java.lang.Thread.run(Thread.java:745) error 18-Dec-2015 16:28:57 Try likely variations of Tomcat manager location. simple 18-Dec-2015 16:28:57 Trying to retrieve Tomcat details from http://192.168.10.10:10100/manager//serverinfo error 18-Dec-2015 16:37:26 Could not list server info from /manager//serverinfo error 18-Dec-2015 16:37:26 java.net.ConnectException: Connection timed out error 18-Dec-2015 16:37:26 at java.net.PlainSocketImpl.socketConnect(Native Method) error 18-Dec-2015 16:37:26 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) error 18-Dec-2015 16:37:26 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) error 18-Dec-2015 16:37:26 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) error 18-Dec-2015 16:37:26 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) error 18-Dec-2015 16:37:26 at java.net.Socket.connect(Socket.java:589) error 18-Dec-2015 16:37:26 at java.net.Socket.connect(Socket.java:538) error 18-Dec-2015 16:37:26 at java.net.Socket.<init>(Socket.java:434) error 18-Dec-2015 16:37:26 at java.net.Socket.<init>(Socket.java:286) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getTomcatVersionFromServerInfo(TomcatApplicationManagerImpl.java:298) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.confirmTomcatVersionThroughServerInfo(TomcatApplicationManagerImpl.java:263) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getURLPrefix(TomcatApplicationManagerImpl.java:241) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.deployApplication(TomcatApplicationManagerImpl.java:158) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:84) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$32(TaskExecutorImpl.java:273) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 18-Dec-2015 16:37:26 at java.lang.Thread.run(Thread.java:745) error 18-Dec-2015 16:37:26 Could not detect Tomcat version from server info, trusting configuration of Tomcat 7 or greater error 18-Dec-2015 16:39:33 Could not deploy application: Connection timed out error 18-Dec-2015 16:39:33 java.net.ConnectException: Connection timed out error 18-Dec-2015 16:39:33 at java.net.PlainSocketImpl.socketConnect(Native Method) error 18-Dec-2015 16:39:33 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) error 18-Dec-2015 16:39:33 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) error 18-Dec-2015 16:39:33 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) error 18-Dec-2015 16:39:33 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) error 18-Dec-2015 16:39:33 at java.net.Socket.connect(Socket.java:589) error 18-Dec-2015 16:39:33 at java.net.Socket.connect(Socket.java:538) error 18-Dec-2015 16:39:33 at java.net.Socket.<init>(Socket.java:434) error 18-Dec-2015 16:39:33 at java.net.Socket.<init>(Socket.java:286) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.execute(TomcatApplicationManagerImpl.java:191) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.deployApplication(TomcatApplicationManagerImpl.java:173) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:84) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$32(TaskExecutorImpl.java:273) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 18-Dec-2015 16:39:33 at java.lang.Thread.run(Thread.java:745) simple 18-Dec-2015 16:39:33 Finished task 'Tomcat' with result: Error{noformat} h3. Notes If on my Bamboo set up I choose to have only one image and run only one plan at the time, 20 minutes of waiting is a very long time.

    Atlassian JIRA | 12 months ago | Felipe van Schaik Willig [Atlassian]
    java.net.ConnectException: Connection timed out
  2. 0

    h3. Summary Using the Deploy to Tomcat task it takes about 20 minutes to fail the build when the Tomcat server isn't found or the wrong port is set (hence it times out). h3. Steps to Reproduce # Set up a job to use a Deploy to Tomcat task # In the _Tomcat Manager URL_ field use an offline (or nonexistent) Tomcat server and/or a wrong port (on my tests I used http://192.168.10.10:10100/manager/) h3. Expected Results Bamboo quickly identifies the server is down/unresponsive/nonexistent and the task fails quickly. h3. Actual Results Bamboo takes around 20 minutes to fail the task with the following error: {noformat}simple 18-Dec-2015 16:20:28 Starting task 'Tomcat' of type 'com.atlassian.bamboo.plugins.tomcat.bamboo-tomcat-plugin:deployAppTask' simple 18-Dec-2015 16:20:28 Deploying application with war file '/sample.war' to context '/' to server 'http://192.168.10.10:10100/manager/' simple 18-Dec-2015 16:20:28 Confirm expected Tomcat manager location. simple 18-Dec-2015 16:20:28 Trying to retrieve Tomcat details from http://192.168.10.10:10100/manager//text/serverinfo error 18-Dec-2015 16:28:57 Could not list server info from /manager//text/serverinfo error 18-Dec-2015 16:28:57 java.net.ConnectException: Connection timed out error 18-Dec-2015 16:28:57 at java.net.PlainSocketImpl.socketConnect(Native Method) error 18-Dec-2015 16:28:57 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) error 18-Dec-2015 16:28:57 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) error 18-Dec-2015 16:28:57 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) error 18-Dec-2015 16:28:57 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) error 18-Dec-2015 16:28:57 at java.net.Socket.connect(Socket.java:589) error 18-Dec-2015 16:28:57 at java.net.Socket.connect(Socket.java:538) error 18-Dec-2015 16:28:57 at java.net.Socket.<init>(Socket.java:434) error 18-Dec-2015 16:28:57 at java.net.Socket.<init>(Socket.java:286) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) error 18-Dec-2015 16:28:57 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getTomcatVersionFromServerInfo(TomcatApplicationManagerImpl.java:298) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.confirmTomcatVersionThroughServerInfo(TomcatApplicationManagerImpl.java:255) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getURLPrefix(TomcatApplicationManagerImpl.java:241) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.deployApplication(TomcatApplicationManagerImpl.java:158) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:84) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$32(TaskExecutorImpl.java:273) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 18-Dec-2015 16:28:57 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 18-Dec-2015 16:28:57 at java.lang.Thread.run(Thread.java:745) error 18-Dec-2015 16:28:57 Try likely variations of Tomcat manager location. simple 18-Dec-2015 16:28:57 Trying to retrieve Tomcat details from http://192.168.10.10:10100/manager//serverinfo error 18-Dec-2015 16:37:26 Could not list server info from /manager//serverinfo error 18-Dec-2015 16:37:26 java.net.ConnectException: Connection timed out error 18-Dec-2015 16:37:26 at java.net.PlainSocketImpl.socketConnect(Native Method) error 18-Dec-2015 16:37:26 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) error 18-Dec-2015 16:37:26 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) error 18-Dec-2015 16:37:26 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) error 18-Dec-2015 16:37:26 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) error 18-Dec-2015 16:37:26 at java.net.Socket.connect(Socket.java:589) error 18-Dec-2015 16:37:26 at java.net.Socket.connect(Socket.java:538) error 18-Dec-2015 16:37:26 at java.net.Socket.<init>(Socket.java:434) error 18-Dec-2015 16:37:26 at java.net.Socket.<init>(Socket.java:286) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) error 18-Dec-2015 16:37:26 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getTomcatVersionFromServerInfo(TomcatApplicationManagerImpl.java:298) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.confirmTomcatVersionThroughServerInfo(TomcatApplicationManagerImpl.java:263) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getURLPrefix(TomcatApplicationManagerImpl.java:241) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.deployApplication(TomcatApplicationManagerImpl.java:158) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:84) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$32(TaskExecutorImpl.java:273) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 18-Dec-2015 16:37:26 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 18-Dec-2015 16:37:26 at java.lang.Thread.run(Thread.java:745) error 18-Dec-2015 16:37:26 Could not detect Tomcat version from server info, trusting configuration of Tomcat 7 or greater error 18-Dec-2015 16:39:33 Could not deploy application: Connection timed out error 18-Dec-2015 16:39:33 java.net.ConnectException: Connection timed out error 18-Dec-2015 16:39:33 at java.net.PlainSocketImpl.socketConnect(Native Method) error 18-Dec-2015 16:39:33 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) error 18-Dec-2015 16:39:33 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) error 18-Dec-2015 16:39:33 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) error 18-Dec-2015 16:39:33 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) error 18-Dec-2015 16:39:33 at java.net.Socket.connect(Socket.java:589) error 18-Dec-2015 16:39:33 at java.net.Socket.connect(Socket.java:538) error 18-Dec-2015 16:39:33 at java.net.Socket.<init>(Socket.java:434) error 18-Dec-2015 16:39:33 at java.net.Socket.<init>(Socket.java:286) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) error 18-Dec-2015 16:39:33 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.execute(TomcatApplicationManagerImpl.java:191) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.deployApplication(TomcatApplicationManagerImpl.java:173) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:84) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$32(TaskExecutorImpl.java:273) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 18-Dec-2015 16:39:33 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 18-Dec-2015 16:39:33 at java.lang.Thread.run(Thread.java:745) simple 18-Dec-2015 16:39:33 Finished task 'Tomcat' with result: Error{noformat} h3. Notes If on my Bamboo set up I choose to have only one image and run only one plan at the time, 20 minutes of waiting is a very long time.

    Atlassian JIRA | 12 months ago | Felipe van Schaik Willig [Atlassian]
    java.net.ConnectException: Connection timed out
  3. 0

    HttpClient timeout (proxy firewall) -> locked database

    GitHub | 2 years ago | dizzzz
    java.net.ConnectException: Connection timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HTTPClientRA waits too long when trying to connecto to a non existing URL

    Google Groups | 5 years ago | ionut.andras
    java.net.ConnectException: Connection timed out

  1. michallos 1 times, last 1 week ago
  2. treefolk 2 times, last 6 days ago
  3. linxiaolong 18 times, last 1 month ago
  4. Kialandei 1 times, last 1 month ago
  5. DoktorDoener666 41 times, last 3 weeks ago
24 more registered users
65 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    7. java.net.Socket.connect(Socket.java:538)
    8. java.net.Socket.<init>(Socket.java:434)
    9. java.net.Socket.<init>(Socket.java:286)
    9 frames
  3. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
    2. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
    3. org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    4. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    5. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    6. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    7 frames
  4. com.atlassian.bamboo
    ImpersonationHelper$1.run
    1. com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getTomcatVersionFromServerInfo(TomcatApplicationManagerImpl.java:298)
    2. com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.confirmTomcatVersionThroughServerInfo(TomcatApplicationManagerImpl.java:263)
    3. com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.getURLPrefix(TomcatApplicationManagerImpl.java:241)
    4. com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.deployApplication(TomcatApplicationManagerImpl.java:158)
    5. com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:84)
    6. com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$32(TaskExecutorImpl.java:273)
    7. com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)
    8. com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273)
    9. com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108)
    10. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
    11. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
    12. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132)
    13. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123)
    14. com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
    15. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122)
    16. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
    17. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
    18. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
    19. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
    20. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
    20 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame