Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jul 3, 2024 4:19:56 AM
Dec 29, 2020 4:06:41 PM
The hostname in Qlik Sense is determined by the content of host.cfg. In order to change the hostname you must change the value in this file. This will also result in all certificates being invalidated.
Once invalidated, they need to be recreated and any passwords stored in the database will need to be reset (e.g Data Connections and User Directory Connector credentials). Passwords are encrypted based on the server certificates.
Please note the information in this article pertains to steps when changing the server hostname only, and not the Windows domain to which it is joined. When changing the domain please see the links below for more information:
For Video transcript click here.
[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("yourServerHostname.yourDomain.com"))
Correcting Share paths if it is shared on the Central Node:
Update the Qlik Sense Data connections via the Qlik Management Console (QMC):
The relevant tables in the repository database that contain the host name information are:
LocalConfigs ( Hostname column )
ServerNodeConfigurations ( Host Name )
Note: Please make sure that the above table hostname column should contain the correct server FQDN ( network host name and not the individual machine host name ) this should be exactly the hostname that is in the host.config file
Note : LocalConfigs table has been removed in Qlik Sense Enterprise February 2019 and newer.
There are three possible scenarios in a multi-node environment. Changing the hostname for a Rim node only, the hostname of the Central node, or both. Certificates are always generated by the central node and are based on hostname so the change of hostname on the Central node consumes more time, will require redistribution, and in some cases also the deletion and re-adding of node information.
On the Rim node:
[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("qlikserver.domain.local"))
Unfortunately it is not possible to adjust the hostname of a node in QMC, so a when a Rim node's hostname is changed you have to then delete and re-add it with the steps below.
On the Central server:
All certificates used by Qlik Sense are created and signed by the central node and are based on its hostname, changing the hostname on the central node and recreating all self-signed certificates breaks this chain of trust and thus all certificates on all rim nodes will need to be recreated and redistributed.
On every Rim node:
On the central node:
[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("qlikserver.domain.local"))
Back on the Rim node(s):
# 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
}
the relevant tables in the repository database that contain the host name information are:
LocalConfigs ( Hostname column )
ServerNodeConfigurations ( Host Name )
Note: Please make sure that the above table hostname column should contain the correct server FQDN ( network host name and not the individual machine host name ) this should be exactly the hostname that is in the host.config file
Note : LocalConfigs table has been removed in Qlik Sense Enterprise February 2019 and newer.
if i understand,
this a greate article , BUT you forget to change the share directory.
beacuse its still look to the old share
Hello @Qlik_FZ
Either method can be performed first. It depends on the order in which your IT wishes to migrate the server (to a new domain first or rename first, then move to a new domain). If you require direct guidance on how to perform this activity, we recommend either posting about it in detail in our Deployment and Management forum, where you have access to our larger userbase, or to contact out consulting services for direct help.
All the best,
Sonja