• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core

      "Handling POST /hudson/createItem : http-4080-25":
      at hudson.model.Project.getPublishersList(Project.java:114)

      • waiting to lock <0x0000000787e743c8> (a hudson.model.FreeStyleProject)
        at hudson.model.Project.buildDependencyGraph(Project.java:172)
        at hudson.model.DependencyGraph.build(DependencyGraph.java:90)
        at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3556)
        at hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:242)
      • locked <0x0000000781551518> (a jenkins.model.Jenkins$4)
        at hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:167)
      • locked <0x0000000781551518> (a jenkins.model.Jenkins$4)
        at jenkins.model.Jenkins.doCreateItem(Jenkins.java:2888)
      • locked <0x000000078002de50> (a hudson.model.Hudson)
        at sun.reflect.GeneratedMethodAccessor266.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:214)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      "Handling POST /hudson/job/XXXX/doDelete : http-4080-4":
      at jenkins.model.Jenkins.save(Jenkins.java:2636)

      • waiting to lock <0x000000078002de50> (a hudson.model.Hudson)
        at jenkins.model.Jenkins.onDeleted(Jenkins.java:2436)
        at jenkins.model.Jenkins.onDeleted(Jenkins.java:309)
        at hudson.model.AbstractItem.invokeOnDeleted(AbstractItem.java:523)
        at hudson.model.AbstractItem.delete(AbstractItem.java:510)
      • locked <0x0000000787e743c8> (a hudson.model.FreeStyleProject)
        at hudson.model.Job.delete(Job.java:607)
      • locked <0x0000000787e743c8> (a hudson.model.FreeStyleProject)
        at hudson.model.AbstractProject.doDoDelete(AbstractProject.java:1891)
        at sun.reflect.GeneratedMethodAccessor454.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
        at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:29)
        at org.kohsuke.stapler.Function$InterceptedFunction.invoke(Function.java:389)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)

          [JENKINS-18071] Dead Lock - Remote Api

          Ray Lupus added a comment -

          We have modified Jenkins source code for clean a project build workspace.
          AbstartProject.performDelete()
          // note start. it only delete master workspace?
          /*
          FilePath ws = getWorkspace();
          if(ws!=null)

          { Node on = getLastBuiltOn(); getScm().processWorkspaceBeforeDeletion(this, ws, on); if(on!=null) on.getFileSystemProvisioner().discardWorkspace(this,ws); }

          */
          // note end
          // modify start
          Map<Node, FilePath> nfMap = getAllBuiltOn();
          for (Map.Entry<Node, FilePath> entry : nfMap.entrySet())

          { Node n = entry.getKey(); FilePath fp = entry.getValue(); getScm().processWorkspaceBeforeDeletion(this, fp, n); if (n != null) n.getFileSystemProvisioner().discardWorkspace(this, fp); }

          // modify end
          getAllBuiltOn(); is impl in Job.

          Ray Lupus added a comment - We have modified Jenkins source code for clean a project build workspace. AbstartProject.performDelete() // note start. it only delete master workspace? /* FilePath ws = getWorkspace(); if(ws!=null) { Node on = getLastBuiltOn(); getScm().processWorkspaceBeforeDeletion(this, ws, on); if(on!=null) on.getFileSystemProvisioner().discardWorkspace(this,ws); } */ // note end // modify start Map<Node, FilePath> nfMap = getAllBuiltOn(); for (Map.Entry<Node, FilePath> entry : nfMap.entrySet()) { Node n = entry.getKey(); FilePath fp = entry.getValue(); getScm().processWorkspaceBeforeDeletion(this, fp, n); if (n != null) n.getFileSystemProvisioner().discardWorkspace(this, fp); } // modify end getAllBuiltOn(); is impl in Job.

          Daniel Beck added a comment -

          Duplicates JENKINS-19446.

          Daniel Beck added a comment - Duplicates JENKINS-19446 .

            Unassigned Unassigned
            xiaochuan_luxc Ray Lupus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: