Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save levi-turner/dba9be27835cb83dbd85fb463044130e to your computer and use it in GitHub Desktop.
Save levi-turner/dba9be27835cb83dbd85fb463044130e to your computer and use it in GitHub Desktop.
# Service Initialize to work-around QLIK-73792
# v0.1 - Levi Turner
# This tool is provided free of charge and is not supported.
# This .ps1 is not an official Qlik Sense product and is provided without warranty.
# Use of this script is entirely at the user's own risk.
# May not be needed depending on the node
start-service QlikSenseRepositoryDatabase
start-sleep 10
# Non-psql nodes start from here
start-service QlikSenseServiceDispatcher
start-sleep 10
start-service QlikSenseRepositoryService
start-sleep 10
# Change directory to the Repo > Trace directory
cd C:\ProgramData\Qlik\Sense\Log\Repository\Trace
# Store the number of files as a variable
# Loop until the value = 8, which the number in my environment
# If I recall, the number is 5 in XXXclientXXXs, check this
# Replace 8 with the actual of a fully initialized Repo's
# C:\ProgramData\Qlik\Sense\Log\Repository\Trace directory
Do {
if($loglist -eq 8) {"Repository Initialized"}
else{
start-sleep 1
$loglist = Get-ChildItem | Measure-Object | %{$_.Count}
}
}
Until($loglist -eq 8)
# Once the value equals the initialized variable, continue
start-service QlikSenseEngineService
start-sleep 10
start-service QlikSenseProxyService
start-sleep 10
start-service QlikSenseSchedulerService
start-sleep 10
start-service QlikSensePrintingService
start-sleep 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment