When attempting to upgrade Qlik Sense to a newer version, you may encounter a situation where the upgrade process treats it as a fresh installation rather than detecting the existing version.

Additionally, you might encounter the following warnings before encountering the upgrade issue:
- "An existing database has been detected"
- "The port 4239 required to run the Qlik Sense services is in use by another process"
- "The port 4242 requiered to run the Qlik Sense services is in use by another process"

These warnings are triggered because there is already an active and working version of Qlik Sense installed on the system.
Resolution
To address this issue, follow the steps below:
-
Locate the installation packages for Qlik Sense. These packages are typically stored in the following directory: C:\ProgramData\Package Cache
.
-
If any packages are missing from the specified directory, it can lead to the behavior where the previous version is not detected during the upgrade process.
-
To resolve this, you need to restore the missing folders in the C:\ProgramData\Package Cache
directory. If you have a backup of these package folders, simply place them back into the correct location.
-
In case you don't have a backup of the package folders, you can retrieve them by installing the same version of Qlik Sense on a test machine. This will ensure you have the correct folders needed for the server.

By following these steps, you should be able to upgrade Qlik Sense successfully without encountering the issue of the previous version not being detected.
Environment
Qlik Sense Enterprise on Windows