sailfin
  1. sailfin
  2. SAILFIN-1864

[inplace upgrade] old appserver version still exists after upgrade

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: milestone 1
    • Component/s: Tools
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Sun

    • Issuezilla Id:
      1,864

      Description

      Inplace upgrade from sailfin 1.0 to sailfin 2.0 b23

      version does not change after upgrade
      bin/asadmin version --verbose
      Version = Sun GlassFish Communications Server 1.5 (9.1.1) (build b60g-fcs)
      Command version executed successfully

        Activity

        Hide
        naman_mehta added a comment -

        No need to create new target. I am using existing target for unpacking jars.

        To do in-place upgrade user needs to run following command:

        Consider user has existing setup of Sailfin unser 'setup/sailfin' directory.

        1. Download new installer jar under setup directory.
        2. Run command 'java -Xmx256m -jar <new installer>.jar'.
        3. It replaces existing binaries under setup/sailfin folder.
        4. Run following command from setup/sailfin directory
        ant -f setup.xml uncompress-jars

        This command unpack all pack.gz jars. After this, during starting domain
        in-place upgrade would take place. Now user can find new appserver version.

        Show
        naman_mehta added a comment - No need to create new target. I am using existing target for unpacking jars. To do in-place upgrade user needs to run following command: Consider user has existing setup of Sailfin unser 'setup/sailfin' directory. 1. Download new installer jar under setup directory. 2. Run command 'java -Xmx256m -jar <new installer>.jar'. 3. It replaces existing binaries under setup/sailfin folder. 4. Run following command from setup/sailfin directory ant -f setup.xml uncompress-jars This command unpack all pack.gz jars. After this, during starting domain in-place upgrade would take place. Now user can find new appserver version.
        Hide
        1xpert added a comment -

        While installing sailfin v1, I used this command ant -f setup-cluster.xml to
        unpack jars

        After installing sailfin v2 build 28, I used the command suggested and got error
        Src doesn't exist.

        /export/home/upgrade/sailfin # ant -f setup-cluster.xml uncompress-jars

        Buildfile: setup-cluster.xml

        get.java.home:

        setup.init:

        tools.init.windows:

        tools.init.solaris:

        tools.init.solaris-sparc:

        tools.init.solaris-x86:

        tools.init.linux:

        tools.init.darwin:

        check-osforbuildjarinstaller:

        check-installer-compatibility:

        installer-message:

        all:

        create-local-registry:

        setup.reg:
        [echo] Creating the service registry file..
        [java] From Local service registry ..

        preinstall-bootstrap:

        get.java.home:

        setup.init:

        check-java:

        get.java.home:

        setup.init:

        validate-java:
        [echo] Current Java Version 1.6.0_14

        get.java.home:

        setup.init:

        glassfish-jarunpack:
        [echo] Applying UnPack200 on Packed jars using JDK1.5
        [echo] /export/home/upgrade/sailfin/lib/Pack200Task.jar

        get.java.home:

        setup.init:

        nonmac-jarunpack:

        get.java.home:

        setup.init:

        nonaix-jarunpack:

        jarpack-tasks:

        jar-unpack:

        BUILD FAILED
        /export/home/upgrade/sailfin/setup-cluster.xml:171: The following error occurred
        while executing this line:
        /export/home/upgrade/sailfin/setup-cluster.xml:221: The following error occurred
        while executing this line:
        /export/home/upgrade/sailfin/setup-cluster.xml:849: The following error occurred
        while executing this line:
        /export/home/upgrade/sailfin/setup-cluster.xml:1055: The following error
        occurred while executing this line:
        /export/home/upgrade/sailfin/setup-cluster.xml:1059: The following error
        occurred while executing this line:
        /export/home/upgrade/sailfin/setup-cluster.xml:841: Src doesn't exist

        Total time: 1 second

        Show
        1xpert added a comment - While installing sailfin v1, I used this command ant -f setup-cluster.xml to unpack jars After installing sailfin v2 build 28, I used the command suggested and got error Src doesn't exist. /export/home/upgrade/sailfin # ant -f setup-cluster.xml uncompress-jars Buildfile: setup-cluster.xml get.java.home: setup.init: tools.init.windows: tools.init.solaris: tools.init.solaris-sparc: tools.init.solaris-x86: tools.init.linux: tools.init.darwin: check-osforbuildjarinstaller: check-installer-compatibility: installer-message: all: create-local-registry: setup.reg: [echo] Creating the service registry file.. [java] From Local service registry .. preinstall-bootstrap: get.java.home: setup.init: check-java: get.java.home: setup.init: validate-java: [echo] Current Java Version 1.6.0_14 get.java.home: setup.init: glassfish-jarunpack: [echo] Applying UnPack200 on Packed jars using JDK1.5 [echo] /export/home/upgrade/sailfin/lib/Pack200Task.jar get.java.home: setup.init: nonmac-jarunpack: get.java.home: setup.init: nonaix-jarunpack: jarpack-tasks: jar-unpack: BUILD FAILED /export/home/upgrade/sailfin/setup-cluster.xml:171: The following error occurred while executing this line: /export/home/upgrade/sailfin/setup-cluster.xml:221: The following error occurred while executing this line: /export/home/upgrade/sailfin/setup-cluster.xml:849: The following error occurred while executing this line: /export/home/upgrade/sailfin/setup-cluster.xml:1055: The following error occurred while executing this line: /export/home/upgrade/sailfin/setup-cluster.xml:1059: The following error occurred while executing this line: /export/home/upgrade/sailfin/setup-cluster.xml:841: Src doesn't exist Total time: 1 second
        Hide
        1xpert added a comment -

        Pls ignore previous error about src doesn't exist. I was able to use target
        uncompress-jars successfully on 2nd time

        I still could not verify appserver version using your suggestion e.g. use target
        uncompress-jars

        Show
        1xpert added a comment - Pls ignore previous error about src doesn't exist. I was able to use target uncompress-jars successfully on 2nd time I still could not verify appserver version using your suggestion e.g. use target uncompress-jars
        Hide
        naman_mehta added a comment -

        I added new support for in place upgrade in jar based installer. You can try
        same on today's nightly build. Follow below instructions to do upgrade.

        How to upgrade on existing SailFin?
        Consider user has existing setup of SailFin 1.0 under <ws>/sailfin directory.

        1. Download SailFin v2 jar file called <installer jar>.
        2. Copy this new jar file to <ws> directory.
        3. cd <ws>
        4. java -jar -Xmx256m <installer jar> -upgrade
        or
        java -jar -Xmx256m <installer jar> -console -upgrade
        Note: To do the upgrade user have to give -upgrade option otherwise it
        won't overwrite existing files under sailfin directory.
        5. cd <ws>/sailfin
        6. lib/ant/bin/ant -f setup.xml uncompress-jars
        This command uncompress all pack.gz jars to sailfin/lib folder. It won't
        create any new domain.
        7. Start the domain now and in-place upgrade would take place.

        Naman

        Show
        naman_mehta added a comment - I added new support for in place upgrade in jar based installer. You can try same on today's nightly build. Follow below instructions to do upgrade. How to upgrade on existing SailFin? Consider user has existing setup of SailFin 1.0 under <ws>/sailfin directory. 1. Download SailFin v2 jar file called <installer jar>. 2. Copy this new jar file to <ws> directory. 3. cd <ws> 4. java -jar -Xmx256m <installer jar> -upgrade or java -jar -Xmx256m <installer jar> -console -upgrade Note: To do the upgrade user have to give -upgrade option otherwise it won't overwrite existing files under sailfin directory. 5. cd <ws>/sailfin 6. lib/ant/bin/ant -f setup.xml uncompress-jars This command uncompress all pack.gz jars to sailfin/lib folder. It won't create any new domain. 7. Start the domain now and in-place upgrade would take place. Naman
        Hide
        1xpert added a comment -

        Tried the new support and was able to get the correct version 2.0

        bash-3.00# bin/asadmin version
        Unable to communicate with admin server, getting version locally.
        Version = Sun GlassFish Communications Server 2.0
        Command version executed successfully.

        Show
        1xpert added a comment - Tried the new support and was able to get the correct version 2.0 bash-3.00# bin/asadmin version Unable to communicate with admin server, getting version locally. Version = Sun GlassFish Communications Server 2.0 Command version executed successfully.

          People

          • Assignee:
            naman_mehta
            Reporter:
            1xpert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: