1. Stop the service called: "Qlik Sense Repository Database" (note: this will stop most Qlik Sense Services, as seen below)
Before:
After:
2. Open Notepad as an administrator (right-click on Notepad and select Run as Administrator)
3. From Notepad, click File > Open
4. Browse to C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6 (if "9.6" cannot be found then it's likely "12.5" which is what newer Qlik versions use)
5. Click on All Files (*.*) in the lower right corner dropdown of the dialog box
Note: Backup the files pg_hba.conf and postgresql.conf before making any changes!
5. Open the file pg_hba.conf
6. Change the METHOD from "md5" to "trust" in the both the IPv4 and IPv6 entries. There are four methods listed in total - only the first two need to be changed to trust:
Original:
# TYPE DATABASE USER ADDRESS METHOD # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5
Updated:
# TYPE DATABASE USER ADDRESS METHOD # IPv4 local connections: host all all 127.0.0.1/32 trust # IPv6 local connections: host all all ::1/128 trust
NOTE: "trust" must be lowercase!
If you use uppercase ("TRUST"), then the service will not start and attempts to make file backups will result in 0kb files when attempting to generate a database dump/backup.
7. Save the file and close it.
8. Start the service called: "Qlik Sense Repository Database" (example below). If this happens to start other dependent services as well, that is fine.
9. Launch a Command Prompt and go to C:\"Program files"\Qlik\Sense\Repository\PostgreSQL\9.6\bin
cd "C:\Program files\Qlik\Sense\Repository\PostgreSQL\9.6\bin"
10. Enter the following command
psql -h 127.0.0.1 -p 4432 -U postgres
The following message should be displayed
11. From the postgres=# prompt, enter the following commands:
alter user postgres with encrypted password 'EnterYourNewPasswordHere';
alter user qliksenserepository with encrypted password 'EnterYourNewPasswordHere';
Hello,
This procedure did not succeed for us (QS Aprilm 2020 Patch 3 ). We had to execute this fix : https://support.qlik.com/articles/Basic/Qliksenserepository-password-error-in-the-event-logs-after-c...
Can you add these steps to the procedure ?
Thank you for your work,
Has anyone else come across any issues?
I managed to implement all the steps but am unable to access the QMC or Hub.
Hello @hmjason7 - You may want to gather additional information on the issue you are seeing (error messages, screenprints) and post on our Qlik Sense Deployment forums for better visibility.
You start the video saying there is no way to recover the password, and then, in step 12, you show us how we can see the old password 🙂
Much easier to recover, than to change it
@cata_pli exactly!! 😂
@cata_pli , this Step 12 will show you the qliksenserepository password only.
So if you don't remember super admin password (Postgres user) then it won't be enough. It works only if you have put the same password for qliksenserepository and Postgres.
Hi,
i am not able to see bin folder in below location. has any one come across this issue?
cd "C:\Program files\Qlik\Sense\Repository\PostgreSQL\9.6\bin"
Hi @gkkandukuri,
What is your Postgres version ?
Do you have a bundled Postgres Database or a Standalone ?
HI,
sorry i found the bin folder was looking in C drive instead of D drive