Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24507

Nuxeo Launcher should remember the pending package actions after being restarted

    XMLWordPrintable

    Details

      Description

      1. install 9.10 and register it
      2. install jsf ui (first version):
        ./nuxeoctl mp-install nuxeo-jsf-ui-9.10.0
        

        This brings the server to the situation when a customer has installed the product and JSF before the HF01 release.

      3. Upgrade to HF02:
        ./nuxeoctl mp-hotfix
        

        This gives an output similar to the following:

        Detected Tomcat server.
        Nuxeo home:          /Users/ffischer/nuxeo-server-9.10-tomcat
        Nuxeo configuration: /Users/ffischer/nuxeo-server-9.10-tomcat/bin/nuxeo.conf
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/common-base
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/common
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/default
        
        Dependency resolution:
          Installation order (3):        nuxeo-9.10-HF01-1.0.0/nuxeo-9.10-HF02-1.0.0/nuxeo-jsf-ui-9.10.0-HF01
          Unchanged packages (4):        nuxeo-web-ui:2.2.0, nuxeo-dam:6.3.3, nuxeo-spreadsheet:1.3.3, nuxeo-template-rendering:6.7.3
          Packages to upgrade (1):       nuxeo-jsf-ui:9.10.0
          Packages to download (3):      nuxeo-jsf-ui:9.10.0-HF01, nuxeo-9.10-HF02:1.0.0, nuxeo-9.10-HF01:1.0.0
        
        Do you want to continue (yes/no)? [yes] 
        Downloading [nuxeo-jsf-ui-9.10.0-HF01, nuxeo-9.10-HF02-1.0.0, nuxeo-9.10-HF01-1.0.0]...
        Added nuxeo-jsf-ui-9.10.0-HF01
        Added nuxeo-9.10-HF02-1.0.0
        Added nuxeo-9.10-HF01-1.0.0
        Uninstalling nuxeo-jsf-ui-9.10.0
        Installing nuxeo-9.10-HF01-1.0.0
        Installing nuxeo-9.10-HF02-1.0.0
        Use of the <copy /> command on JAR files is not recommended, prefer using <update /> command to ensure a safe rollback. (nuxeo-launcher-9.10-HF02-jar-with-dependencies.jar)
        Detected Tomcat server.
        Nuxeo home:          /Users/ffischer/nuxeo-server-9.10-tomcat
        Nuxeo configuration: /Users/ffischer/nuxeo-server-9.10-tomcat/bin/nuxeo.conf
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/common-base
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/common
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/default
        
        Dependency resolution:
          Unchanged packages (6):        nuxeo-web-ui:2.2.0, nuxeo-9.10-HF02:1.0.0, nuxeo-dam:6.3.3, nuxeo-9.10-HF01:1.0.0, nuxeo-spreadsheet:1.3.3, nuxeo-template-rendering:6.7.3
        

        The important line is:

        Downloading [nuxeo-jsf-ui-9.10.0-HF01, nuxeo-9.10-HF02-1.0.0, nuxeo-9.10-HF01-1.0.0]
        

        This shows nuxeoctl understands it needs to upgrade jsf. But looking at the following:

        ./nuxeoctl mp-list
        Detected Tomcat server.
        Nuxeo home:          /Users/ffischer/nuxeo-server-9.10-tomcat
        Nuxeo configuration: /Users/ffischer/nuxeo-server-9.10-tomcat/bin/nuxeo.conf
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/common-base
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/common
        Include template: /Users/ffischer/nuxeo-server-9.10-tomcat/templates/default
        Local packages:
        hotfix     started	nuxeo-9.10-HF01 (id: nuxeo-9.10-HF01-1.0.0)
        hotfix     started	nuxeo-9.10-HF02 (id: nuxeo-9.10-HF02-1.0.0)
         addon     started	nuxeo-dam (id: nuxeo-dam-6.3.3)
         addon  downloaded	nuxeo-diff (id: nuxeo-diff-1.8.3)
         addon  downloaded	nuxeo-jsf-ui (id: nuxeo-jsf-ui-9.10.0)
         addon  downloaded	nuxeo-jsf-ui (id: nuxeo-jsf-ui-9.10.0-HF01)
         addon     started	nuxeo-spreadsheet (id: nuxeo-spreadsheet-1.3.3)
         addon  downloaded	nuxeo-spreadsheet (id: nuxeo-spreadsheet-1.3.4)
         addon     started	nuxeo-template-rendering (id: nuxeo-template-rendering-6.7.3)
         addon     started	nuxeo-web-ui (id: nuxeo-web-ui-2.2.0)
        

        JSF addon has been uninstalled but not upgraded.

      4. This actually happens when an HF upgrades the launcher. See install.xml file of HF02 package:
        <copy overwrite="true" file="${package.root}/install/bin/nuxeo-launcher-9.10-HF02-jar-with-dependencies.jar" tofile="${env.server.home}/bin/nuxeo-launcher.jar" />
        

      Expected behavior: JSF addon should be upgraded to 9.10.0-HF01 version and a installAfterRestart-CAP.log file should be present in $NUXEO_HOME/nxserver/data.

      Due to this, after the launcher is upgraded, nuxeoctl "forgets" to upgrade JSF addon.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 5 hours, 20 minutes
                  4d 5h 20m