Using the Pentaho Upgrade Installer in silent mode
If you are upgrading in an environment that does not support the display of a graphical interface, use the Pentaho Upgrade Installer in silent mode from a command line. The command for silent mode has specific parameters.
Before you begin
Before you begin upgrading from the command line interface, familiarize yourself with the available silent command line parameters.
The following command line parameters are available for running the Pentaho Upgrade Installer:
Parameter | Description |
-help / --help | Show help text for usage. |
-i [gui | silent] | Specify one of the following methods for running the Pentaho Upgrade Installer:
|
-DEULA=<value> | Specify your response to the End User License Agreement:
|
-DUSER_INSTALL_DIR=<dir> | Specify the location of the Pentaho root installation directory. This setting is required for the silent mode. |
-DRESTORE=<value> | Specify if you are using the silent mode to restore a backup for your original
Pentaho products before an upgrade:
|
-DBACKUP_ZIP=<file> | Specify the location of the backup ZIP file produced by the upgrade process. This setting is required if you are restoring your original Pentaho 8.3 or later products. |
Use silent mode to upgrade
Perform the following steps to run the Pentaho Upgrade Installer in silent mode:
Procedure
Exit out of any Pentaho products you are currently running.
If you are upgrading your Pentaho Server, stop the server. For instructions, see Start and stop the Pentaho Server for configuration.At the command line, enter one of the following commands to run the installer and start the upgrade process:
Linux
./pentaho-upgrade-9.3.0.0-428.bin -i silent -DEULA=true -DUSER_INSTALL_DIR=<dir>
Windows
.\pentaho-upgrade-9.3.0.0-428.exe -i silent -DEULA=true -DUSER_INSTALL_DIR=<dir>
When the server upgrade process is complete, the console displays an exit code.
If any errors occur, review the log file generated by the installer.
The default location of the log file is <root installation directory>/Pentaho__Installation/logs.If you are upgrading your Pentaho Server, restart the server.
Next steps
Exit codes
After completing the upgrade process, check for the following exit codes in the log file:
Code | Description |
0 | Success. |
1 | The installation completed successfully, but one or more of the actions from the installation sequence caused a warning or a non-fatal error. |
-1 | One or more of the actions from the installation sequence caused a fatal error. The following errors could have occurred:
|
1000 | The installation was canceled by the end user. |
1001 | The installation includes an invalid command-line option. |
See the InstallAnywhere documentation for more possible exit codes.