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

Mina ssh plugin 2.8.0-30.vf9df64641cb_d has a cyclic dependency, breaks Jenkins plugin loading

XMLWordPrintable

      Jenkins fails to load plugins due to a cyclic dependency in the mina ssh plugins (core and common) 2.8.0-30.vf9df64641cb_d.

      Message that is reported in the log is

      2022-07-18 14:45:47.783+0000 [id=32]    INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
      2022-07-18 14:45:48.198+0000 [id=34]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Support Core Plugin v1201.v8d1f54a_6ec7c (support-core)
      java.io.IOException: Failed to load: Support Core Plugin (support-core 1201.v8d1f54a_6ec7c)
       - Required plugin is disabled: Credentials Plugin (credentials)
              at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:1018)
              at hudson.PluginManager$2$1$1.run(PluginManager.java:542)
              at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
              at jenkins.model.Jenkins$5.runTask(Jenkins.java:1158)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
              at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829)
      2022-07-18 14:45:48.199+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Input Step v449.v77f0e8b_845c4 (pipeline-input-step)
      java.io.IOException: Failed to load: Pipeline: Input Step (pipeline-input-step 449.v77f0e8b_845c4)
       - Required plugin is disabled: Credentials Plugin (credentials)
              at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:1018)
              at hudson.PluginManager$2$1$1.run(PluginManager.java:542)
              at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
              at jenkins.model.Jenkins$5.runTask(Jenkins.java:1158)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
              at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829)
      2022-07-18 14:45:48.200+0000 [id=29]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline Graph Analysis Plugin v195.v5812d95a_a_2f9 (pipeline-graph-analysis)
      java.io.IOException: Failed to load: Pipeline Graph Analysis Plugin (pipeline-graph-analysis 195.v5812d95a_a_2f9)
       - Failed to load: Pipeline: Input Step (pipeline-input-step 449.v77f0e8b_845c4)
              at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:1018)
              at hudson.PluginManager$2$1$1.run(PluginManager.java:542)
              at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
              at jenkins.model.Jenkins$5.runTask(Jenkins.java:1158)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
              at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829)
      

      Steps to duplicate the problem

      1. Download the attached plugins.txt
      2. Run the following shell script:
        if [ ! -f ../jenkins-plugin-manager-2.12.8.jar ]; then
          wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/2.12.8/jenkins-plugin-manager-2.12.8.jar
          mv jenkins-plugin-manager-2.12.8.jar ..
        fi
        if [ ! -d plugins ]; then
          mkdir plugins
        fi
        java -jar ../jenkins-plugin-manager-2.12.8.jar --jenkins-version 2.346.2 --latest false --plugin-download-directory plugins --plugin-file plugins.txt
        
        if [ ! -f ../jenkins-2.346.2.war ]; then
          wget https://get.jenkins.io/war-stable/2.346.2/jenkins.war
          mv jenkins.war ../jenkins-2.346.2.war
        fi
        JENKINS_HOME=. java -jar ../jenkins-2.346.2.war
        

      Expected results

      Jenkins starts with all plugins enabled.

      Actual results

      Jenkins reports that plugins were not enabled. and is missing functionality from those plugins.

      Workaround

      Use the previous releases of the mina plugins:

      In your plugins.txt file

      mina-sshd-api-common:latest:https://get.jenkins.io/plugins/mina-sshd-api-common/2.8.0-21.v493b_6b_db_22c6/mina-sshd-api-common.hpi
      mina-sshd-api-core:latest:https://get.jenkins.io/plugins/mina-sshd-api-core/2.8.0-21.v493b_6b_db_22c6/mina-sshd-api-core.hpi
      

      From the plugin manager page

      Use the Advanced tab of the plugin manager to upload a plugin from the following URLs:

      Restart Jenkins after uploading both plugins.

            jglick Jesse Glick
            puja123_user Puja Dube
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: