<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Error 1064 Unable to start Qlik logging service after hostname was changed in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Error-1064-Unable-to-start-Qlik-logging-service-after-hostname/ta-p/1716981</link>
    <description>&lt;BLOCKQUOTE class="quote"&gt;Centralized logging has been deprecated with the Qlik Sense Enterprise on Windows May 2021 release. This article is only valid for previous versions. No support can be provided on Qlik Centralized logging as all Qlik Sense versions using it have reached end of life.&amp;nbsp;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;After having successfully changed your Qlik Sense server hostname in an environment where centralized logging is enabled, when attempting to start Qlik logging service you receive&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"Error 1064: An exception occurred in the service when handling the control request"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;After having enabled centralized logging logs with this article &lt;A href="https://community.qlik.com/t5/Qlik-Support-Knowledge-Base/How-to-enable-logging-for-the-QlikSense-Centralized-Logging/ta-p/1716515" target="_blank" rel="noopener"&gt;How to enable logging for the Qlik Sense Centralized Logging service&lt;/A&gt;, the log returns the following error:&lt;/P&gt;
&lt;P&gt;In the &lt;FONT face="courier new,courier"&gt;Qlik.Sense.Logging.log&lt;/FONT&gt; file, any of the following is registered:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; [Qlik.Logging.Service.exe] Qlik.Logging.Service [ERROR] - DevartLogDatabase::Connect failed!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Exception:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;No connection could be made because the target machine actively refused it 172.16.16.101:4432&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ERROR] - Failed to retrieve settings from database. Error: ["DevartLogDatabase::Connect failed!\nException:\n\tNo connection could be made because the target machine actively refused it 172.16.16.101:4432\n"] &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;[Qlik.Logging.Service.exe] Qlik.Logging.Service [ERROR] - Failed to initialize database. ["DevartLogDatabase::Connect failed!\nException:\n\tNo connection could be made because the target machine actively refused it 172.16.16.101:4432\n"]&lt;/FONT&gt; &lt;BR /&gt;&lt;BR /&gt;May also see the following:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Qlik.Logging.Service [ERROR] - DevartLogDatabase::Connect failed!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Exception:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;No such host is known&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H3&gt;Environment:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on Windows, February 2019 and later&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;1.&amp;nbsp;The Qlik Sense Server postgreSQL is not listening on the correct IP address&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;The connection string to the QLogs database has not been updated with the new server hostname&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;For&amp;nbsp; Cause 1 above:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;SPAN&gt;Modify the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;listen_addresses&lt;/FONT&gt; setting in the &lt;FONT face="courier new,courier"&gt;postgres.conf&lt;/FONT&gt; file to listen on the address mapped to the new hostname.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Make sure to make a backup copy of &lt;FONT face="courier new,courier"&gt;postgres.conf&lt;/FONT&gt; before modifying it to contain either a wildcard (e.g "*", as shown on image below) or the new hostname (e.g: the server's FQDN).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The file is found under the following path on the Central node:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This change requires the restart of the Qlik Sense Repository Database service, or PostgresSQL service if installed on separate server.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PostgresSQL_listen_addresses.gif" style="width: 800px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51631i6EF3CF98FED572DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="PostgresSQL_listen_addresses.gif" alt="PostgresSQL_listen_addresses.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;For more information see&amp;nbsp;&lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://community.qlik.com/t5/Support-Knowledge-Base/PostgreSQL-postgresql-conf-and-pg-hba-conf-explained/ta-p/1713744" target="_blank" rel="noopener"&gt;PostgreSQL: postgresql.conf and pg_hba.conf explained&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;For&amp;nbsp; Cause 2 above:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;I. Update the hostname in the &lt;FONT face="courier new,courier"&gt;QlikCentralizedLogging.config&lt;/FONT&gt; file&amp;nbsp;via command line.&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;See more information on updating the hostname using the CLI under&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Qlik-Logging-Service.htm" target="_blank" rel="noopener"&gt;Qlik Logging Service&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open &lt;SPAN&gt;CMD.exe&lt;/SPAN&gt; as Administrator&lt;/LI&gt;
&lt;LI&gt;Go to Logging folder: &lt;SPAN&gt;cd C:\Program Files\Qlik\Sense\Logging&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Execute the following:
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;&lt;SPAN&gt;Qlik.Logging.Service.exe validate&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Verify &lt;FONT face="courier new,courier"&gt;CentralizedLoggingEnabled: True &lt;/FONT&gt;or&lt;FONT face="courier new,courier"&gt; False&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;If an error (example below) is returned instead, also see resolution for cause 1 above.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Failed to validate logging database. Database does not exist or is an invalid version&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Change the hostname:
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Execute the following command:&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Qlik.Logging.Service.exe update --hostname &amp;lt;newhostname&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;LI-CODE lang="markup"&gt;example: Qlik.Logging.Service.exe update --hostname QlikServer55.domain.local​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Verify the hostname is showing in the connection string as shown on the image below, and per &lt;STRONG&gt;II.1&lt;/STRONG&gt; below.&lt;/LI&gt;
&lt;LI&gt;Make sure &lt;SPAN&gt;CentralizedLoggingEnabled &lt;/SPAN&gt;&lt;SPAN&gt;is true, and start the Qlik Logging Service in services.msc.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="CentralizedLogging_HostnameChange.gif" style="width: 800px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51632i19C3D94B82C95DE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="CentralizedLogging_HostnameChange.gif" alt="CentralizedLogging_HostnameChange.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;II. Change the hostname: Connection String Editor&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Change the hostname&amp;nbsp;with the Qlik Sense "connection string editor"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Check the Connection string set in:&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To do this, use&amp;nbsp;&lt;SPAN&gt;QlikSenseUtil.exe&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Go to&amp;nbsp;&lt;SPAN&gt;%Program Files%\Qlik\Sense\Repository\Util\QlikSenseUtil.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Open&amp;nbsp;QlikSenseUtil.exe as Admin (right-lick &amp;gt; run as administrator).&lt;/LI&gt;
&lt;LI&gt;In&amp;nbsp;&lt;SPAN&gt;QlikSenseUtil.exe&lt;/SPAN&gt; &amp;gt; connect to the database with your superuser password then select "Connection String Editor".&lt;/LI&gt;
&lt;LI&gt;In the file&amp;nbsp; path to config file, place&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Compare the host set in the connection string with the current FQDN of the server&lt;/LI&gt;
&lt;LI&gt;If the hostname is different, &lt;U&gt;first backup file&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/SPAN&gt;&amp;nbsp; before making any change&lt;/U&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Try to modify the hostname in your connection string, and hit the save button.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Make sure your file has been changed by clicking the "read" button afterwords.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. In case your Connection string cannot be changed please try III.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;III. Change the hostname: Config file changes&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Change the hostname&amp;nbsp;by editing&amp;nbsp;QlikCentralizedLogging.config&lt;BR /&gt;&lt;BR /&gt;Note that this solution is a workaround in case point&amp;nbsp; &lt;STRONG&gt;II.&lt;/STRONG&gt; did not work,&lt;BR /&gt;By applying this change&amp;nbsp;&lt;STRONG&gt;the centralize logging connection string will be set in&amp;nbsp;clear text and will be no longer&amp;nbsp;encrypted.&amp;nbsp;&lt;U&gt;Make sure to let the customer aware about this&lt;/U&gt;&lt;/STRONG&gt;&lt;U&gt;.&lt;/U&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Backup file&amp;nbsp;&lt;FONT face="courier new,courier"&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/FONT&gt;&amp;nbsp; before making any change&lt;/LI&gt;
&lt;LI&gt;Edit&amp;nbsp;QlikCentralizedLogging.config as follows&lt;/LI&gt;
&lt;LI&gt;Copy the current connection string in a text editor, by using the&amp;nbsp;QlikSenseUtil.exe .&lt;BR /&gt;Please refer to II.1) to do this
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;open file&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Find and remove&amp;nbsp;"&lt;SPAN&gt;&amp;lt;connectionStrings configProtectionProvider="DataProtectionConfigurationProvider"&amp;gt;&lt;/SPAN&gt; "&amp;nbsp; all the way to&amp;nbsp;"&amp;nbsp;&lt;SPAN&gt;&amp;lt;/connectionStrings&amp;gt;&lt;/SPAN&gt;"&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Replace with with the connection string you saved in a., corrected with the new server FQDN&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;connectionStrings&amp;gt;
    &amp;lt;add name="qlogs_reader" connectionString="user id=qlogs_reader;password=123;host=QsDBserverFQDN;port=4432;database=QLogs;" providerName="Devart.Data.PostgreSql" /&amp;gt;
    &amp;lt;add name="qlogs_writer" connectionString="user id=qlogs_writer;password=123;host=QsDBserverFQDN;port=4432;database=QLogs;" providerName="Devart.Data.PostgreSql" /&amp;gt;
&amp;lt;/connectionStrings&amp;gt;​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;If it still does not work, and your Database is stored on the same server,&amp;nbsp;&amp;nbsp;replace to &lt;STRONG style="font-family: inherit;"&gt;host=localhost&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 06 Jul 2023 13:06:59 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2023-07-06T13:06:59Z</dc:date>
    <item>
      <title>Error 1064 Unable to start Qlik logging service after hostname was changed</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Error-1064-Unable-to-start-Qlik-logging-service-after-hostname/ta-p/1716981</link>
      <description>&lt;BLOCKQUOTE class="quote"&gt;Centralized logging has been deprecated with the Qlik Sense Enterprise on Windows May 2021 release. This article is only valid for previous versions. No support can be provided on Qlik Centralized logging as all Qlik Sense versions using it have reached end of life.&amp;nbsp;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;After having successfully changed your Qlik Sense server hostname in an environment where centralized logging is enabled, when attempting to start Qlik logging service you receive&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"Error 1064: An exception occurred in the service when handling the control request"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;After having enabled centralized logging logs with this article &lt;A href="https://community.qlik.com/t5/Qlik-Support-Knowledge-Base/How-to-enable-logging-for-the-QlikSense-Centralized-Logging/ta-p/1716515" target="_blank" rel="noopener"&gt;How to enable logging for the Qlik Sense Centralized Logging service&lt;/A&gt;, the log returns the following error:&lt;/P&gt;
&lt;P&gt;In the &lt;FONT face="courier new,courier"&gt;Qlik.Sense.Logging.log&lt;/FONT&gt; file, any of the following is registered:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; [Qlik.Logging.Service.exe] Qlik.Logging.Service [ERROR] - DevartLogDatabase::Connect failed!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Exception:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;No connection could be made because the target machine actively refused it 172.16.16.101:4432&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ERROR] - Failed to retrieve settings from database. Error: ["DevartLogDatabase::Connect failed!\nException:\n\tNo connection could be made because the target machine actively refused it 172.16.16.101:4432\n"] &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;[Qlik.Logging.Service.exe] Qlik.Logging.Service [ERROR] - Failed to initialize database. ["DevartLogDatabase::Connect failed!\nException:\n\tNo connection could be made because the target machine actively refused it 172.16.16.101:4432\n"]&lt;/FONT&gt; &lt;BR /&gt;&lt;BR /&gt;May also see the following:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Qlik.Logging.Service [ERROR] - DevartLogDatabase::Connect failed!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Exception:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;No such host is known&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H3&gt;Environment:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on Windows, February 2019 and later&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;1.&amp;nbsp;The Qlik Sense Server postgreSQL is not listening on the correct IP address&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;The connection string to the QLogs database has not been updated with the new server hostname&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;For&amp;nbsp; Cause 1 above:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;SPAN&gt;Modify the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;listen_addresses&lt;/FONT&gt; setting in the &lt;FONT face="courier new,courier"&gt;postgres.conf&lt;/FONT&gt; file to listen on the address mapped to the new hostname.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Make sure to make a backup copy of &lt;FONT face="courier new,courier"&gt;postgres.conf&lt;/FONT&gt; before modifying it to contain either a wildcard (e.g "*", as shown on image below) or the new hostname (e.g: the server's FQDN).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The file is found under the following path on the Central node:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This change requires the restart of the Qlik Sense Repository Database service, or PostgresSQL service if installed on separate server.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PostgresSQL_listen_addresses.gif" style="width: 800px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51631i6EF3CF98FED572DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="PostgresSQL_listen_addresses.gif" alt="PostgresSQL_listen_addresses.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;For more information see&amp;nbsp;&lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://community.qlik.com/t5/Support-Knowledge-Base/PostgreSQL-postgresql-conf-and-pg-hba-conf-explained/ta-p/1713744" target="_blank" rel="noopener"&gt;PostgreSQL: postgresql.conf and pg_hba.conf explained&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;For&amp;nbsp; Cause 2 above:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;I. Update the hostname in the &lt;FONT face="courier new,courier"&gt;QlikCentralizedLogging.config&lt;/FONT&gt; file&amp;nbsp;via command line.&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;See more information on updating the hostname using the CLI under&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Qlik-Logging-Service.htm" target="_blank" rel="noopener"&gt;Qlik Logging Service&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open &lt;SPAN&gt;CMD.exe&lt;/SPAN&gt; as Administrator&lt;/LI&gt;
&lt;LI&gt;Go to Logging folder: &lt;SPAN&gt;cd C:\Program Files\Qlik\Sense\Logging&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Execute the following:
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;&lt;SPAN&gt;Qlik.Logging.Service.exe validate&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Verify &lt;FONT face="courier new,courier"&gt;CentralizedLoggingEnabled: True &lt;/FONT&gt;or&lt;FONT face="courier new,courier"&gt; False&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;If an error (example below) is returned instead, also see resolution for cause 1 above.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Failed to validate logging database. Database does not exist or is an invalid version&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Change the hostname:
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Execute the following command:&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Qlik.Logging.Service.exe update --hostname &amp;lt;newhostname&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;LI-CODE lang="markup"&gt;example: Qlik.Logging.Service.exe update --hostname QlikServer55.domain.local​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Verify the hostname is showing in the connection string as shown on the image below, and per &lt;STRONG&gt;II.1&lt;/STRONG&gt; below.&lt;/LI&gt;
&lt;LI&gt;Make sure &lt;SPAN&gt;CentralizedLoggingEnabled &lt;/SPAN&gt;&lt;SPAN&gt;is true, and start the Qlik Logging Service in services.msc.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="CentralizedLogging_HostnameChange.gif" style="width: 800px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51632i19C3D94B82C95DE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="CentralizedLogging_HostnameChange.gif" alt="CentralizedLogging_HostnameChange.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;II. Change the hostname: Connection String Editor&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Change the hostname&amp;nbsp;with the Qlik Sense "connection string editor"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Check the Connection string set in:&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To do this, use&amp;nbsp;&lt;SPAN&gt;QlikSenseUtil.exe&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Go to&amp;nbsp;&lt;SPAN&gt;%Program Files%\Qlik\Sense\Repository\Util\QlikSenseUtil.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Open&amp;nbsp;QlikSenseUtil.exe as Admin (right-lick &amp;gt; run as administrator).&lt;/LI&gt;
&lt;LI&gt;In&amp;nbsp;&lt;SPAN&gt;QlikSenseUtil.exe&lt;/SPAN&gt; &amp;gt; connect to the database with your superuser password then select "Connection String Editor".&lt;/LI&gt;
&lt;LI&gt;In the file&amp;nbsp; path to config file, place&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Compare the host set in the connection string with the current FQDN of the server&lt;/LI&gt;
&lt;LI&gt;If the hostname is different, &lt;U&gt;first backup file&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/SPAN&gt;&amp;nbsp; before making any change&lt;/U&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Try to modify the hostname in your connection string, and hit the save button.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Make sure your file has been changed by clicking the "read" button afterwords.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. In case your Connection string cannot be changed please try III.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;III. Change the hostname: Config file changes&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Change the hostname&amp;nbsp;by editing&amp;nbsp;QlikCentralizedLogging.config&lt;BR /&gt;&lt;BR /&gt;Note that this solution is a workaround in case point&amp;nbsp; &lt;STRONG&gt;II.&lt;/STRONG&gt; did not work,&lt;BR /&gt;By applying this change&amp;nbsp;&lt;STRONG&gt;the centralize logging connection string will be set in&amp;nbsp;clear text and will be no longer&amp;nbsp;encrypted.&amp;nbsp;&lt;U&gt;Make sure to let the customer aware about this&lt;/U&gt;&lt;/STRONG&gt;&lt;U&gt;.&lt;/U&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Backup file&amp;nbsp;&lt;FONT face="courier new,courier"&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/FONT&gt;&amp;nbsp; before making any change&lt;/LI&gt;
&lt;LI&gt;Edit&amp;nbsp;QlikCentralizedLogging.config as follows&lt;/LI&gt;
&lt;LI&gt;Copy the current connection string in a text editor, by using the&amp;nbsp;QlikSenseUtil.exe .&lt;BR /&gt;Please refer to II.1) to do this
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;open file&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\Qlik\Sense\Log\QlikCentralizedLogging.config&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Find and remove&amp;nbsp;"&lt;SPAN&gt;&amp;lt;connectionStrings configProtectionProvider="DataProtectionConfigurationProvider"&amp;gt;&lt;/SPAN&gt; "&amp;nbsp; all the way to&amp;nbsp;"&amp;nbsp;&lt;SPAN&gt;&amp;lt;/connectionStrings&amp;gt;&lt;/SPAN&gt;"&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Replace with with the connection string you saved in a., corrected with the new server FQDN&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;connectionStrings&amp;gt;
    &amp;lt;add name="qlogs_reader" connectionString="user id=qlogs_reader;password=123;host=QsDBserverFQDN;port=4432;database=QLogs;" providerName="Devart.Data.PostgreSql" /&amp;gt;
    &amp;lt;add name="qlogs_writer" connectionString="user id=qlogs_writer;password=123;host=QsDBserverFQDN;port=4432;database=QLogs;" providerName="Devart.Data.PostgreSql" /&amp;gt;
&amp;lt;/connectionStrings&amp;gt;​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;If it still does not work, and your Database is stored on the same server,&amp;nbsp;&amp;nbsp;replace to &lt;STRONG style="font-family: inherit;"&gt;host=localhost&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Error-1064-Unable-to-start-Qlik-logging-service-after-hostname/ta-p/1716981</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-07-06T13:06:59Z</dc:date>
    </item>
  </channel>
</rss>

