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

Jenkins Upgrade Now deletes new .war at restart

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Windows 10 pro version 1803,
      1.8.0_66-b18
      Jenkins 2.148
    • Similar Issues:

      Description

      Jenkins gives a notification that there is a new version (2.149).

      Click Upgrade Automatically. 

      Jenkins starts the download to jenkins.war twice, 

      and gives twice the blue ball and message 'installed' 

      There are at this time 3 files on disk: jenkins.war, jenkins.war.bak and jenkins.war.tmp

      Set 'restart' checkbox: only .war.bak remains after service is stopped.

      Jenkins fails to start because jenkins.war is not found.

       

      third attempt (while writing this report) succeeded.

      It only downloaded & installed once after setting 'udgrade automatically'.

      There are no other users on this serrver who will start an upgrade.

        Attachments

        1. DoubleClick.err
          2 kB
        2. Jenkins.err
          3 kB
        3. jenkins.xml
          2 kB

          Issue Links

            Activity

            Hide
            jamesivie James added a comment -

            Since I'm back up and running, I see there is a link to download the new WAR file, but I'm not sure people who are in the failed state will be able to find anything other than a full installation.  Any advice for them–they will probably eventually come here for help.  Also, is it OK to update just the WAR file by itself?  The Jenkins.exe (and who knows what else) won't match that version.

            Show
            jamesivie James added a comment - Since I'm back up and running, I see there is a link to download the new WAR file, but I'm not sure people who are in the failed state will be able to find anything other than a full installation.  Any advice for them–they will probably eventually come here for help.  Also, is it OK to update just the WAR file by itself?  The Jenkins.exe (and who knows what else) won't match that version.
            Hide
            danielbeck Daniel Beck added a comment -

            If you've been using the Jenkins built-in update functionality, you've just replaced the war file all this time anyway.

            Show
            danielbeck Daniel Beck added a comment - If you've been using the Jenkins built-in update functionality, you've just replaced the war file all this time anyway.
            Hide
            jamesivie James added a comment -

            For the rest of the planet whose Jenkins fails when they try to upgrade and their Jenkins.war file is missing, and who can't get to the link to the new WAR file to get back up and running because their Jenkins is down, here is the link to a new WAR file that will hopefully get you back up and running:

            http://updates.jenkins-ci.org/download/war/2.153/jenkins.war

            Put this file in your Jenkins folder (there should not be a file with the same name there already if you're in this state, but there should be a Jenkins.war.bak file that is the old version), and restart the service either through the UI, or using the CMD console and running "net start Jenkins".

            Show
            jamesivie James added a comment - For the rest of the planet whose Jenkins fails when they try to upgrade and their Jenkins.war file is missing, and who can't get to the link to the new WAR file to get back up and running because their Jenkins is down, here is the link to a new WAR file that will hopefully get you back up and running: http://updates.jenkins-ci.org/download/war/2.153/jenkins.war Put this file in your Jenkins folder (there should  not be a file with the same name there already if you're in this state, but there should be a Jenkins.war.bak file that is the old version), and restart the service either through the UI, or using the CMD console and running "net start Jenkins".
            Hide
            renea Rene Affourtit added a comment -

            Last week I upgraded from 2.152 to 2.153 four times without trouble. 

             

            Because it has been an intermittent problem for me I reverted to 2.152 again and repeated the cycle a few times. 

            Also when trying to 'force' the issue with a doubleclick it worked fine. 

            Delayed feedback because I wanted to try the same on 2.154, but that's not out yet. 

             

            For me this issue can be marked as resolved.

            Show
            renea Rene Affourtit added a comment - Last week I upgraded from 2.152 to 2.153 four times without trouble.    Because it has been an intermittent problem for me I reverted to 2.152 again and repeated the cycle a few times.  Also when trying to 'force' the issue with a doubleclick it worked fine.  Delayed feedback because I wanted to try the same on 2.154, but that's not out yet.    For me this issue can be marked as resolved.
            Hide
            renea Rene Affourtit added a comment -

            Updated to 2.153 and 2.154.

            Both multiple times without any further issues.

            Show
            renea Rene Affourtit added a comment - Updated to 2.153 and 2.154. Both multiple times without any further issues.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              renea Rene Affourtit
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: