Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51849

Plugins install fails due to java.net.SocketTimeoutException: Read timed out error

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins version 2.89.4, Linux
    • Sprint:
      Post-launch
    • Similar Issues:

      Description

      I am getting below java.net.SocketTimeoutException: Read timed out error while installing/updating the plugins in all of my jenkins (8-10 Jenkins master version 2.89.4 && 2.73.3)

      Installing Plugins/Upgrades
      Preparation
      Checking internet connectivity
      Checking update center connectivity
      Success
      Static Analysis Utilities analysis-core plugin is already installed. Jenkins needs to be restarted for the update to take effect
      CCM
      Failure - Details
      CCM
      Failure - Details
      Folders Downloaded Successfully. Will be activated during the next boot
      Git client
      Failure -
      java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      at java.net.SocketInputStream.read(SocketInputStream.java:171)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at sun.net.www.MeteredStream.read(MeteredStream.java:134)
      at java.io.FilterInputStream.read(FilterInputStream.java:133)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3393)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3386)
      at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:77)
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1141)
      Caused: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/git-client/2.7.1/git-client.hpi to /app/jenkins/taaa-build/plugins/git-client.jpi.tmp
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1146)
      Caused: hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/git-client/2.7.1/git-client.hpi
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1172)
      at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1677)
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1874)
      at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
      at java.lang.Thread.run(Thread.java:748)
      Git Downloaded Successfully. Will be activated during the next boot
      SCM API Downloaded Successfully. Will be activated during the next boot
      Branch API
      Failure -
      java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      at java.net.SocketInputStream.read(SocketInputStream.java:171)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at sun.net.www.MeteredStream.read(MeteredStream.java:134)
      at java.io.FilterInputStream.read(FilterInputStream.java:133)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3393)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3386)
      at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:77)
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1141)
      Caused: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/branch-api/2.0.19/branch-api.hpi to /app/jenkins/taaa-build/plugins/branch-api.jpi.tmp
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1146)
      Caused: hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/branch-api/2.0.19/branch-api.hpi
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1172)
      at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1677)
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1874)
      at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
      at java.lang.Thread.run(Thread.java:748)

       

      I have tried to install couple of new jenkins and I am still not able to install the suggested plugins, not all but most of the plugins are failing to install with the same above error.

       

      My server logs are shown below 

      Caused by: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/analysis-core/1.95/analysis-core.hpi to /app/jenkins/tabt-cd-deploy/plugins/analysis-core.jpi.tmp
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1146)
      ... 7 more
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      at java.net.SocketInputStream.read(SocketInputStream.java:171)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at sun.net.www.MeteredStream.read(MeteredStream.java:134)
      at java.io.FilterInputStream.read(FilterInputStream.java:133)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3375)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3368)
      at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:77)
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1141)
      ... 7 more

      10-Jun-2018 16:06:22.736 INFO [Update center installer thread 4] hudson.model.UpdateCenter$DownloadJob.run Starting the installation of CCM on behalf of admin
      10-Jun-2018 16:06:22.752 INFO [Update center installer thread 4] hudson.model.UpdateCenter$UpdateCenterConfiguration.download Downloading CCM
      10-Jun-2018 16:07:22.802 SEVERE [Update center installer thread 4] hudson.model.UpdateCenter$DownloadJob.run Failed to install CCM
      hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/ccm/3.2/ccm.hpi
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1172)
      at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1677)
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1874)
      at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/ccm/3.2/ccm.hpi to /app/jenkins/tabt-cd-deploy/plugins/ccm.jpi.tmp
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1146)
      ... 7 more
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      at java.net.SocketInputStream.read(SocketInputStream.java:171)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at sun.net.www.MeteredStream.read(MeteredStream.java:134)
      at java.io.FilterInputStream.read(FilterInputStream.java:133)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3375)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3368)
      at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:77)
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1141)
      ... 7 more

      10-Jun-2018 22:00:06.285 INFO [Workspace clean-up thread] hudson.model.AsyncPeriodicWork$1.run Started Workspace clean-up
      10-Jun-2018 22:00:06.286 INFO [Workspace clean-up thread] hudson.model.AsyncPeriodicWork$1.run Finished Workspace clean-up. 1 ms

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              abubakar22 Abubakar Mohammed
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: