Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jan 22, 2024 8:18:38 AM
Jul 9, 2021 2:31:59 AM
Upgrading Qlik Sense Enterprise on Windows does not automatically upgrade the bundled PostgreSQL version. New versions of PostgreSQL are only deployed during a new install. This means upgrading to, for example, Qlik Sense Enterprise on Windows May 2021, PostgreSQL will remain on 9.6.
For many organizations, running on the latest supported PostgreSQL version is a security requirement. To achieve this:
Content:
The information in this article is provided as-is and to be used at your own discretion. Depending on the tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.
This process requires a full reinstallation of the product. Despite the fact that a backup is being taken as part of the process, it is highly recommended to have a second backup plan in place such as a Virtual Machine snapshot and/or a Server Backup.
It is highly recommended to test this process in a test environment to get familiar with it.
The first step is to upgrade your environment to Qlik Sense Enterprise on Windows. This article was originally written for May 2021, but can be applied to any version. Follow the required steps and recommendations for an upgrade for your version. Example: August 2023.
Once the upgrade is done make sure your Qlik Sense site is completely operational.
At this point, you have an operational Qlik Sense site running on your new version of Qlik Sense Enterprise on Windows. However, the bundled PostgreSQL is still on version 9.6 or 12.5, depending on the originally installed version.
The next step will be to backup your entire Qlik Sense site following these instructions (including the certificates) . The backup is essential as it will need to be restored later on.
You will now need to uninstall Qlik Sense from the central node following these instructions.
During the uninstall:
Now that Qlik Sense Enterprise on Windows is uninstalled on the central node, you will reinstall it as a result will deploy either a bundled PostgreSQL 14.8 (August 2023 and later) or a bundled PostgreSQL 12.5 (May 2021 to May 2023). Instructions available here (choose your version).
Do not check the box Start theQlik Senseservices when the setup is complete at the end of the installer.
You now have a clean Qlik Sense Enterprise on Windows deployed on your central node with PostgreSQL 14.8 or 12.5. You now need to restore your environment to retrieve all your configurations and apps.
Please follow the Restoring a Qlik Sense site (including the certificates).
Note: While restoring the database backup you will most likely receive the following error which can be ignored. This error is caused by the version discrepancies between the pg_dump that made the dump file and the pg_restore that's restoring it - in example files coming from PostgreSQL version 9.6 vs files coming from PostgreSQL version 12.5. QSR backup taken and restored with the same version of PostgreSQL will not produce that error.
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 3; 2615 2200 SCHEMA public postgres
pg_restore: error: could not execute query: ERROR: schema "public" already exists
Command was: CREATE SCHEMA public;
pg_restore: warning: errors ignored on restore: 1
Once the environment is restored, you should be able to start your central node and rim nodes successfully.
Qlik Sense Enterprise on Windows May 2021 and later
Hi,
I just ran through this with an upgrade from May 2021 Patch 1 to August 2021 Patch 2. When I did it the first time I was still left with Postgres 9.6. I then uninstalled again, removed the remnants of C:\Program Files\Qlik\Sense and restarted the server. This time it worked and I got Postgres 12.5.
I don't know if it was because it was the second attempt, the restart or the removal of files that led to this but at least it's working now. When I tried for the first time to re-install Patch 2 after the main August 2021 install I got a message saying that the patch had been previously installed and I needed to reboot. I wonder if the registry of installed software hadn't updated or something. My advice would be to reboot after the uninstall and clear out the folder anyway!
Will Qlik Sense require an upgrade to PostgreSQL version 12.5 at some point? We are still planning to use version 9.6 unless required to upgrade.
Hello @mjht
There are eventual plans to do so, yes. But the Release Notes for the versions will always tell you what version of PostGre is supported.
any articles for RDS upgrade?
With "Step 5: Restoring your Qlik Sense site",
a) do we delete certificates which were installed as new installation and restore old certificates?
b) do we restore other databases like QSMQ, Licenses, SenseServices?
I am getting below error after restore:
132 20220104T101940.477-0500 ERROR ServerName System.Repository.Repository.QRSMain 6 f5111462-ea37-4522-aea7-6bdf13b54cba Domain\userid Fatal exception during startup Object reference not set to an instance of an object. at Repository.Core.Bootstrap.AbstractBootstrapper.<>c__DisplayClass13_1.<InstallSslBindings>b__0()↵↓ at Repository.Core.Logging.RepositoryLogExtensions.LogConsole(IQSLog log, QSLogLevel level, Func`1 message)↵↓ at Repository.Core.Bootstrap.AbstractBootstrapper.InstallSslBindings(IEnumerable`1 httpsPorts, IDotNetCert cert)↵↓ at Repository.Core.Bootstrap.ProxyBootstrapper.Install(BootstrapState bootstrapState)↵↓ at Repository.Core.Bootstrap.BootstrapHandler.Install(BootstrapState bootstrapState)↵↓ at Repository.Core.Bootstrap.BootstrapHandler.Bootstrap(BootstrapState bootstrapState)↵↓ at Repository.Core.Core.Setup_Node()↵↓ at Repository.Core.Core.Setup()↵↓ at Repository.Core.Core.Inner(ManualResetEvent shutdownRequestedEvent)↵↓ at Repository.QRSMain.<Main>b__40_2(ICore core)↵↓ at Qlik.Sense.Common.Ioc.WorkScope.Work[T](Action`1 action)↵↓ at Repository.QRSMain.Main()↵↓ at Repository.QRSMain.Run(String[] args, Action`1 terminate) f5111462-ea37-4522-aea7-6bdf13b54cba
@Bastien_Laugiero @Sonja_Bauernfeind
We are upgrading from QS Nov 2020 SR9 to QS Nov 2021 SR5.
So are these steps applicable to Nov 2021 as well for upgrading Postgres database to 12.5?
@Sonja_Bauernfeind @Bastien_Laugiero
We followed all above steps after our Nov 2021 SR5 upgrade but the RIM nodes were offline after restoring the QlikSense site. RIM nodes also contain Postgres 9.6 folder under "C:\Program Files" and "C"\Program Data".
Do we need to again reinstall RIM nodes?
@Bastien_Laugiero @Sonja_Bauernfeind
during the fresh reinstallation we got below warning .
The port 80 required to run the Qlik Sense Services is in use by another process.
How to resolve this issue?
Hello @TusharDev_Qlik
This indicates that another process (a different program/software) is currently using port 80. You will need to identify this process and uninstall/deactivate this program. An example of how to do that can be found here. But note that this is only an example and you may need to get in touch with your local IT for assistance.
All the best,
Sonja
We found out that one of our IIS site was using the port 80 .
We have stopped it and then completed the upgrade and then again restarted the service as one port can be used by multiple services. Correct me if I am wrong.