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

No possible to run my jobs after upgrade WAR Stable 2.249.2 to 2.346.2

      Hello everyone,
      We are migrate our Jenkins to 2.249 to 2.346. We are upgrade all plugins and also Java version to JDK11.0.2 version
      All Jenkins Slaves are UP, no connection problems with jenkins master.
      A very good migration in this world (peace of cake)

      Now, all my jobs can't run (see attachment pics). Jobs still lock at theses steps and to stop the jobs I had to make a Hard Kill : 
      [Pipeline] Start of Pipeline
      [Pipeline] node  

      Even the simple HELLO WORLD pipeline not running. 

      First time I see this issue.
      Jenkins Community  please help

      Regard, Salution, Mit freundlichen Grüßen 

      LMO

        1. Capture1.PNG
          Capture1.PNG
          9 kB
        2. Capture2.PNG
          Capture2.PNG
          55 kB
        3. Capture3.PNG
          Capture3.PNG
          19 kB
        4. Capture4.PNG
          Capture4.PNG
          28 kB
        5. plugin_Jenkins.txt
          3 kB
        6. plugin_JenkinsV2.txt
          3 kB

          [JENKINS-69454] No possible to run my jobs after upgrade WAR Stable 2.249.2 to 2.346.2

          Mark Waite added a comment -

          Before others will be able to help you, you will need to provide enough information so that others can duplicate the problem. See the "How to report an issue" instructions for the types of details that you need to include. You mentioned the Java version, the original Jenkins version, and the new Jenkins version. You didn't list the specific plugins installed or the versions of the plugins installed. You didn't provide details of the job definitions that you're using to show the failure. Without those details, it is unlikely that others will be able to assist you.

          The version of JDK 11 that you chose is out of date. JDK 11.0.2 is the second patch release of JDK 11. There have been more than 14 patch releases since then, with patch releases roughly every 3 months. The current JDK 11 version is 11.0.16.1. Please use that instead of 11.0.2.

          Please read the upgrade guides for each of the versions that you've crossed as part of your upgrade. Follow the instructions in those upgrade guides, especially the instructions related to plugin updates. They will guide you to remove deprecated plugins, remove plugins with open security advisories, and upgrade plugins to current versions.

          Mark Waite added a comment - Before others will be able to help you, you will need to provide enough information so that others can duplicate the problem. See the "How to report an issue" instructions for the types of details that you need to include. You mentioned the Java version, the original Jenkins version, and the new Jenkins version. You didn't list the specific plugins installed or the versions of the plugins installed. You didn't provide details of the job definitions that you're using to show the failure. Without those details, it is unlikely that others will be able to assist you. The version of JDK 11 that you chose is out of date. JDK 11.0.2 is the second patch release of JDK 11. There have been more than 14 patch releases since then, with patch releases roughly every 3 months. The current JDK 11 version is 11.0.16.1. Please use that instead of 11.0.2. Please read the upgrade guides for each of the versions that you've crossed as part of your upgrade. Follow the instructions in those upgrade guides, especially the instructions related to plugin updates. They will guide you to remove deprecated plugins, remove plugins with open security advisories, and upgrade plugins to current versions.

          Lio Moun added a comment -

          Hello markewaite,
          Thanks for your return and take time for my issue.
          You right and I understand, about provide more informations.

          So I follow your recommandations and I upgrade my Java version to JDK 11.0.16.1.

          Problem still same

          In attachment, I add the result of my environnement (new pics + .txt file of my plugins).

          Regard, Salution, Mit freundlichen Grüßen 

          LMO

           

          Lio Moun added a comment - Hello markewaite , Thanks for your return and take time for my issue. You right and I understand, about provide more informations. So I follow your recommandations and I upgrade my Java version to JDK 11.0.16.1. Problem still same In attachment, I add the result of my environnement (new pics + .txt file of my plugins). Regard, Salution, Mit freundlichen Grüßen  LMO  

          Mark Waite added a comment -

          Your list of plugins shows that you have not followed the instructions in the upgrade guides. Please follow the instructions in the upgrade guides.

          If you had followed the instructions in the upgrade guide and upgraded all the plugins to current releases, you would not have included jdk-tool:1.0 and ldap:1.11 . Those plugins need to be upgraded. If those plugins need to be upgraded, that likely means there are many other plugins that need to be upgraded.

          Mark Waite added a comment - Your list of plugins shows that you have not followed the instructions in the upgrade guides. Please follow the instructions in the upgrade guides. If you had followed the instructions in the upgrade guide and upgraded all the plugins to current releases, you would not have included jdk-tool:1.0 and ldap:1.11 . Those plugins need to be upgraded. If those plugins need to be upgraded, that likely means there are many other plugins that need to be upgraded.

          Mark Waite added a comment -

          When I ran your list of plugins with Jenkins 2.346.2, it reported messages that further support the requirement from the upgrade guide that you must upgrade your plugins. The script that I ran with your plugins.txt file was:

          #!/bin/bash
          
          # User reports cannot run jobs after upgrade
          
          JENKINS_WAR_VERSION=2.346.2
          JENKINS_WAR=jenkins-${JENKINS_WAR_VERSION}.war
          PLUGIN_MANAGER_VERSION=2.12.8
          PLUGIN_MANAGER_JAR=jenkins-plugin-manager-${PLUGIN_MANAGER_VERSION}.jar
          
          if [ ! -f ../$PLUGIN_MANAGER_JAR ]; then
            wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_MANAGER_VERSION}/$PLUGIN_MANAGER_JAR
            mv $PLUGIN_MANAGER_JAR ..
          fi
          if [ ! -d plugins ]; then
            mkdir plugins
          fi
          java -jar ../$PLUGIN_MANAGER_JAR --jenkins-version $JENKINS_WAR_VERSION --latest false --plugin-download-directory plugins --plugin-file plugins.txt
          
          if [ ! -f ../$JENKINS_WAR ]; then
            wget https://get.jenkins.io/war/${JENKINS_WAR_VERSION}/jenkins.war
            mv jenkins.war ../$JENKINS_WAR
          fi
          
          JENKINS_HOME=. java -jar ../$JENKINS_WAR
          

          The command line output from Jenkins was:

          java.lang.ClassNotFoundException: org.acegisecurity.providers.ldap.LdapAuthoritiesPopulator
                  at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1402)
                  at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357)
                  at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112)
                  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          Caused: java.lang.NoClassDefFoundError: org/acegisecurity/providers/ldap/LdapAuthoritiesPopulator
                  at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
                  at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
                  at java.base/java.lang.Class.getMethodsRecursive(Class.java:3307)
          

          That message most likely means that you didn't heed the instructions in the 2.277.1 upgrade guide. That's only one of the upgrade guides. Read and heed them all.

          Mark Waite added a comment - When I ran your list of plugins with Jenkins 2.346.2, it reported messages that further support the requirement from the upgrade guide that you must upgrade your plugins. The script that I ran with your plugins.txt file was: #!/bin/bash # User reports cannot run jobs after upgrade JENKINS_WAR_VERSION=2.346.2 JENKINS_WAR=jenkins-${JENKINS_WAR_VERSION}.war PLUGIN_MANAGER_VERSION=2.12.8 PLUGIN_MANAGER_JAR=jenkins-plugin-manager-${PLUGIN_MANAGER_VERSION}.jar if [ ! -f ../$PLUGIN_MANAGER_JAR ]; then wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_MANAGER_VERSION}/$PLUGIN_MANAGER_JAR mv $PLUGIN_MANAGER_JAR .. fi if [ ! -d plugins ]; then mkdir plugins fi java -jar ../$PLUGIN_MANAGER_JAR --jenkins-version $JENKINS_WAR_VERSION --latest false --plugin-download-directory plugins --plugin-file plugins.txt if [ ! -f ../$JENKINS_WAR ]; then wget https://get.jenkins.io/war/${JENKINS_WAR_VERSION}/jenkins.war mv jenkins.war ../$JENKINS_WAR fi JENKINS_HOME=. java -jar ../$JENKINS_WAR The command line output from Jenkins was: java.lang.ClassNotFoundException: org.acegisecurity.providers.ldap.LdapAuthoritiesPopulator at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1402) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) Caused: java.lang.NoClassDefFoundError: org/acegisecurity/providers/ldap/LdapAuthoritiesPopulator at java.base/java.lang.Class.getDeclaredMethods0(Native Method) at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166) at java.base/java.lang.Class.getMethodsRecursive(Class.java:3307) That message most likely means that you didn't heed the instructions in the 2.277.1 upgrade guide . That's only one of the upgrade guides. Read and heed them all.

          Lio Moun added a comment -

          Hi Martin,
          Thanks for quick reply.
          I just forgetten these plugins, my fault sorry !
          Now, plugins are upgrade.

          I have jdk-tool:1.5 and ldap:2.11

           

          Lio Moun added a comment - Hi Martin, Thanks for quick reply. I just forgetten these plugins, my fault sorry ! Now, plugins are upgrade. I have  jdk-tool:1.5 and ldap:2.11  

          Lio Moun added a comment -

          Ok Mark I will follow your answer.
          For your information I put the new plugin list. (plugin_JenkinsV2.txt)

          Lio Moun added a comment - Ok Mark I will follow your answer. For your information I put the new plugin list. (plugin_JenkinsV2.txt )

          Basil Crow added a comment -

          Is this issue resolved after upgrading all plugins to the latest compatible versions?

          Basil Crow added a comment - Is this issue resolved after upgrading all plugins to the latest compatible versions?

          Mark Waite added a comment -

          The plugin list plugin_JenkinsV2.txt that lio_moun provided does not upgrade all plugins. There are 50 plugins that can be upgraded and there are security warnings for 5 plugins.

          Plugins that need to be upgraded include:

          • Active Directory
          • Ant
          • Apache HttpComponents Client 4.x API
          • Bootstrap 4 API
          • Bootstrap 5 API
          • Checks API
          • Command Agent Launcher
          • Credentials
          • Durable Task
          • External Monitor Job Type
          • Folders
          • Font Awesome API
          • GIT server
          • Git
          • JSch dependency
          • JUnit
          • Jakarta Activation API
          • Jakarta Mail API
          • JavaBeans Activation Framework (JAF) API
          • JavaMail API
          • Javadoc
          • Jersey 2 API
          • LDAP
          • Lockable Resources
          • Mailer
          • MapDB API
          • Matrix Authorization Strategy
          • Nexus Platform
          • OWASP Markup Formatter
          • Oracle Java SE Development Kit Installer
          • PAM Authentication
          • Pipeline: Basic Steps
          • Pipeline: Declarative
          • Pipeline: Declarative Agent API
          • Pipeline: Declarative Extension Points API
          • Pipeline: Groovy
          • Pipeline: Groovy Libraries
          • Pipeline: Job
          • Pipeline: Model API
          • Pipeline: Nodes and Processes
          • Pipeline: Stage Step
          • Pipeline: Stage Tags Metadata
          • Plain Credentials
          • Popper.js 2 API
          • Popper.js API
          • Role-based Authorization Strategy
          • SSH Build Agents
          • SSH Credentials
          • SnakeYAML API
          • Subversion
          • Variant
          • jQuery

          Mark Waite added a comment - The plugin list plugin_JenkinsV2.txt that lio_moun provided does not upgrade all plugins. There are 50 plugins that can be upgraded and there are security warnings for 5 plugins. Plugins that need to be upgraded include: Active Directory Ant Apache HttpComponents Client 4.x API Bootstrap 4 API Bootstrap 5 API Checks API Command Agent Launcher Credentials Durable Task External Monitor Job Type Folders Font Awesome API GIT server Git JSch dependency JUnit Jakarta Activation API Jakarta Mail API JavaBeans Activation Framework (JAF) API JavaMail API Javadoc Jersey 2 API LDAP Lockable Resources Mailer MapDB API Matrix Authorization Strategy Nexus Platform OWASP Markup Formatter Oracle Java SE Development Kit Installer PAM Authentication Pipeline: Basic Steps Pipeline: Declarative Pipeline: Declarative Agent API Pipeline: Declarative Extension Points API Pipeline: Groovy Pipeline: Groovy Libraries Pipeline: Job Pipeline: Model API Pipeline: Nodes and Processes Pipeline: Stage Step Pipeline: Stage Tags Metadata Plain Credentials Popper.js 2 API Popper.js API Role-based Authorization Strategy SSH Build Agents SSH Credentials SnakeYAML API Subversion Variant jQuery

          Mark Waite added a comment -

          Closing after one week with no response. Assume the submitter followed the instructions and resolved the issue in their installation.

          Mark Waite added a comment - Closing after one week with no response. Assume the submitter followed the instructions and resolved the issue in their installation.

            Unassigned Unassigned
            lio_moun Lio Moun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: