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

Unstoppable Multibranch Pipeline Scan

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins ver. 2.89.2
      Multibranch Pipeline plugin ver. 2.16
    • git client plugin 3.11.0

      In rare occasions, our Jenkins master (2.89.2) gets into a state in which multiple pipeline scans are completely stuck.

      Clicking on the icon does not abort the scan but leads to the error message "Are you sure you want to abort null?"

      The Scan Multibranch Pipeline Log shows the following plus a little spinner icon...

      Started by timer
      [Sun Jan 14 02:59:42 CET 2018] Starting branch indexing...
      

      It seems that git cannot be accessed and for some reason the scan never gives up. In fact, our git went shortly offline a day ago, which might have caused this, but still I would assume that the scan has some kind of time out. New scans of other pipelines work perfectly fine while the four listed above cannot be cancelled. Only a Jenkins restart has helped last time this happened.

      Stack trace of the 4 blocked threads, taken from Melody:

      Executor #-1 for master : executing BranchIndexing[My_Pull_Request_Pipeline]
      java.net.SocketInputStream.socketRead0(Native Method)
      java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      java.net.SocketInputStream.read(SocketInputStream.java:170)
      java.net.SocketInputStream.read(SocketInputStream.java:141)
      sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
      sun.security.ssl.InputRecord.read(InputRecord.java:503)
      sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
      sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
      sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
      java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
      java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
      java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
      sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
      sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
      sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
      java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
      sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
      org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
      org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:190)
      org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:465)
      org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:290)
      org.jenkinsci.plugins.gitclient.JGitAPIImpl.getRemoteSymbolicReferences(JGitAPIImpl.java:831)
      jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:937)
      jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:746)
      jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:588)
      com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
      com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
      jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1022)
      hudson.model.ResourceController.execute(ResourceController.java:97)
      hudson.model.Executor.run(Executor.java:421)
      

            Unassigned Unassigned
            dokaspar Dominik Kaspar
            Votes:
            17 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated:
              Resolved: