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

Bitbucket Organization Folder not loading after upgrade to SCM 2.0

    XMLWordPrintable

Details

    Description

      My Bitbucket branch source fails to load after upgrading to SCM API 2.0. It seems similar to 41207, but slightly different stacktrace, so I'm reporting it separately. I took the liberty of adding this to the SCM API 2.0 Upgrade Fallout epic - feel free to remove if this is unrelated.

      SEVERE: Failed Loading item Bitbucket
      java.lang.AssertionError: org.jenkinsci.plugins.registry.notification.TriggerStore is not available until after all jobs are loaded
      at org.jenkinsci.plugins.registry.notification.TriggerStore.getInstance(TriggerStore.java:184)
      at org.jenkinsci.plugins.registry.notification.TriggerStore$ItemListener.onLocationChanged(TriggerStore.java:383)
      at hudson.model.listeners.ItemListener$6.apply(ItemListener.java:238)
      at hudson.model.listeners.ItemListener$6.apply(ItemListener.java:236)
      at hudson.model.listeners.ItemListener.forAll(ItemListener.java:167)
      at hudson.model.listeners.ItemListener.fireLocationChange(ItemListener.java:236)
      at hudson.model.AbstractItem.renameTo(AbstractItem.java:335)
      at hudson.model.Job.renameTo(Job.java:659)
      at jenkins.branch.MultiBranchProject.onLoad(MultiBranchProject.java:176)
      at hudson.model.Items.load(Items.java:372)
      at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:116)
      at com.cloudbees.hudson.plugins.folder.AbstractFolder.onLoad(AbstractFolder.java:484)
      at jenkins.branch.OrganizationFolder.onLoad(OrganizationFolder.java:184)
      at hudson.model.Items.load(Items.java:372)
      at jenkins.model.Jenkins$17.run(Jenkins.java:3067)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:1066)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

      Attachments

        Activity

          estyrke Emil Styrke added a comment -

          I found one more exception a bit higher up in the log:

          WARNING: Could not load actions from jenkins.branch.MultiBranchProject$StateActionFactory@7ea84c23 for org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject@3ade308c[Bitbucket/honey]
          java.lang.NullPointerException
          at jenkins.branch.MultiBranchProject$State.access$100(MultiBranchProject.java:1938)
          at jenkins.branch.MultiBranchProject$StateActionFactory.createFor(MultiBranchProject.java:1924)
          at jenkins.branch.MultiBranchProject$StateActionFactory.createFor(MultiBranchProject.java:1904)
          at hudson.model.Actionable.createFor(Actionable.java:111)
          at hudson.model.Actionable.getAction(Actionable.java:334)
          at jenkins.branch.MultiBranchProject.getDisplayName(MultiBranchProject.java:700)
          at hudson.model.AbstractItem.getFullDisplayName(AbstractItem.java:368)
          at hudson.model.AbstractItem.getFullDisplayName(AbstractItem.java:366)
          at org.jenkinsci.plugins.mailwatcher.WatcherItemListener$Notification$Builder.send(WatcherItemListener.java:172)
          at org.jenkinsci.plugins.mailwatcher.WatcherItemListener.onRenamed(WatcherItemListener.java:83)
          at hudson.model.listeners.ItemListener$5.apply(ItemListener.java:231)
          at hudson.model.listeners.ItemListener$5.apply(ItemListener.java:229)
          at hudson.model.listeners.ItemListener.forAll(ItemListener.java:167)
          at hudson.model.listeners.ItemListener.fireLocationChange(ItemListener.java:229)
          at hudson.model.AbstractItem.renameTo(AbstractItem.java:335)
          at hudson.model.Job.renameTo(Job.java:659)
          at jenkins.branch.MultiBranchProject.onLoad(MultiBranchProject.java:176)
          at hudson.model.Items.load(Items.java:372)
          at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:116)
          at com.cloudbees.hudson.plugins.folder.AbstractFolder.onLoad(AbstractFolder.java:484)
          at jenkins.branch.OrganizationFolder.onLoad(OrganizationFolder.java:184)
          at hudson.model.Items.load(Items.java:372)
          at jenkins.model.Jenkins$17.run(Jenkins.java:3067)
          at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
          at jenkins.model.Jenkins$7.runTask(Jenkins.java:1066)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)

          estyrke Emil Styrke added a comment - I found one more exception a bit higher up in the log: WARNING: Could not load actions from jenkins.branch.MultiBranchProject$StateActionFactory@7ea84c23 for org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject@3ade308c [Bitbucket/honey] java.lang.NullPointerException at jenkins.branch.MultiBranchProject$State.access$100(MultiBranchProject.java:1938) at jenkins.branch.MultiBranchProject$StateActionFactory.createFor(MultiBranchProject.java:1924) at jenkins.branch.MultiBranchProject$StateActionFactory.createFor(MultiBranchProject.java:1904) at hudson.model.Actionable.createFor(Actionable.java:111) at hudson.model.Actionable.getAction(Actionable.java:334) at jenkins.branch.MultiBranchProject.getDisplayName(MultiBranchProject.java:700) at hudson.model.AbstractItem.getFullDisplayName(AbstractItem.java:368) at hudson.model.AbstractItem.getFullDisplayName(AbstractItem.java:366) at org.jenkinsci.plugins.mailwatcher.WatcherItemListener$Notification$Builder.send(WatcherItemListener.java:172) at org.jenkinsci.plugins.mailwatcher.WatcherItemListener.onRenamed(WatcherItemListener.java:83) at hudson.model.listeners.ItemListener$5.apply(ItemListener.java:231) at hudson.model.listeners.ItemListener$5.apply(ItemListener.java:229) at hudson.model.listeners.ItemListener.forAll(ItemListener.java:167) at hudson.model.listeners.ItemListener.fireLocationChange(ItemListener.java:229) at hudson.model.AbstractItem.renameTo(AbstractItem.java:335) at hudson.model.Job.renameTo(Job.java:659) at jenkins.branch.MultiBranchProject.onLoad(MultiBranchProject.java:176) at hudson.model.Items.load(Items.java:372) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:116) at com.cloudbees.hudson.plugins.folder.AbstractFolder.onLoad(AbstractFolder.java:484) at jenkins.branch.OrganizationFolder.onLoad(OrganizationFolder.java:184) at hudson.model.Items.load(Items.java:372) at jenkins.model.Jenkins$17.run(Jenkins.java:3067) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:1066) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
          estyrke Emil Styrke added a comment -

          This seems to be fixed in SCM API 2.0.2-beta-1 / Branch API 2.0.2-beta-3. In other words, I spoke too soon...

          estyrke Emil Styrke added a comment - This seems to be fixed in SCM API 2.0.2-beta-1 / Branch API 2.0.2-beta-3. In other words, I spoke too soon...

          Merged, awaiting at least a beta release

          stephenconnolly Stephen Connolly added a comment - Merged, awaiting at least a beta release

          scm-api-2.0.2
          git-2.6.4 or git-3.0.4
          branch-api-2.0.2
          bitbucket-branch-source-2.0.2
          github-branch-source-2.0.1
          cloudbees-folder-5.17
          workflow-multibranch-2.11

          stephenconnolly Stephen Connolly added a comment - scm-api-2.0.2 git-2.6.4 or git-3.0.4 branch-api-2.0.2 bitbucket-branch-source-2.0.2 github-branch-source-2.0.1 cloudbees-folder-5.17 workflow-multibranch-2.11

          People

            amuniz Antonio Muñiz
            estyrke Emil Styrke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: