Difference between revisions of "Upgrading GlobalSight"
Globalwiki (talk | contribs) |
Globalwiki (talk | contribs) (→To upgrade GlobalSight using the Upgrade Installer) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
==Windows== | ==Windows== | ||
===Pre-upgrade procedures=== | ===Pre-upgrade procedures=== | ||
− | # Download and unzip the GlobalSight Upgrade Installer package ''<tt>GlobalSight_Upgrade_Installer_<version>.zip</tt>'' to local system | + | # Download and unzip the GlobalSight Upgrade Installer package ''<tt style="background-color:#efffbf;">GlobalSight_Upgrade_Installer_<version>.zip</tt>'' to local system |
# Edit '''config.properties''' file to set GlobalSight application directory and certificate information to sign code for some Java applet components | # Edit '''config.properties''' file to set GlobalSight application directory and certificate information to sign code for some Java applet components | ||
− | #: <code>gsHome</code>: the absolute path to GlobalSight application directory. Using forward slash as the path separator | + | #: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">gsHome</code>: the absolute path to GlobalSight application directory. Using forward slash as the path separator |
− | #: <code>JKS</code>: the absolute path to the certificate keystore file, uncomment it if needed. Using forward slash as the path separator | + | #: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">JKS</code>: the absolute path to the certificate keystore file, uncomment it if needed. Using forward slash as the path separator |
− | #: <code>keyPass</code>: the passphrase/password of the certificate keystore file, uncomment it if needed | + | #: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">keyPass</code>: the passphrase/password of the certificate keystore file, uncomment it if needed |
− | #: <code>keyAlias</code>: the alias of the certificate keystore file, uncomment it if needed | + | #: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">keyAlias</code>: the alias of the certificate keystore file, uncomment it if needed |
− | ===Extra procedures for upgrading GlobalSight 8.6 to 8.6. | + | ===Extra procedures for upgrading GlobalSight 8.6 to 8.6.7=== |
− | * Install Oracle JDK 8 and update system variable <code>JAVA_HOME</code> | + | * Install Oracle JDK 8 and update system variable <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">JAVA_HOME</code> |
*: Oracle JDK 8 (at least jdk1.8.0_45) is required for GlobalSight version 8.6.3 and above. | *: Oracle JDK 8 (at least jdk1.8.0_45) is required for GlobalSight version 8.6.3 and above. | ||
* Replace website header image | * Replace website header image | ||
− | *: Find '''globe_header.gif''' in current GlobalSight application, and replace it with ''<tt>GlobalSight_Upgrade_Installer_<version>\server\GlobalSight\jboss\server\standalone\deployments\globalsight.ear | + | *: Find '''globe_header.gif''' in current GlobalSight application, and replace it with ''<tt style="background-color:#efffbf;">GlobalSight_Upgrade_Installer_<version>\server\GlobalSight\jboss\server\standalone\deployments\globalsight.ear\globalsight-web.war\images\globe_header.gif</tt>'' |
− | : Note: The original website header image is not in GIF format, which will not show on Microsoft Internet Explorer after | + | : Note: The original website header image is not in GIF format, which will not show on Microsoft Internet Explorer after upgrading to GlobalSight version 8.6.7. |
===To upgrade GlobalSight using the Upgrade Installer=== | ===To upgrade GlobalSight using the Upgrade Installer=== | ||
# Double-click '''run.bat''' to launch the installer | # Double-click '''run.bat''' to launch the installer | ||
− | #: [[File: | + | #: [[File:upgradewindows1.png|thumb|left|500px]] <br style="clear: both" /> |
#: Note: if you need run the Upgrade Installer as Administrator, change below line in '''run.bat''' before running it: | #: Note: if you need run the Upgrade Installer as Administrator, change below line in '''run.bat''' before running it: | ||
− | #:: <code>cd installer</code> to <code>cd %~ | + | #:: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">cd installer</code> to <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">cd %~dp0installer</code> |
# Click '''Next''' to the next screen | # Click '''Next''' to the next screen | ||
− | #: If <code>gsHome</code> is not defined in '''config.properties''' file, or the Upgrade Installer cannot find current GlobalSight application directory, you are prompted to enter the GlobalSight application directory manually. | + | #: If <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">gsHome</code> is not defined in '''config.properties''' file, or the Upgrade Installer cannot find current GlobalSight application directory, you are prompted to enter the GlobalSight application directory manually. |
− | #:[[File: | + | #:[[File:upgradewindows2.png|thumb|left|500px]]<br style="clear: both" /> |
# Enter the GlobalSight application directory and click '''OK''' | # Enter the GlobalSight application directory and click '''OK''' | ||
− | #:[[File: | + | #:[[File:upgradewindows3.png|thumb|left|500px]]<br style="clear: both" /> |
# Beginning with GlobalSight 8.6.3, the upgrade installer also checks whether a version of Oracle JDK 8 is installed. Enter the JDK 8 home directory and click '''OK''' | # Beginning with GlobalSight 8.6.3, the upgrade installer also checks whether a version of Oracle JDK 8 is installed. Enter the JDK 8 home directory and click '''OK''' | ||
− | #:[[File: | + | #:[[File:upgradewindows4.png|thumb|left|500px]]<br style="clear: both" /> |
# Click '''Finish''' to exit | # Click '''Finish''' to exit | ||
− | #: [[File: | + | #: [[File:upgradewindows5.png|thumb|left|500px]]<br style="clear: both" /> |
− | The Upgrade Installer backs up the previous version of GlobalSight application and applies the upgrade. The GlobalSight application backup is stored in the ''<tt>\path\to\GlobalSight_Upgrade_Installer_<version>\installer\backup</tt>'' folder | + | The Upgrade Installer backs up the previous version of GlobalSight application and applies the upgrade. The GlobalSight application backup is stored in the ''<tt style="background-color:#efffbf;">\path\to\GlobalSight_Upgrade_Installer_<version>\installer\backup</tt>'' folder |
− | The upgrade log file '''log.txt''' can be found in ''<tt>\path\to\GlobalSight_Upgrade_Installer_<version>\installer</tt>'' folder. | + | The upgrade log file '''log.txt''' can be found in ''<tt style="background-color:#efffbf;">\path\to\GlobalSight_Upgrade_Installer_<version>\installer</tt>'' folder. |
===Post-upgrade procedures=== | ===Post-upgrade procedures=== | ||
Line 60: | Line 60: | ||
*: Type: '''sudo service mysql status''' | *: Type: '''sudo service mysql status''' | ||
*: To check remote MysQL database server's status | *: To check remote MysQL database server's status | ||
− | *: Type: '''mysqladmin status -u''' <i><tt><globalsight_user_name></tt></i> '''-p -h''' <i><tt><mysql_hostname_or_ip_ address></tt></i> '''-P''' <i><tt><mysql_port></tt></i> | + | *: Type: '''mysqladmin status -u''' <i><tt style="background-color:#efffbf;"><globalsight_user_name></tt></i> '''-p -h''' <i><tt style="background-color:#efffbf;"><mysql_hostname_or_ip_ address></tt></i> '''-P''' <i><tt style="background-color:#efffbf;"><mysql_port></tt></i> |
*: Example: mysqladmin status -u globalsight -p -h 192.168.1.29 -P 3306 | *: Example: mysqladmin status -u globalsight -p -h 192.168.1.29 -P 3306 | ||
* Download and unjar the GlobalSight upgrade installer package | * Download and unjar the GlobalSight upgrade installer package | ||
− | *: Type: '''mkdir''' <i><tt>GlobalSight_Upgrade_Installer_<version></tt></i> '''&& cd''' <i><tt>GlobalSight_Upgrade_Installer_<version></tt></i> | + | *: Type: '''mkdir''' <i><tt style="background-color:#efffbf;">GlobalSight_Upgrade_Installer_<version></tt></i> '''&& cd''' <i><tt style="background-color:#efffbf;">GlobalSight_Upgrade_Installer_<version></tt></i> |
− | *: Example: mkdir GlobalSight_Upgrade_Installer_8.6. | + | *: Example: mkdir GlobalSight_Upgrade_Installer_8.6.7 && cd GlobalSight_Upgrade_Installer_8.6.7 |
− | *: Type: '''jar xvf''' <i><tt>/path/to/GlobalSight_Upgrade_Installer_<version>.zip</tt></i> | + | *: Type: '''jar xvf''' <i><tt style="background-color:#efffbf;">/path/to/GlobalSight_Upgrade_Installer_<version>.zip</tt></i> |
− | *: Example: jar xvf /home/jboss/GlobalSight_Upgrade_Installer_8.6. | + | *: Example: jar xvf /home/jboss/GlobalSight_Upgrade_Installer_8.6.7.zip |
* Edit '''config.properties''' file to set GlobalSight application directory and certificate information to sign code for some Java applet components | * Edit '''config.properties''' file to set GlobalSight application directory and certificate information to sign code for some Java applet components | ||
− | *: <code>gsHome</code>: the absolute path to GlobalSight application directory | + | *: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">gsHome</code>: the absolute path to GlobalSight application directory |
− | *: <code>JKS</code>: the absolute path to the certificate keystore file, uncomment it if needed | + | *: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">JKS</code>: the absolute path to the certificate keystore file, uncomment it if needed |
− | *: <code>keyPass</code>: the passphrase/password of the certificate keystore file, uncomment it if needed | + | *: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">keyPass</code>: the passphrase/password of the certificate keystore file, uncomment it if needed |
− | *: <code>keyAlias</code>: the alias of the certificate keystore file, uncomment it if needed | + | *: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">keyAlias</code>: the alias of the certificate keystore file, uncomment it if needed |
− | * Update GlobalSight daemon template <i><tt>/path/to/GlobalSight_Upgrade_Installer_<version></tt></i><strong>/server/GlobalSight/jboss/util/bin/service.sh.template</strong> file | + | * Update GlobalSight daemon template <i><tt style="background-color:#efffbf;">/path/to/GlobalSight_Upgrade_Installer_<version></tt></i><strong>/server/GlobalSight/jboss/util/bin/service.sh.template</strong> file |
− | *: Insert <code> -c ${JBOSS_USER} -d ${JBOSS_HOME}</code> between <code>--background</code> and <code>--user</code> | + | *: Insert <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;"> -c ${JBOSS_USER} -d ${JBOSS_HOME}</code> between <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">--background</code> and <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">--user</code> |
− | *: Example: <code>start-stop-daemon --start --quiet --background -c ${JBOSS_USER} -d ${JBOSS_HOME} --user ${JBOSS_USER} --exec ${JBOSS_HOME}/bin/standalone.sh</code> | + | *: Example: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">start-stop-daemon --start --quiet --background -c ${JBOSS_USER} -d ${JBOSS_HOME} --user ${JBOSS_USER} --exec ${JBOSS_HOME}/bin/standalone.sh</code> |
− | *: Example: <code>start-stop-daemon --start --quiet --background -c ${JBOSS_USER} -d ${JBOSS_HOME} --user ${JBOSS_USER} --exec ${JBOSS_HOME}/bin/jboss-cli.sh -- --connect command=:shutdown</code> | + | *: Example: <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">start-stop-daemon --start --quiet --background -c ${JBOSS_USER} -d ${JBOSS_HOME} --user ${JBOSS_USER} --exec ${JBOSS_HOME}/bin/jboss-cli.sh -- --connect command=:shutdown</code> |
*: Note: this modification ensures that GlobalSight daemon is always running as user '''jboss'''. | *: Note: this modification ensures that GlobalSight daemon is always running as user '''jboss'''. | ||
− | ===Extra procedures for upgrading GlobalSight 8.6 to 8.6. | + | ===Extra procedures for upgrading GlobalSight 8.6 to 8.6.7=== |
− | * Install Oracle JDK 8 and update system variable <code>JAVA_HOME</code> | + | * Install Oracle JDK 8 and update system variable <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">JAVA_HOME</code> |
*: Oracle JDK 8 (at least jdk1.8.0_45) is required for GlobalSight version 8.6.3 and above. The install procedure can be found at [[Installing_Third-party_Components_for_GlobalSight_on_Ubuntu#Installing_JDK|Installing JDK]]. | *: Oracle JDK 8 (at least jdk1.8.0_45) is required for GlobalSight version 8.6.3 and above. The install procedure can be found at [[Installing_Third-party_Components_for_GlobalSight_on_Ubuntu#Installing_JDK|Installing JDK]]. | ||
* Replace website header image | * Replace website header image | ||
− | *: Type: '''sudo cp''' <i><tt>/path/to/GlobalSight_Upgrade_Installer_<version>/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/globe_header.gif</tt></i> <i><tt><globalsight_home_directory>/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/</tt></i> | + | *: Type: '''sudo cp''' <i><tt style="background-color:#efffbf;">/path/to/GlobalSight_Upgrade_Installer_<version>/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/globe_header.gif</tt></i> <i><tt style="background-color:#efffbf;"><globalsight_home_directory>/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/</tt></i> |
− | *: Example: sudo cp GlobalSight_Upgrade_Installer_8.6. | + | *: Example: sudo cp GlobalSight_Upgrade_Installer_8.6.7/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/globe_header.gif /home/jboss/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/ |
− | :Note: The original website header image is not in GIF format, which will not show on Microsoft Internet Explorer after | + | :Note: The original website header image is not in GIF format, which will not show on Microsoft Internet Explorer after upgrading to GlobalSight version 8.6.7. |
===To upgrade GlobalSight using the Upgrade Installer=== | ===To upgrade GlobalSight using the Upgrade Installer=== | ||
# Add the execute attribute to upgrade script '''run.sh''' | # Add the execute attribute to upgrade script '''run.sh''' | ||
− | #: Type: cd <i><tt>/path/to/GlobalSight_Upgrade_Installer_<version></tt></i> | + | #: Type: cd <i><tt style="background-color:#efffbf;">/path/to/GlobalSight_Upgrade_Installer_<version></tt></i> |
#: Type: '''sudo chmod u+x run.sh''' | #: Type: '''sudo chmod u+x run.sh''' | ||
# Run the GlobalSight Upgrade Installer | # Run the GlobalSight Upgrade Installer | ||
#: Type: '''sudo PATH=$JAVA_HOME/bin:$PATH ./run.sh''' | #: Type: '''sudo PATH=$JAVA_HOME/bin:$PATH ./run.sh''' | ||
− | #: [[File: | + | #: [[File:upgradeubuntu6.png|thumb|left|500px]]<br style="clear: both" /> |
# Press '''Enter''' to go to the next screen | # Press '''Enter''' to go to the next screen | ||
− | #: [[File: | + | #: [[File:upgradeubuntu7.png|thumb|left|500px]]<br style="clear: both" /> |
#: The Upgrade Installer looks for the '''installValues.properties''' file to determine the GlobalSight application directory. | #: The Upgrade Installer looks for the '''installValues.properties''' file to determine the GlobalSight application directory. | ||
− | #: If <code>gsHome</code> in <i><tt>/path/to/GlobalSight_Upgrade_Installer_<version>/config.properties</tt></i> file is set, or '''/tmp/installValues.properties''' file is found, it proceeds with the upgrade. Otherwise you are prompted to enter the GlobalSight application directory manually. | + | #: If <code style="border:1px; border-radius:3px; margin: 0 0px; padding:0px 0px; border:1px solid #bfcfff; background-color:#bfdfff;">gsHome</code> in <i><tt style="background-color:#efffbf;">/path/to/GlobalSight_Upgrade_Installer_<version>/config.properties</tt></i> file is set, or '''/tmp/installValues.properties''' file is found, it proceeds with the upgrade. Otherwise you are prompted to enter the GlobalSight application directory manually. |
− | #: [[File: | + | #: [[File:upgradeubuntu8.png|thumb|left|500px]]<br style="clear: both" /> |
# Enter the GlobalSight application directory and press '''Enter''' | # Enter the GlobalSight application directory and press '''Enter''' | ||
− | #: [[File: | + | #: [[File:upgradeubuntu9.png|thumb|left|500px]]<br style="clear: both" /> |
# Beginning with GlobalSight 8.6.3, the upgrade installer also checks whether a version of Oracle JDK 8 is installed. Enter the JDK 8 home directory and press '''Enter''' | # Beginning with GlobalSight 8.6.3, the upgrade installer also checks whether a version of Oracle JDK 8 is installed. Enter the JDK 8 home directory and press '''Enter''' | ||
− | #: [[File: | + | #: [[File:upgradeubuntu10.png|thumb|left|500px]]<br style="clear: both" /> |
# Press '''Enter''' to exit the upgrade installer. | # Press '''Enter''' to exit the upgrade installer. | ||
− | #: [[File: | + | #: [[File:upgradeubuntu11.png|thumb|left|500px]]<br style="clear: both" /> |
− | The Upgrade Installer backs up the previous version of GlobalSight application and applies the upgrade. The GlobalSight application backup is stored in <i><tt>/path/to/GlobalSight_Upgrade_Installer_<version>/installer/backup</tt></I> directory. | + | The Upgrade Installer backs up the previous version of GlobalSight application and applies the upgrade. The GlobalSight application backup is stored in <i><tt style="background-color:#efffbf;">/path/to/GlobalSight_Upgrade_Installer_<version>/installer/backup</tt></I> directory. |
− | The upgrade log file '''log.txt''' can be found in <i><tt>/path/to/GlobalSight_Upgrade_Installer_<version>/installer</tt></i> directory. | + | The upgrade log file '''log.txt''' can be found in <i><tt style="background-color:#efffbf;">/path/to/GlobalSight_Upgrade_Installer_<version>/installer</tt></i> directory. |
===Post-upgrade procedures=== | ===Post-upgrade procedures=== | ||
# Change the ownership of the GlobalSight application | # Change the ownership of the GlobalSight application | ||
− | #: Type: '''sudo chown -R jboss:jboss''' <i><tt><globalsight_home_directory></tt></i> | + | #: Type: '''sudo chown -R jboss:jboss''' <i><tt style="background-color:#efffbf;"><globalsight_home_directory></tt></i> |
#: Example: sudo chown -R jboss:jboss /home/jboss/GlobalSight/ | #: Example: sudo chown -R jboss:jboss /home/jboss/GlobalSight/ | ||
# Add executable attribute for start and stop script files | # Add executable attribute for start and stop script files | ||
− | #: Type: '''sudo chmod u+x''' <i><tt><globalsight_home_directory>/jboss/server/bin/standalone.sh</tt></i> | + | #: Type: '''sudo chmod u+x''' <i><tt style="background-color:#efffbf;"><globalsight_home_directory>/jboss/server/bin/standalone.sh</tt></i> |
− | #: Type: '''sudo chmod u+x''' <i><tt><globalsight_home_directory>/jboss/server/bin/jboss-cli.sh</tt></i> | + | #: Type: '''sudo chmod u+x''' <i><tt style="background-color:#efffbf;"><globalsight_home_directory>/jboss/server/bin/jboss-cli.sh</tt></i> |
#: Example: sudo chmod u+x /home/jboss/GlobalSight/jboss/server/bin/standalone.sh | #: Example: sudo chmod u+x /home/jboss/GlobalSight/jboss/server/bin/standalone.sh | ||
#: Example: sudo chmod u+x /home/jboss/GlobalSight/jboss/server/bin/jboss-cli.sh | #: Example: sudo chmod u+x /home/jboss/GlobalSight/jboss/server/bin/jboss-cli.sh | ||
# Change the ownership of GlobalSight documents and file storage directory | # Change the ownership of GlobalSight documents and file storage directory | ||
− | #: Type: '''sudo chown -R jboss:jboss''' <i><tt><globalsight_document_directory></tt></i> | + | #: Type: '''sudo chown -R jboss:jboss''' <i><tt style="background-color:#efffbf;"><globalsight_document_directory></tt></i> |
− | #: Type: '''sudo chown -R jboss:jboss''' <i><tt><globalsight_filestorage_directory></tt></i> | + | #: Type: '''sudo chown -R jboss:jboss''' <i><tt style="background-color:#efffbf;"><globalsight_filestorage_directory></tt></i> |
#: Example: sudo chown -R jboss:jboss /home/jboss/welocalize/ | #: Example: sudo chown -R jboss:jboss /home/jboss/welocalize/ | ||
# Restart GlobalSight | # Restart GlobalSight |
Latest revision as of 20:42, 18 October 2016
You can upgrade easily from one version of GlobalSight to a newer version using the GlobalSight Upgrade Installer.
To download the upgrade installer package and upgrade GlobalSight core application, follow the instructions below for Windows or Ubuntu.
Contents
Prerequisites
Before beginning, make sure that:
- The GlobalSight service is stopped
- The MySQL database server is running
Windows
Pre-upgrade procedures
- Download and unzip the GlobalSight Upgrade Installer package GlobalSight_Upgrade_Installer_<version>.zip to local system
- Edit config.properties file to set GlobalSight application directory and certificate information to sign code for some Java applet components
gsHome
: the absolute path to GlobalSight application directory. Using forward slash as the path separatorJKS
: the absolute path to the certificate keystore file, uncomment it if needed. Using forward slash as the path separatorkeyPass
: the passphrase/password of the certificate keystore file, uncomment it if neededkeyAlias
: the alias of the certificate keystore file, uncomment it if needed
Extra procedures for upgrading GlobalSight 8.6 to 8.6.7
- Install Oracle JDK 8 and update system variable
JAVA_HOME
- Oracle JDK 8 (at least jdk1.8.0_45) is required for GlobalSight version 8.6.3 and above.
- Replace website header image
- Find globe_header.gif in current GlobalSight application, and replace it with GlobalSight_Upgrade_Installer_<version>\server\GlobalSight\jboss\server\standalone\deployments\globalsight.ear\globalsight-web.war\images\globe_header.gif
- Note: The original website header image is not in GIF format, which will not show on Microsoft Internet Explorer after upgrading to GlobalSight version 8.6.7.
To upgrade GlobalSight using the Upgrade Installer
- Double-click run.bat to launch the installer
-
- Note: if you need run the Upgrade Installer as Administrator, change below line in run.bat before running it:
cd installer
tocd %~dp0installer
-
- Click Next to the next screen
- If
gsHome
is not defined in config.properties file, or the Upgrade Installer cannot find current GlobalSight application directory, you are prompted to enter the GlobalSight application directory manually.
- If
- Enter the GlobalSight application directory and click OK
- Beginning with GlobalSight 8.6.3, the upgrade installer also checks whether a version of Oracle JDK 8 is installed. Enter the JDK 8 home directory and click OK
- Click Finish to exit
The Upgrade Installer backs up the previous version of GlobalSight application and applies the upgrade. The GlobalSight application backup is stored in the \path\to\GlobalSight_Upgrade_Installer_<version>\installer\backup folder
The upgrade log file log.txt can be found in \path\to\GlobalSight_Upgrade_Installer_<version>\installer folder.
Post-upgrade procedures
Restart GlobalSight service.
Ubuntu
Pre-upgrade procedures
- Log in as a user with sudo privilege
- Stop Globalsight
- Type: sudo service globalsight stop
- Make sure that the MySQL database is running
- Type: sudo service mysql status
- To check remote MysQL database server's status
- Type: mysqladmin status -u <globalsight_user_name> -p -h <mysql_hostname_or_ip_ address> -P <mysql_port>
- Example: mysqladmin status -u globalsight -p -h 192.168.1.29 -P 3306
- Download and unjar the GlobalSight upgrade installer package
- Type: mkdir GlobalSight_Upgrade_Installer_<version> && cd GlobalSight_Upgrade_Installer_<version>
- Example: mkdir GlobalSight_Upgrade_Installer_8.6.7 && cd GlobalSight_Upgrade_Installer_8.6.7
- Type: jar xvf /path/to/GlobalSight_Upgrade_Installer_<version>.zip
- Example: jar xvf /home/jboss/GlobalSight_Upgrade_Installer_8.6.7.zip
- Edit config.properties file to set GlobalSight application directory and certificate information to sign code for some Java applet components
gsHome
: the absolute path to GlobalSight application directoryJKS
: the absolute path to the certificate keystore file, uncomment it if neededkeyPass
: the passphrase/password of the certificate keystore file, uncomment it if neededkeyAlias
: the alias of the certificate keystore file, uncomment it if needed
- Update GlobalSight daemon template /path/to/GlobalSight_Upgrade_Installer_<version>/server/GlobalSight/jboss/util/bin/service.sh.template file
- Insert
-c ${JBOSS_USER} -d ${JBOSS_HOME}
between--background
and--user
- Example:
start-stop-daemon --start --quiet --background -c ${JBOSS_USER} -d ${JBOSS_HOME} --user ${JBOSS_USER} --exec ${JBOSS_HOME}/bin/standalone.sh
- Example:
start-stop-daemon --start --quiet --background -c ${JBOSS_USER} -d ${JBOSS_HOME} --user ${JBOSS_USER} --exec ${JBOSS_HOME}/bin/jboss-cli.sh -- --connect command=:shutdown
- Note: this modification ensures that GlobalSight daemon is always running as user jboss.
- Insert
Extra procedures for upgrading GlobalSight 8.6 to 8.6.7
- Install Oracle JDK 8 and update system variable
JAVA_HOME
- Oracle JDK 8 (at least jdk1.8.0_45) is required for GlobalSight version 8.6.3 and above. The install procedure can be found at Installing JDK.
- Replace website header image
- Type: sudo cp /path/to/GlobalSight_Upgrade_Installer_<version>/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/globe_header.gif <globalsight_home_directory>/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/
- Example: sudo cp GlobalSight_Upgrade_Installer_8.6.7/server/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/globe_header.gif /home/jboss/GlobalSight/jboss/server/standalone/deployments/globalsight.ear/globalsight-web.war/images/
- Note: The original website header image is not in GIF format, which will not show on Microsoft Internet Explorer after upgrading to GlobalSight version 8.6.7.
To upgrade GlobalSight using the Upgrade Installer
- Add the execute attribute to upgrade script run.sh
- Type: cd /path/to/GlobalSight_Upgrade_Installer_<version>
- Type: sudo chmod u+x run.sh
- Run the GlobalSight Upgrade Installer
- Type: sudo PATH=$JAVA_HOME/bin:$PATH ./run.sh
- Press Enter to go to the next screen
- The Upgrade Installer looks for the installValues.properties file to determine the GlobalSight application directory.
- If
gsHome
in /path/to/GlobalSight_Upgrade_Installer_<version>/config.properties file is set, or /tmp/installValues.properties file is found, it proceeds with the upgrade. Otherwise you are prompted to enter the GlobalSight application directory manually.
- Enter the GlobalSight application directory and press Enter
- Beginning with GlobalSight 8.6.3, the upgrade installer also checks whether a version of Oracle JDK 8 is installed. Enter the JDK 8 home directory and press Enter
- Press Enter to exit the upgrade installer.
The Upgrade Installer backs up the previous version of GlobalSight application and applies the upgrade. The GlobalSight application backup is stored in /path/to/GlobalSight_Upgrade_Installer_<version>/installer/backup directory.
The upgrade log file log.txt can be found in /path/to/GlobalSight_Upgrade_Installer_<version>/installer directory.
Post-upgrade procedures
- Change the ownership of the GlobalSight application
- Type: sudo chown -R jboss:jboss <globalsight_home_directory>
- Example: sudo chown -R jboss:jboss /home/jboss/GlobalSight/
- Add executable attribute for start and stop script files
- Type: sudo chmod u+x <globalsight_home_directory>/jboss/server/bin/standalone.sh
- Type: sudo chmod u+x <globalsight_home_directory>/jboss/server/bin/jboss-cli.sh
- Example: sudo chmod u+x /home/jboss/GlobalSight/jboss/server/bin/standalone.sh
- Example: sudo chmod u+x /home/jboss/GlobalSight/jboss/server/bin/jboss-cli.sh
- Change the ownership of GlobalSight documents and file storage directory
- Type: sudo chown -R jboss:jboss <globalsight_document_directory>
- Type: sudo chown -R jboss:jboss <globalsight_filestorage_directory>
- Example: sudo chown -R jboss:jboss /home/jboss/welocalize/
- Restart GlobalSight
- Type: sudo service globalsight start