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

.hpi versus .jpi causes inability to upgrade Subversion Plugin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Ubuntu 11.10, OpenJDK 1.6.0_23, Tomcat 7.0.21, Jenkins 1.448 & 1.449
      Jenkins 1.456 on Windows Server 2003 64-bit, Sun JDK 6.0.260.3

      Description

      Reproduction:
      $JENKINS_HOME/plugins: subversion (directory), subversion.hpi
      1) Open http://<root>/pluginManager. Update Subversion plugin from 1.34 -> 1.37 using download now and install after restart button.
      $JENKINS_HOME/plugins: subversion (directory), subversion.bak (1.34), subversion.hpi.pinned, subversion.jpi (1.37)
      2) Restart Tomcat/Jenkins
      $JENKINS_HOME/plugins: subversion (directory), subversion.bak (1.34), subversion.hpi (1.34) subversion.hpi.pinned, subversion.jpi (1.37)
      3) PluginManager still reports old version

      Should note that the logs report:
      INFO: Ignoring /ci/jenkins-home/plugins/subversion.jpi because /ci/jenkins-home/plugins/subversion.hpi is already loaded

      Also the plugin is broken at this point with a NoClassDefFound on org/tmatesoft/svn/core/SVNException

      Clean State:
      1) /etc/init.d/tomcat7 stop
      2) cd $JENKINS_HOME/plugins
      3) rm subversion*
      4) /etc/init.d/tomcat7 start

      Workaround:
      1) Restore clean state
      2) Update plugin
      3) Stop tomcat/jenkins
      4) cd $JENKINS_HOME/plugins
      5) mv subversion.jpi subversion.hpi
      6) Start tomcat/jenkins

        Issue Links

          Activity

          Hide
          lyle_lee Lyle Lee added a comment -

          Must be consider about upgrade subversion plugin by hand without internet connection.

          Following the instruction on wiki page, restarting the server with jenkins.war after putting subversion.hpi in $JENKINS_HOME/plugins overwrites just copied new version with old one included in jenkins.war.

          I found that this problem can be solved by removing $JENKINS_HOME/war/WEB-INF/plugins/subversion.hpi before restarting the server. But it's not general way and also conflicts over wiki instruction.

          Show
          lyle_lee Lyle Lee added a comment - Must be consider about upgrade subversion plugin by hand without internet connection. Following the instruction on wiki page, restarting the server with jenkins.war after putting subversion.hpi in $JENKINS_HOME/plugins overwrites just copied new version with old one included in jenkins.war. I found that this problem can be solved by removing $JENKINS_HOME/war/WEB-INF/plugins/subversion.hpi before restarting the server. But it's not general way and also conflicts over wiki instruction.
          Hide
          nikhilvasaikar Nikhil Vasaikar added a comment - - edited

          I am facing a similar issue, when uploading a new hpi file. The plugin gets uploaded form the Advanced Tab. I can see the .jpi file and the exploded folder under JENKINS_HOME\plugins. I restarted Jenkins.

          When I go on the Configure screen, I can't see my plugin options, as if the plugin was never installed.

          Jenkins version : 1.488

          Show
          nikhilvasaikar Nikhil Vasaikar added a comment - - edited I am facing a similar issue, when uploading a new hpi file. The plugin gets uploaded form the Advanced Tab. I can see the .jpi file and the exploded folder under JENKINS_HOME\plugins. I restarted Jenkins. When I go on the Configure screen, I can't see my plugin options, as if the plugin was never installed. Jenkins version : 1.488
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Does anyone see the issue on newest Jenkins versions (1.532+)?

          Show
          oleg_nenashev Oleg Nenashev added a comment - Does anyone see the issue on newest Jenkins versions (1.532+)?
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          No further input. Closing.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - No further input. Closing.
          Hide
          mr_dfuse Nico Mommaerts added a comment -

          Yes, I still see this happening on the latest lts (1.565.2)
          Also for the credentials plugin

          Show
          mr_dfuse Nico Mommaerts added a comment - Yes, I still see this happening on the latest lts (1.565.2) Also for the credentials plugin

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              acharlieh Charlie Huggard
            • Votes:
              18 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: