Upgrading the Reporting Server from v2.0.x to v2.0.3

As an AAI administrator, you upgrade the Reporting Server as new versions are released. This page guides you through the upgrade process from version 2.0.x to 2.0.3 with prerequisites and steps for both Windows and Linux operating systems.

This page includes the following:

General Considerations

Important!

If you are on version 1.x and you want to upgrade to a 2.x version, you have to first upgrade from your version 1.x to 2.0.0 and then to a higher (2.0.x) version. For information, see Upgrading the Reporting Server from v1.1.x to v2.0.0.

Regardless of whether you are upgrading the Reporting Server on a Windows or Linux operating system, before upgrading, note the following considerations:

  • The Reporting Server must be running for the entire upgrade. Anyone triggering a report at the time of the upgrade will get an error message. Therefore, to avoid confusion among your users, it is recommended that you announce the upgrade and plan it for a time of low activity, such as non-business hours.

  • You can upgrade the Reporting Server at any time. You do not need to shut down the AAI Server nor take down the connectors.

  • Please note that, even on very fast hardware, your Reporting Server upgrade may take at least ten minutes to complete.

Upgrading the Reporting Server on Windows

If your Reporting Server is installed on a Windows server, then, after reviewing the items under General Considerations, use the following prerequisites and steps to go through the upgrade process.

Prerequisites for an Upgrade on Windows

Before starting the upgrade steps for the Reporting Server, make sure to do the following important prerequisite tasks, as required:

  • For upgrades from version 2.0.0: If you are on version 2.0.0, before upgrading, check if the JasperReports Server 6.4.2 registry key exists. If so, delete it before starting the upgrade process as only one should be available for the Reporting Server.  

  • Java permissions: In the grant section of your of the java.policy file, append the following permission text, being sure to stay within the curly brackets of the section:

    permission javax.management.MBeanTrustPermission "register";

    You find the java.policy file in the following locations, depending on your Java version:

    • For Java 1.8, you find it in %JAVA_HOME%\jre\lib\security\

    • For Java 11, you find it in %JAVA_HOME%\conf\security\

  • For TLS environments: If your current Reporting Server installation is configured with TLS authentication, do the following:

    1. Back up the server.xml file located at <BI_InstDir>/apache-tomcat/conf.

    2. Back up the keystore file containing the Reporting Server TLS configuration. You can find the keystore path in the server.xml file (keystoreFile attribute).

      Example

      <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="${HTTPS_PORT}" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="<BI_InstDir>\apache-tomcat\conf\key.bin" keystorePass="${PASSWORD_FOR_KEY}"" clientAuth="false" sslProtocol="TLS"/>

Upgrading Steps for Windows

After reviewing the prerequisites and taking any required actions, you are ready to begin the Reporting Server upgrade using the following steps.

  1. If you have not done so yet, go to https://downloads.automic.com/, log in with your Broadcom account and download the relevant AAI product or solution. For more information, see Downloads.

  2. Unpack the necessary files:

    1. Unzip the downloaded product or solution zip file.

    2. Unzip AAI.BI_Installer.Windows_<version and build>.zip to get the following Windows-relevant file:

      terma-bi-windows-installer-<version>.exe

      Note that, if you downloaded from the Products tab, you find this in the Reporting.Server folder after unzipping the downloaded file.

  3. Make sure that your Reporting Server is running.

  4. From the unzipped files, run the terma-bi-windows-installer-<version>.exe file.

    Note:

    You might notice that this is the same terma-bi-windows-installer executable file that was used for the installation. This time it checks for previous versions and performs an upgrade.

    The install4J Wizard launches and, after a moment, the AAI -BI-Server Setup Wizard window opens and tells you that a previous installation has been detected.

  5. Select Yes, update the existing installation, and then click the Next > button.

    A Powershell window opens, and the update process begins by expanding the archive and running some preparatory steps, including making a backup of the data files.

    Depending on the size of your reporting database, the first task of making a backup can take quite a while before you see additional messages. Unless you get an error message, all is well and working as it should.

  6. The only input you need to provide is the following:

    • When you are prompted with a long remark about a compact installation (this comes from the Jasper Server) enter 'y' to confirm and continue with the upgrade.

    • If the upgrade process detects that there is no Chrome available on the system, a message explaining that is displayed.

    Note:

    You do not need to enter configuration values because the upgrade script uses the configuration settings defined in the termaBi-config.bat file of your current installation. This file was created by the installation script based on the parameters that you provided at installation. For information, see Installing and Uninstalling the Reporting Server on Windows.  

  7. When the upgrade is finished, the Completing the AAI-BI_Server Setup Wizard window appears. Click Finish.

    Tip:

    If you want to check the upgrade logs, open the upgrade-logs.txt file located in the AAI.BI_Installer.Windows_<version and build>\upgrade folder.

  8. After the upgrade finishes, configure the Reporting Server definitions accordingly, see Configuring the Reporting Server. No upgrade is complete without this step.

Tip:

If you want to keep the backup of the Reporting Server that the upgrader made at the beginning of the upgrade process in case you need it for troubleshooting, you find it in the AAI.BI_Installer.Windows_<version and build>\upgrade\backups folder.

Upgrading the Reporting Server on Linux

If your Reporting Server is installed on a Linux server, then, after reviewing the items under General Considerations, use the following prerequisites and steps to go through the upgrade process.

Prerequisites for an Upgrade on Linux

Before starting the steps to upgrade your Reporting Server from v2.0.x on Linux, make sure to do the following important prerequisite tasks:

  • Backup your current Reporting Server installation or snapshot the virtual machine on which it is running with the machine powered off.

  • Ensure that you have the permissions to run scripts as root/sudo, because that is how you have to run the upgrader script.

  • For TLS environments: If your current Reporting Server installation is configured with TLS authentication, do the following:

    1. Back up the server.xml file located at <BI_InstDir>/apache-tomcat/conf.

    2. Back up the keystore file containing the Reporting Server TLS configuration. You can find the keystore path in the server.xml file (keystoreFile attribute).

      Example

      <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="${HTTPS_PORT}" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="<BI_InstDir>\apache-tomcat\conf\key.bin" keystorePass="${PASSWORD_FOR_KEY}"" clientAuth="false" sslProtocol="TLS"/>

Important!

Do not, at any time, manually change the installation directory of the Reporting Server from its default location in /opt/bi-server/server. The Reporting Server will not work correctly if it is in any other directory. 

Upgrading Steps for Linux

After reviewing the prerequisites and taking any required actions, you are ready to begin the Reporting Server upgrade using the following steps.

  1. If you have not done so yet, go to https://downloads.automic.com/, log in with your Broadcom account and download the relevant AAI product or solution. For more information, see Downloads.

  2. Unpack the necessary files:

    1. Unzip the downloaded product or solution zip file.

    2. Unzip AAI.BI_Installer.Linux_<version and build>.zip to get the following Linux-relevant files:

      • terma-bi-linux-installer-<version>.rpm

      • terma-bi-configure-rpm.sh

      Note that, if you downloaded from the Products tab, you find these in the Reporting.Server folder after unzipping the downloaded file.

  3. Make sure that your Reporting Server is running.

  4. From the unzipped files, run the terma-bi-configure-rpm.sh file.

    • If you have $JAVA_HOME set in your environment use the following command:

      sudo ./terma-bi-configure-rpm.sh

    • Otherwise, specify where you have Java installed in the command, like this, where </opt/java> is your Java location:

      sudo JAVA_HOME=</opt/java> ./terma-bi-configure-rpm.sh

    Note:

    You might notice that this is the same terma-bi-configure-rpm.sh file that was used for the installation. It checks for previous versions and, when it finds one, it performs an upgrade instead.

  5. Confirm or enter configuration values to be used for the upgrade.

    The upgrade process retrieves most configuration values from your current installation, and they appear in square brackets. To accept the value for the upgrade, just press Enter. Otherwise, enter a new value at the prompt.

    You must enter values at the following prompts when they appear:

    • Select the Automation Analytics & Intelligence protocol: 1) HTTP; 2) HTTPS.

    • Select the database type for Automation Analytics & Intelligence reports: 1)MSSQL; 2)ORACLE

    • Select whether the mail server requires authentication 1) Y; 2) N

    • If no Chrome path is defined, you are prompted to enter a path for the Chrome installation.

      It is recommended to have a Chrome installation and specify its location here. The upgrade process can continue without having Chrome; however, you will not be able to export reports, data insights, or dashboards to PDF, CSV, DOCX, or other output formats.

    Note:

    The configuration values that appear without a prompt are the ones that are stored in the /etc/aai/bi-reporting/terma-bi-install.conf file. This was originally created by the installation script based on the parameters that you provided at installation. For information, see Installing and Uninstalling the Reporting Server on Linux.

  6. When prompted with "Do you want to continue to install the BI server [Yn]:", enter Y to upgrade the Reporting Server using the configuration values that you entered when prompted.

Note:

After upgrading the Reporting Server, the Jasperserver-pro password for the superuser is reset to the default TermaPassword. If you are not using the default password, make sure you define it again (http(s)://hostname:post/jasperserver-pro/login.html).

Tip:

If you want to keep the backup of the Reporting Server that the upgrader made at the beginning of the upgrade process in case you need it for troubleshooting, you find it in the /opt/bi-server/backups directory.

Troubleshooting the Linux Reporting Server Upgrade

If you have issues exporting ad hoc reports in Linux after upgrading the Reporting Server to version 2.0.3, try the following:

  1. Stop the Reporting Server.

  2. Navigate to the <BI_InstDir>/common/lib folder in your installation directory.

  3. Remove the libcrypto.so.1.1 and libcrypto.so files and put them in a backup folder.

  4. Restart the Reporting Server and try exporting the reports again.

For more information, see Web UI Reports.

See also: