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

.hpi versus .jpi causes inability to upgrade Subversion Plugin

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • None
    • 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

      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

          [JENKINS-12514] .hpi versus .jpi causes inability to upgrade Subversion Plugin

          Charlie Huggard created issue -

          This is fixed in ba71264b6b6d75e0c86699d02700dea56f388105 toward 1.450.

          Kohsuke Kawaguchi added a comment - This is fixed in ba71264b6b6d75e0c86699d02700dea56f388105 toward 1.450.
          Kohsuke Kawaguchi made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          karianna made changes -
          Link New: This issue is blocking JENKINS-12449 [ JENKINS-12449 ]
          Michael Clarke made changes -
          Link New: This issue is blocking JENKINS-12583 [ JENKINS-12583 ]

          karianna added a comment -

          Problem still exists in 1.450

          karianna added a comment - Problem still exists in 1.450

          karianna added a comment -

          Problem still exists in 1.450, default plugin is now .jpi extension, but upgrade problem remains, even with fresh install.

          karianna added a comment - Problem still exists in 1.450, default plugin is now .jpi extension, but upgrade problem remains, even with fresh install.
          karianna made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Paul Milliken made changes -
          Link New: This issue is related to JENKINS-12632 [ JENKINS-12632 ]

          Alex Lehmann added a comment -

          I had to set up a "fresh" jenkins instance for dev testing, so I had a new chance to check if updating the plugins works or not, it turns out it doesn't.

          The file is updated in the plugin directory, but the .pinned file is not created so that old plugin is reinstalled when restarting the server.

          When I create the .pinned files manually after shutting down the server, the update works, that provides a work-around at least.

          Alex Lehmann added a comment - I had to set up a "fresh" jenkins instance for dev testing, so I had a new chance to check if updating the plugins works or not, it turns out it doesn't. The file is updated in the plugin directory, but the .pinned file is not created so that old plugin is reinstalled when restarting the server. When I create the .pinned files manually after shutting down the server, the update works, that provides a work-around at least.

            kohsuke Kohsuke Kawaguchi
            acharlieh Charlie Huggard
            Votes:
            18 Vote for this issue
            Watchers:
            26 Start watching this issue

              Created:
              Updated:
              Resolved: