Upgrading Squore
The Squore installation package can be used to upgrade an existing Squore installation. When an installation is upgraded, the following happens:
-
The new version of Squore Server overwrites the previous one inside the same installation directory
-
The database is upgraded
-
The web server configuration is upgraded
-
The data files are migrated
-
All of your settings are kept, and a clean version of some configuration files is placed on your system next to the original file, with a .new extension. Here are the files:
-
<CLUSTER_DIR>/postgresql.conf
-
<SQUORE_HOME>/config.xml
-
<SQUORE_HOME>/server/bin/standalone.conf on Linux or <SQUORE_HOME>/server/bin/standalone.conf.bat on Windows
-
<SQUORE_HOME>/server/standalone/configuration/standalone.xml
-
<SQUORE_HOME>/server/standalone/configuration/squore-server.properties
-
<SQUORE_HOME>/server/standalone/configuration/application-users.properties
-
Having .new files can help you compare your files with the defaults from a clean installation. |
Upgrading to this Squore 24.0.0 version will only be possible if you are using one of the last 5 previous major versions. |
Windows
|
Follow these steps to upgrade your Windows installation:
Running the Windows installer generates a log file in "<SQUORE_HOME>\install.log", which you can consult if you think there is an issue with your installation. When an installation or upgrade fails, the operation is rolled back in an attempt to remove all files in the selected installation folder. When this happens, the log file can be found in "%LOCALAPPDATA%\Temp\install_squore.log" instead. |
-
Run the Windows installer.
-
Click the Next button to get to the License Agreement screen.
-
If your previous version was at least Squore 18.0, the previous installation will detected and migrated automatically when you click Next. If your previous version is older, you will have to tell the installer where your old installation is located. Click the Next button to get to the Destination Folder screen.
-
Browse for the folder containing the old installation and click the Next button.
-
On the Upgrade screen, the installer confirms that the selected folder contains an older Squore installation.
Figure 1. The Upgrade screenClick the the Next button button to continue with the upgrade.
-
If you are running an unsupported Java version, you will see the following screen, where you can specify the path to the new Java version:
Figure 2. The Squore Setup screen for the new Java directorySpecify the path to the new Java installation and click the Next button to continue with the upgrade.
-
The Confirmation screen is the final step before the upgrade starts. If you are satisfied with your selections and have enough free space to proceed, click Install.
Figure 3. The Confirmation screen -
Wait for the upgrade process to complete and close the wizard by clicking on Finish.
Figure 4. The Installation Complete screen
Linux
|
Follow these steps to upgrade your Linux installation:
-
Download the Linux installation package.
-
Extract the archive by running the command:
cd /tmp tar xf squore-24.0.0-linux-x86_64.tar.xz
-
Manually backup your current <SQUORE_HOME>/server/bin/standalone.conf.
-
Run the upgrade by executing:
cd /tmp/squore-server/bin ./install -U /path/to/old/installation [options...]
-
Redeploy your backed-up <SQUORE_HOME>/server/bin/standalone.conf if necessary to reapply your custom configurations.
Manual Upgrade
If the upgrade cannot be performed with the installation package, it is possible to upgrade Squore manually on both Windows and Linux.
Before proceeding with the upgrade :
-
Create a backup of your current Squore installation
-
Install a fresh Squore, from scratch, in the version you wish to upgrade to.
If you are using a remote database, backup and restore operations cannot be done automatically and are of the DB administrator responsibility. |
Then, follow the procedure below :
-
Stop Squore :
<SQUORE_HOME>/bin/sqctl stop
-
Start database :
<SQUORE_HOME>/bin/pgctl start
-
Restore your backup : refer to the Restoring Squore Data section.
-
Upgrade your database, where version is the Squore version the restored backup is coming from:
<SQUORE_HOME>/bin/sqadm upgrade-data version
This command runs silently. It can take from a few minutes to a few hours, depending on the amount of data to migrate, the version you are coming from and your hardware performances.
Equivalent Windows commands are :
|
The manual upgrade procedure will not keep your configuration changes such as LDAP, JAVA XMX parameter and such. Be sure to report manually all these changes afterward. Here is a non-exhaustive list of configuration files that are usually modified :
|