Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Qlik Connect 2025! Join us in Orlando join us for 3 days of immersive learning: REGISTER TODAY

Cannot change the qliksenserepository password for microservices of the service dispatcher: The system cannot find the file specified

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sebastian_Linser

Cannot change the qliksenserepository password for microservices of the service dispatcher: The system cannot find the file specified

Last Update:

Nov 13, 2024 9:25:28 AM

Updated By:

Sonja_Bauernfeind

Created date:

Nov 19, 2021 4:53:30 AM

While updating the qliksenserepository user with any of the Configure-Service.ps1 scripts, you may encounter the following error: 

Invoke-Query : Exception calling "Start" with "0" argument(s): "The system cannot find the file specified"
At C:\Program Fi 1es\Qlik\Sense\Mobi1i tyRegistrarService\install\instal1-uti1s\Postgres.psl:56 char :10
+ $ret = Invoke-Query $command
+ Categorylnfo : NotSpecified: (:) [Invoke-Query], MethodlnvocationException
+ FullyQualifiedErrorld : Win32Exception,Invoke-Query

Sebastian_Linser_1-1637314289812.png

 

Cause

Some Power-shell scripts have not been updated for the new default value of the Database home.

Different versions of Qlik Sense Enterprise for Windows come with their own bundled PostgreSQL version.

Examples: Qlik Sense Enterprise for Windows from May 2021 to May 2023 will install PostgreSQL 12.5, while previous releases used PostgreSQL 9.6 as a default during a new install. Similarly, from Qlik Sense Enterprise on Windows August 2023 onwards, Qlik pre-installs PostgreSQL 14.8 as the default database. For more details on the default, see the System Requirements for your respective version.

When you upgrade from an earlier release you will keep 9.6 or 12.5 and you should not have the issue.

This leads to issues with the following line:

Variation One:

[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\9.6",

Variation Two:

[string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

Sebastian_Linser_2-1637314364545.png

 

Environment

  • Qlik Sense Enterprise on Windows

Resolution

Apply the actions in this solution on all nodes.

Depending on your version of Qlik Sense Enterprise on Windows different corrections will be needed.

  1. Search for all *.ps1 scripts in C:\Program Files\Qlik\Sense

    For example, you can use Notepad++, utilizing its Search > Find in Files option: 

    Sebastian_Linser_3-1637315391056.png

    Your directory may vary if you have used an alternative folder.

  2. Find out what version of PostgreSQL binaries you have installed with Qlik Sense Enterprise on Windows:

    1. Open a Windows File Explorer and browse to C:\Program Files\Qlik\Sense\Repository\PostgreSQL

    2. You will find the PostgreSQL binaries folder

      PostgreSQL binaries location.png

  3. After identifying your PostgreSQL binaries version, replace the old path reference in the Configure-Service.ps1 files with the new version.

    Examples:


    replace 

    $senseInstallPath\Repository\PostgreSQL\9.6

    with 

    $senseInstallPath\Repository\PostgreSQL\12.5

    or

    replace 

    $senseInstallPath\Repository\PostgreSQL\12.5

    with 

    $senseInstallPath\Repository\PostgreSQL\14

  4. Repeat this action on the path C:\Programdata\Qlik and update C:\Programdata\Qlik\Sense\QSMQ\scripts\SetupDatabase.ps1 

This is an example list of .ps1 files needing to be edited in the Qlik Sense Enterprise for Windows August 2023 version:

  • C:\Programdata\Qlik\Sense\QSMQ\scripts\SetupDatabase.ps1 

    Line 12: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\AppDistributionService\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\DataPrepService\install\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\HybridDeploymentService\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\Licenses\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\MobilityRegistrarService\install\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\NLAppSearch\install\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\NLBroker\install\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\NotifierService\install\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

  • C:\Program Files\Qlik\Sense\PrecedentsService\install\Configure-Service.ps1

    Line 13: [string]$postgresHome = "$senseInstallPath\Repository\PostgreSQL\12.5",

 

Labels (2)
Comments
Mahamed_Qlik
Specialist
Specialist

Dear

 

After upgrading postgres from 12 to 14, our Qliksense and postgres new path are:

C:\Program Files\Qlik\Sense &

C:\Program Files\PostgreSQL\14 

So  how can write line 13 ? what will be [string]$postgresHome value?

 

 

Tool_Tip
Creator III
Creator III

Dear 

We have successfully upgraded postgres from 12.5 to 14.

But I am unable to see below folder path as you mentioned in above steps:

Tool_Tip_0-1739697976751.png

 

Thers is no postgres folder available :

Tool_Tip_1-1739698065524.png

 

Version history
Last update:
‎2024-11-13 09:25 AM
Updated by:
OSZAR »