• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      It appears that Jenkins no longer records when it is upgraded, and every restart of ci.jenkins.io now logs something like

      2021-04-09 12:46:46.843+0000 [id=30]	INFO	hudson.PluginManager#loadDetachedPlugins: Upgrading Jenkins. The last running version was 2.263.4. This Jenkins is version 2.277.2.
      2021-04-09 12:46:46.922+0000 [id=30]	INFO	hudson.PluginManager#loadDetachedPlugins: Upgraded Jenkins from version 2.263.4 to version 2.277.2. Loaded detached plugins (and dependencies): [] 

      Probably the same cause as JENKINS-65149.

      This will cause previously uninstalled detached plugins to be installed again (in addition to the confusing log message).

          [JENKINS-65329] Jenkins no longer records updates

          Alan Sparks added a comment -

          This issue continues with 2.277.3 LTS update, jenkins.install.InstallUtil.lastExecVersion is not updated.

          Alan Sparks added a comment - This issue continues with 2.277.3 LTS update, jenkins.install.InstallUtil.lastExecVersion is not updated.

          Ramon Leon added a comment - - edited

          What I've faced:

          • Install 2.277.1
          • Stop it
          • Start a 2.277.2 using the same Jenkins Home
          • Stop it
          • Start the 2.277.2 again
          • ...
            You always see:
          INFO	hudson.PluginManager#loadDetachedPlugins: Upgrading Jenkins. The last running version was 2.277.1. This Jenkins is version 2.277.2.
          INFO	hudson.PluginManager#loadDetachedPlugins: Upgraded Jenkins from version 2.277.1 to version 2.277.2. Loaded detached plugins (and dependencies): []
          

          The jenkins.install.InstallUtil.lastExecVersion or jenkins.install.UpgradeWizard.state files are never updated. It doesn’t happen with latest versions (2.288 -> 2.289)

          Ramon Leon added a comment - - edited What I've faced: Install 2.277.1 Stop it Start a 2.277.2 using the same Jenkins Home Stop it Start the 2.277.2 again ... You always see: INFO hudson.PluginManager#loadDetachedPlugins: Upgrading Jenkins. The last running version was 2.277.1. This Jenkins is version 2.277.2. INFO hudson.PluginManager#loadDetachedPlugins: Upgraded Jenkins from version 2.277.1 to version 2.277.2. Loaded detached plugins (and dependencies): [] The jenkins.install.InstallUtil.lastExecVersion or jenkins.install.UpgradeWizard.state files are never updated. It doesn’t happen with latest versions (2.288 -> 2.289)

          Daniel Beck added a comment -

          It doesn’t happen with latest versions (2.288 -> 2.289)

          So I guess we don't need this issue anymore if it's fixed on weeklies, since the 2.277.x line is done?

          Daniel Beck added a comment - It doesn’t happen with latest versions (2.288 -> 2.289) So I guess we don't need this issue anymore if it's fixed on weeklies, since the 2.277.x line is done?

          Alan Sparks added a comment - - edited

          If it really is... 2.277.5 just came out today, is that the last before a major LTS upgrade? Or how hard is it to backport whatever the change was, if we are waiting a while for the LTS release that fixes it?

          It's not fixed in 2.277.4 released today.
          -Alan

          Alan Sparks added a comment - - edited If it really is... 2.277.5 just came out today, is that the last before a major LTS upgrade? Or how hard is it to backport whatever the change was, if we are waiting a while for the LTS release that fixes it? It's not fixed in 2.277.4 released today. -Alan

          Daniel Beck added a comment -

          Still the same LTS line, it would never have been fixed there, see https://www.jenkins.io/download/lts/ for how all of this works.

          Daniel Beck added a comment - Still the same LTS line, it would never have been fixed there, see https://www.jenkins.io/download/lts/ for how all of this works.

          Ray Kivisto added a comment -

          I also can't reproduce when upgrading from Jenkins weekly 2.295 to 2.296, but I have not found what change seems to have fixed this. I would have expected someone added a new call to InstallUtil.saveLastExecVersion(), or some change to the setup wizard code to trigger the call here

          Ray Kivisto added a comment - I also can't reproduce when upgrading from Jenkins weekly 2.295 to 2.296, but I have not found what change seems to have fixed this. I would have expected someone added a new call to InstallUtil.saveLastExecVersion() , or some change to the setup wizard code to trigger the call here

          Ray Kivisto added a comment -

          I think I found it, I believe this commit from PR 5290 fixed the issue, it's first release was Jenkins weekly 2.280:

          https://github.com/jenkinsci/jenkins/commit/60b7a7c3a4da77bb802757488183209652872803

          Ray Kivisto added a comment - I think I found it, I believe this commit from PR 5290 fixed the issue, it's first release was Jenkins weekly 2.280: https://github.com/jenkinsci/jenkins/commit/60b7a7c3a4da77bb802757488183209652872803

          Tim Jacomb added a comment -

          Tim Jacomb added a comment - See https://github.com/jenkinsci/jenkins/pull/5290#issuecomment-852361556

          Alan Sparks added a comment -

          I have tested upgrading from 2.277.4 to new LTS 2.289.1. I do NOT see this problem resolved:

          jenkins.log:
          2021-06-15 16:05:52.766+0000 [id=27] INFO hudson.PluginManager#loadDetachedPlugins: Upgrading Jenkins. The last running version was 2.277.4. This Jenkins is version 2.289.1.
          2021-06-15 16:05:54.865+0000 [id=27] INFO hudson.PluginManager#loadDetachedPlugins: Upgraded Jenkins from version 2.277.4 to version 2.289.1. Loaded detached plugins (and dependencies): [sshd.hpi]

          Contents of jenkins.install.InstallUtil.lastExecVersion after upgrade:
          $ cat jenkins.install.InstallUtil.lastExecVersion
          2.277.4

          Please confirm the fix was actually released for LTS.

          Alan Sparks added a comment - I have tested upgrading from 2.277.4 to new LTS 2.289.1. I do NOT see this problem resolved: jenkins.log: 2021-06-15 16:05:52.766+0000 [id=27] INFO hudson.PluginManager#loadDetachedPlugins: Upgrading Jenkins. The last running version was 2.277.4. This Jenkins is version 2.289.1. 2021-06-15 16:05:54.865+0000 [id=27] INFO hudson.PluginManager#loadDetachedPlugins: Upgraded Jenkins from version 2.277.4 to version 2.289.1. Loaded detached plugins (and dependencies): [sshd.hpi] Contents of jenkins.install.InstallUtil.lastExecVersion after upgrade: $ cat jenkins.install.InstallUtil.lastExecVersion 2.277.4 Please confirm the fix was actually released for LTS.

          Alan Sparks added a comment -

          it updated later. never mind...

          Alan Sparks added a comment - it updated later. never mind...

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: