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

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            jglick 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.

            jglick 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.
            assafkatz3b 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

             

            assafkatz3b 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  
            markewaite 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.

            markewaite 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.
            assafkatz3b 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

            assafkatz3b 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
            danielbeck 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).

            danielbeck 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).

            People

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

              Dates

                Created:
                Updated:
                Resolved: