Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jul 3, 2024 9:59:43 AM
Mar 8, 2023 9:12:59 AM
During installation, Qlik Sense Enterprise on Windows prompts you to choose a password for its PostgreSQL repository. This password can be changed. The process is split into three steps.
(*) Note that the maintenance database name may differ if this was not a standard installation and changes were made during setup. Consult your configuration file if necessary.
ALTER USER postgres WITH PASSWORD 'Example_Password';
ALTER USER qliksenserepository WITH PASSWORD 'Example_Password';
This has changed the password in the database itself. We will now move on to modifying the connection strings used by the database.
For this step, we will need the QlikSenseUtil stored in C:\Program Files\Qlik\Sense\Repository\Util\QlikSenseUtil\.
It has to be repeated on all nodes.
We have now changed the connection strings to the QSMQ database and the QSR database.
Qlik Sense has introduced micro-services, all of which will require to have their connection strings modified.
To make changing them easier, we have provided a Configure-Service.ps1 for each. They can be located in:
Always run PowerShell as administrator.
Depending on your version of Qlik Sense, the above list may not be complete. Review C:\Program Files\Qlik\Sense\ for any additional micro-service folders that include a Configure-Service.ps1. You can obtain a list of all relevant folders by running the following command in a command prompt: dir /s configure-service.ps1
To update your password using Configure-Service.ps1:
If you have not installed Qlik Sense in its default location or have upgraded PostgreSQL, the Configure-Service.ps1 script must be adjusted for each microservice.
Example for changing the install path:
Before:
[string]$senseInstallPath = "$env:ProgramFiles\Qlik\Sense"
After:
[string] $senseInstallPath = "D:\Program Files\Qlik\Sense",
Example for changing the PostgreSQL version:
Before:
[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\9.6"
After:
[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5"
or
[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\14"
Depending on the PostgreSQL version under C:\Program Files\Qlik\Sense\Repository\PostrgreSQL\
The alternative is to find all the PowerShell files programmatically.
Note that in our example we assume the default install directory and the default port of 4432. You may need to adapt the script accordingly.
# Set the Installation Directory for Qlik Sense $installDir = 'C:\Program Files\Qlik\Sense\' # Specify the new password for the qliksenserepository account $password = 'MyNewPassword' $files = Get-ChildItem -Path $installDir -Include Configure-Service.ps1 -Recurse foreach ($file in $files) { $ScriptToRun=$($file.FullName) &$ScriptToRun localhost 4432 qliksenserepository $password }
Hello @khai let me look into this for you.
All the best,
Sonja
Hello @khai
The previous two users were engaged in support tickets. One is still under investigation, and one is resolved, though I believe the root causes of both differ.
As for your specific question:
Can you define what error besides the warning you are getting? I've checked with our subject matter experts, and the warning you received is expected for some of the services and should not lead to problems.
In the screenshot below is one warning (the one you received), which can be dismissed, and one error (caused by the script being run after the database had been upgraded using QPI), which is an actual error requiring action.
If you only receive the warning, can you clarify what other symptoms or errors are logged?
All the best,
Sonja
PS: I will be updating the article with this information as soon as possible.
Hi @Sonja_Bauernfeind , I am changing the password before the QPI is installed, because the current password contain the restricted special characters. Noted, I have created a support case 00116779 with the error screenshots.