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

      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.

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

          Michael Miner added a comment -

          I am having the same issue as Ian above. Any updates would be greatly appreciated. 

          Michael Miner added a comment - I am having the same issue as Ian above. Any updates would be greatly appreciated. 

          Mark Waite added a comment -

          michaelbminer if the plugin manager is available, you can use the Advanced tab of the plugin manager to upload a plugin from the following URLs:

          I believe that you'll want to upload both of them before you restart Jenkins.

          Mark Waite added a comment - michaelbminer if the plugin manager is available, you can use the Advanced tab of the plugin manager to upload a plugin from the following URLs: https://get.jenkins.io/plugins/mina-sshd-api-common/2.8.0-21.v493b_6b_db_22c6/mina-sshd-api-common.hpi https://get.jenkins.io/plugins/mina-sshd-api-core/2.8.0-21.v493b_6b_db_22c6/mina-sshd-api-core.hpi I believe that you'll want to upload both of them before you restart Jenkins.

          Jesse Glick added a comment -

          For anyone who missed it: update configuration-as-code for a hotfix.

          Jesse Glick added a comment - For anyone who missed it: update configuration-as-code for a hotfix.

          Assaf Katz added a comment -

          jglick I upgraded to latest version of configuration-as-code (1512.vb_79d418d5fc8) and it still not working with the same issue.

          Assaf Katz added a comment - jglick I upgraded to latest version of configuration-as-code (1512.vb_79d418d5fc8) and it still not working with the same issue.

          Mark Waite added a comment -

          assafkatz3b then there is something different you're doing than everyone else is doing. You'll need to describe your situation much more precisely for others to help you identify what you're doing differently than others are doing.

          Some examples of things that you might be doing differently than others:

          • Did you restart Jenkins after updating the plugin?
          • What version of the Jenkins controller are you running?
          • What other plugins (and their versions) are you running?
          • What is the exact error message that is being reported?
          • What operating system is running the Jenkins controller?
          • Are there configuration settings in your controller that might make your controller different from other controllers?

          Mark Waite added a comment - assafkatz3b  then there is something different you're doing than everyone else is doing. You'll need to describe your situation much more precisely for others to help you identify what you're doing differently than others are doing. Some examples of things that you might be doing differently than others: Did you restart Jenkins after updating the plugin? What version of the Jenkins controller are you running? What other plugins (and their versions) are you running? What is the exact error message that is being reported? What operating system is running the Jenkins controller? Are there configuration settings in your controller that might make your controller different from other controllers?

          Jesse Glick added a comment -

          assafkatz3b possibly you are seeing a distinct problem. Best to open a separate issue linked to this one with error messages and complete, minimal steps to reproduce from scratch.

          Jesse Glick added a comment - assafkatz3b possibly you are seeing a distinct problem. Best to open a separate issue linked to this one with error messages and complete, minimal steps to reproduce from scratch.

          Assaf Katz added a comment -

          jglick and markewaite I got exactly the same problem as described above:

          2022-08-01 13:20:56.572+0000 [id=28]    SEVERE  hudson.PluginManager$1$3$2$1#reactOnCycle: found cycle in plugin dependencies: (root=Plugin:sshd, deactivating all involved) Plugin:sshd -> Plugin:mina-sshd-api-core -> Plugin:ssh-credentials -> Plugin:credentials -> Plugin:sshd
          2022-08-01 13:20:56.574+0000 [id=28]    SEVERE  hudson.PluginManager$1$3$2$1#reactOnCycle: found cycle in plugin dependencies: (root=Plugin:sshd, deactivating all involved) Plugin:sshd -> Plugin:mina-sshd-api-core -> Plugin:ssh-credentials -> Plugin:credentials -> Plugin:trilead-api -> Plugin:sshd

          Dockerfileis attached, it should answer other questions, if I missed something, please tell me.

          Thanks

           

          Assaf Katz added a comment - jglick and markewaite I got exactly the same problem as described above: 2022-08-01 13:20:56.572+0000 [id=28]    SEVERE  hudson.PluginManager$1$3$2$1#reactOnCycle: found cycle in plugin dependencies: (root=Plugin:sshd, deactivating all involved) Plugin:sshd -> Plugin:mina-sshd-api-core -> Plugin:ssh-credentials -> Plugin:credentials -> Plugin:sshd 2022-08-01 13:20:56.574+0000 [id=28]    SEVERE  hudson.PluginManager$1$3$2$1#reactOnCycle: found cycle in plugin dependencies: (root=Plugin:sshd, deactivating all involved) Plugin:sshd -> Plugin:mina-sshd-api-core -> Plugin:ssh-credentials -> Plugin:credentials -> Plugin:trilead-api -> Plugin:sshd Dockerfile is attached, it should answer other questions, if I missed something, please tell me. Thanks  

          Mark Waite added a comment - - edited

          assafkatz3b you are running Jenkins 2.306 in that Dockerfile. There are multiple security advisories published for Jenkins 2.306. If you intend to remain with Jenkins weekly, then you should update to the most recent Jenkins weekly release, 2.361. If you update less frequently, then you should update to the most recent Jenkins LTS 2.346.2.

          Mark Waite added a comment - - edited assafkatz3b you are running Jenkins 2.306 in that Dockerfile. There are multiple security advisories published for Jenkins 2.306. If you intend to remain with Jenkins weekly, then you should update to the most recent Jenkins weekly release, 2.361. If you update less frequently, then you should update to the most recent Jenkins LTS 2.346.2.

          Assaf Katz added a comment -

          markewaite I upgraded the docker file to 2.346.2, this didn't help. Then I let Jenkins decide which plugins' versions to use and now it is working. So the problem is still the same issue but with probably some default plugin

          Thanks

          Assaf Katz added a comment - markewaite I upgraded the docker file to 2.346.2, this didn't help. Then I let Jenkins decide which plugins' versions to use and now it is working. So the problem is still the same issue but with probably some default plugin Thanks

          Daniel Beck added a comment -

          assafkatz3b 's problem appears to be an outdated version of credentials plugin (2.6.2 or older, obsolete since Dec 2021).

          Daniel Beck added a comment - assafkatz3b 's problem appears to be an outdated version of credentials plugin (2.6.2 or older, obsolete since Dec 2021).

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

              Created:
              Updated:
              Resolved: