java.net.ConnectException: Connection timed out: connect

Jenkins JIRA | nirmal_patel | 7 years ago
  1. 0

    I am able to see Updates available for both hudson and installed plugins. This means my hudson instance can connect to the internet. However, when I select the plugins to be updated and click install; the process fails with unable to connect to internet. Installing Plugins/Upgrades Once the installation is completed, Hudson needs to be restarted for changes to take effect. Preparation Checking internet connectivity Failed to connect to http://www.google.com/. Perhaps you need to configure HTTP proxy? Performance Plugin Failure - Details java.net.ConnectException: Connection timed out: connect at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1296) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1290) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:944) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:491) at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:757) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:865) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:740) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2052) at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579) at java.net.URLConnection.getContentLength(URLConnection.java:474) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:490) I have my IE LAN connection settings configured to "Use automatic configuration script" "http://corporateserver/proxy.pac"

    Jenkins JIRA | 7 years ago | nirmal_patel
    java.net.ConnectException: Connection timed out: connect
  2. 0

    [JENKINS-6662] Unable to connect to internet in Update Center - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.net.ConnectException: Connection timed out: connect
  3. 0

    I am able to see Updates available for both hudson and installed plugins. This means my hudson instance can connect to the internet. However, when I select the plugins to be updated and click install; the process fails with unable to connect to internet. Installing Plugins/Upgrades Once the installation is completed, Hudson needs to be restarted for changes to take effect. Preparation Checking internet connectivity Failed to connect to http://www.google.com/. Perhaps you need to configure HTTP proxy? Performance Plugin Failure - Details java.net.ConnectException: Connection timed out: connect at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1296) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1290) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:944) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:491) at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:757) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:865) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:740) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2052) at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579) at java.net.URLConnection.getContentLength(URLConnection.java:474) at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:490) I have my IE LAN connection settings configured to "Use automatic configuration script" "http://corporateserver/proxy.pac"

    Jenkins JIRA | 7 years ago | nirmal_patel
    java.net.ConnectException: Connection timed out: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [#JENKINS-11598] Updating Plugins from plugins mirror and own update-center.json does not work - Jenkins JIRA

    jenkins-ci.org | 2 years ago
    java.net.ConnectException: Connection refused: connect
  6. 0

    javax.naming.NoInitialContextException error wh... | JBoss Developer

    jboss.org | 12 months ago
    javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.io.IOException]

    2 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: connect

      at java.net.PlainSocketImpl.socketConnect()
    2. Java RT
      URLConnection.getContentLength
      1. java.net.PlainSocketImpl.socketConnect(Native Method)
      2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      5. java.net.Socket.connect(Socket.java:519)
      6. java.net.Socket.connect(Socket.java:469)
      7. sun.net.NetworkClient.doConnect(NetworkClient.java:157)
      8. sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
      9. sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
      10. sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
      11. sun.net.www.http.HttpClient.New(HttpClient.java:306)
      12. sun.net.www.http.HttpClient.New(HttpClient.java:323)
      13. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
      14. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
      15. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
      16. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
      17. sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2052)
      18. java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579)
      19. java.net.URLConnection.getContentLength(URLConnection.java:474)
      19 frames
    3. Hudson
      UpdateCenter$UpdateCenterConfiguration.download
      1. hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:490)
      1 frame