<?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 Qlik Sense Repository won't start: Inactive lock existance check for database 'QSR' failed: permission denied for relation _locktable in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-won-t-start-Inactive-lock-existance-check/ta-p/1714559</link>
    <description>&lt;P&gt;After restoring a database backup and attempting to start Qlik Sense you see the following errors in the repository log and QMC and the Hub will not work.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Logs showed these errors:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;12&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.772+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;INFO&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.QRSMain&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;1ddd3da9-3b36-426c-9064-606268c0e733&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &amp;nbsp;Connected to QSMQ database&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1ddd3da9-3b36-426c-9064-606268c0e733&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;13&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.886+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;ERROR&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.Core.Database.StartupLock&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;3c843de6-2490-4e74-ac81-ffba920d67ee&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Inactive lock existance check for database 'QSR' failed: permission denied for relation _locktable&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;3c843de6-2490-4e74-ac81-ffba920d67ee&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;14&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.905+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;ERROR&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.QRSMain&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;f1c4b85a-0cfd-416f-a4fe-e415c7dba3f5&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;Fatal exception&amp;nbsp;&amp;nbsp; &amp;nbsp;permission denied for relation _locktable↵↓Inactive lock existance check for database 'QSR' failed: permission denied for relation _locktable&amp;nbsp;&amp;nbsp; &amp;nbsp;NO-STACKTRACE&lt;/STRONG&gt;↵↓ &amp;nbsp; at Repository.Core.Database.QuerySupport.PgDatabaseQuerySupport.ProcessResult(String operation, PgOperationResult result)↵↓ &amp;nbsp; at Repository.QRSMain.WaitForLock(Action action, TimeSpan interval)↵↓ &amp;nbsp; at Repository.QRSMain.Main()&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f1c4b85a-0cfd-416f-a4fe-e415c7dba3f5&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;15&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.927+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;ERROR&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.Core.Database.StartupLock&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;c3036dcc-0cd3-4984-b02c-75c6bc4c5848&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Removal of active lock for database 'QSR' failed: Failed to execute query: '↓⇔⇔⇔DELETE FROM _locktable↓⇔⇔⇔WHERE name = :p1 AND node = :p2 AND inactive = 'false'↓⇔⇔'. Exception: permission denied for relation _locktable&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;c3036dcc-0cd3-4984-b02c-75c6bc4c5848&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;After restoring a database backup&amp;nbsp;Qlik Sense Repository Services is crashing immediately after starting the service.&lt;/P&gt;
&lt;P&gt;Logs showed these errors:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1 26.28.0.0 20201214T211607.575+0200 INFO QlikServer1&amp;nbsp;&amp;nbsp; b6b0d382-7151-433a-ae25-528ae2f05843 Command=Start repository;Result=0;ResultText=Success 0 0 0 INTERNAL System 0 Not available Repository Not available Not available Start repository 0 Validating certificates. b6b0d382-7151-433a-ae25-528ae2f05843&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2 26.28.0.0 20201214T211619.409+0200 ERROR QlikServer1&amp;nbsp;&amp;nbsp;00e7721a-7314-4836-bde7-cdbcd53a4760 Command=Start repository;Result=&lt;STRONG&gt;-2146233088&lt;/STRONG&gt;;ResultText=Error: &lt;STRONG&gt;An exception was thrown while invoking the constructor 'Void &lt;/STRONG&gt;.ctor(Qlik.Sense.Logging.IQSLogManager, Repository.Core.INodeConfig, Qlik.Sense.Communication.Security.ICertSetup, Qlik.Sense.Common.Communication.REST.Server.IRESTEngineFactory, Repository.Core.ISystemInformation, Qlik.Sense.Common.Logging.ILogMaster)' on type 'ApiService'. ---&amp;gt;&lt;STRONG&gt; An exception was thrown while invoking the constructor &lt;/STRONG&gt;'Void .ctor(Qlik.Sense.Common.ITypeResolver, System.Func`1[Repository.Core.Repository.Database.Common.IDatabaseContext], Autofac.ILifetimeScope, Repository.Core.Repository.Common.ITransactionUtility, Repository.Core.Repository.Common.IRepositoryEntityCache, Repository.Core.INodeConfig, Qlik.Sense.Logging.IQSLogManager, Repository.Core.Repository.Common.ILifetimeScopeEntityCache, Repository.Core.Repository.Common.IEntityFrameworkExtendedWrapper)' on type 'EntityTransactionRepository'. ---&amp;gt;&lt;STRONG&gt; An exception was thrown while invoking the constructor &lt;/STRONG&gt;'Void .ctor()' on type 'DatabaseContext'. ---&amp;gt; &lt;STRONG&gt;Failed to update MigrationLog table (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) &lt;/STRONG&gt;0 0 0 INTERNAL System 0 Not available Repository Not available Not available Start repository &lt;STRONG&gt;-2146233088&lt;/STRONG&gt; &lt;STRONG&gt;An exception was thrown while invoking the constructor&lt;/STRONG&gt; 'Void .ctor(Qlik.Sense.Common.ITypeResolver, System.Func`1[Repository.Core.Repository.Database.Common.IDatabaseContext], Autofac.ILifetimeScope, Repository.Core.Repository.Common.ITransactionUtility, Repository.Core.Repository.Common.IRepositoryEntityCache, Repository.Core.INodeConfig, Qlik.Sense.Logging.IQSLogManager, Repository.Core.Repository.Common.ILifetimeScopeEntityCache, Repository.Core.Repository.Common.IEntityFrameworkExtendedWrapper)' on type 'EntityTransactionRepository'. ---&amp;gt; &lt;STRONG&gt;An exception was thrown while invoking the constructor&lt;/STRONG&gt; 'Void .ctor()' on type 'DatabaseContext'. ---&amp;gt; &lt;STRONG&gt;Failed to update MigrationLog table (See inner exception for details.) (See inner exception for details.)&lt;/STRONG&gt; 00e7721a-7314-4836-bde7-cdbcd53a4760&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3 26.28.0.0 20201214T211619.411+0200 INFO QlikServer1&amp;nbsp;&amp;nbsp;b2aa55ec-a466-48c5-928d-0ae75e4b1923 Command=Stop repository;Result=0;ResultText=Success 0 0 0 INTERNAL System 0 Not available Repository Not available Not available Stop repository 0 Stopping Repository and calling shutdown events, due to: stopped by Windows service manager b2aa55ec-a466-48c5-928d-0ae75e4b1923&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;qliksenserepository&lt;/FONT&gt; user (or the user specified in the repository connection string) does not have sufficient access to the tables in the repository database.&lt;BR /&gt;&lt;BR /&gt;To fix this we need to connect to the database using a DB Admin tool like PGAdmin:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener" data-cke-saved-href="/articles/Basic/How-To-Access-PostgreSQL-9-6-Using-PGAdmin-4"&gt;Installing and Configuring PGAdmin 4 to access the PostgreSQL database used by Qlik Sense&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and then run this SQL query:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;DO
$$
DECLARE
&amp;nbsp; &amp;nbsp; row record;
BEGIN
&amp;nbsp; &amp;nbsp; FOR row IN SELECT tablename FROM pg_tables WHERE schemaname = 'public'
&amp;nbsp; &amp;nbsp; LOOP
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXECUTE 'ALTER TABLE public.' || quote_ident(row.tablename) || ' OWNER TO qliksenserepository;';
&amp;nbsp; &amp;nbsp; END LOOP;
END;
$$;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 14:08:33 GMT</pubDate>
    <dc:creator>Daniele_Purrone</dc:creator>
    <dc:date>2021-06-23T14:08:33Z</dc:date>
    <item>
      <title>Qlik Sense Repository won't start: Inactive lock existance check for database 'QSR' failed: permission denied for relation _locktable</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-won-t-start-Inactive-lock-existance-check/ta-p/1714559</link>
      <description>&lt;P&gt;After restoring a database backup and attempting to start Qlik Sense you see the following errors in the repository log and QMC and the Hub will not work.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Logs showed these errors:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;12&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.772+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;INFO&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.QRSMain&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;1ddd3da9-3b36-426c-9064-606268c0e733&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &amp;nbsp;Connected to QSMQ database&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1ddd3da9-3b36-426c-9064-606268c0e733&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;13&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.886+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;ERROR&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.Core.Database.StartupLock&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;3c843de6-2490-4e74-ac81-ffba920d67ee&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Inactive lock existance check for database 'QSR' failed: permission denied for relation _locktable&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;3c843de6-2490-4e74-ac81-ffba920d67ee&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;14&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.905+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;ERROR&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.QRSMain&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;f1c4b85a-0cfd-416f-a4fe-e415c7dba3f5&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;Fatal exception&amp;nbsp;&amp;nbsp; &amp;nbsp;permission denied for relation _locktable↵↓Inactive lock existance check for database 'QSR' failed: permission denied for relation _locktable&amp;nbsp;&amp;nbsp; &amp;nbsp;NO-STACKTRACE&lt;/STRONG&gt;↵↓ &amp;nbsp; at Repository.Core.Database.QuerySupport.PgDatabaseQuerySupport.ProcessResult(String operation, PgOperationResult result)↵↓ &amp;nbsp; at Repository.QRSMain.WaitForLock(Action action, TimeSpan interval)↵↓ &amp;nbsp; at Repository.QRSMain.Main()&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f1c4b85a-0cfd-416f-a4fe-e415c7dba3f5&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;15&amp;nbsp;&amp;nbsp; &amp;nbsp;20180816T115644.927+0200&amp;nbsp;&amp;nbsp; &amp;nbsp;ERROR&amp;nbsp;&amp;nbsp; &amp;nbsp;QlikServer1&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Repository.Repository.Core.Database.StartupLock&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;c3036dcc-0cd3-4984-b02c-75c6bc4c5848&amp;nbsp;&amp;nbsp; &amp;nbsp;DOMAIN\qvservice&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Removal of active lock for database 'QSR' failed: Failed to execute query: '↓⇔⇔⇔DELETE FROM _locktable↓⇔⇔⇔WHERE name = :p1 AND node = :p2 AND inactive = 'false'↓⇔⇔'. Exception: permission denied for relation _locktable&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;c3036dcc-0cd3-4984-b02c-75c6bc4c5848&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;After restoring a database backup&amp;nbsp;Qlik Sense Repository Services is crashing immediately after starting the service.&lt;/P&gt;
&lt;P&gt;Logs showed these errors:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1 26.28.0.0 20201214T211607.575+0200 INFO QlikServer1&amp;nbsp;&amp;nbsp; b6b0d382-7151-433a-ae25-528ae2f05843 Command=Start repository;Result=0;ResultText=Success 0 0 0 INTERNAL System 0 Not available Repository Not available Not available Start repository 0 Validating certificates. b6b0d382-7151-433a-ae25-528ae2f05843&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2 26.28.0.0 20201214T211619.409+0200 ERROR QlikServer1&amp;nbsp;&amp;nbsp;00e7721a-7314-4836-bde7-cdbcd53a4760 Command=Start repository;Result=&lt;STRONG&gt;-2146233088&lt;/STRONG&gt;;ResultText=Error: &lt;STRONG&gt;An exception was thrown while invoking the constructor 'Void &lt;/STRONG&gt;.ctor(Qlik.Sense.Logging.IQSLogManager, Repository.Core.INodeConfig, Qlik.Sense.Communication.Security.ICertSetup, Qlik.Sense.Common.Communication.REST.Server.IRESTEngineFactory, Repository.Core.ISystemInformation, Qlik.Sense.Common.Logging.ILogMaster)' on type 'ApiService'. ---&amp;gt;&lt;STRONG&gt; An exception was thrown while invoking the constructor &lt;/STRONG&gt;'Void .ctor(Qlik.Sense.Common.ITypeResolver, System.Func`1[Repository.Core.Repository.Database.Common.IDatabaseContext], Autofac.ILifetimeScope, Repository.Core.Repository.Common.ITransactionUtility, Repository.Core.Repository.Common.IRepositoryEntityCache, Repository.Core.INodeConfig, Qlik.Sense.Logging.IQSLogManager, Repository.Core.Repository.Common.ILifetimeScopeEntityCache, Repository.Core.Repository.Common.IEntityFrameworkExtendedWrapper)' on type 'EntityTransactionRepository'. ---&amp;gt;&lt;STRONG&gt; An exception was thrown while invoking the constructor &lt;/STRONG&gt;'Void .ctor()' on type 'DatabaseContext'. ---&amp;gt; &lt;STRONG&gt;Failed to update MigrationLog table (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) &lt;/STRONG&gt;0 0 0 INTERNAL System 0 Not available Repository Not available Not available Start repository &lt;STRONG&gt;-2146233088&lt;/STRONG&gt; &lt;STRONG&gt;An exception was thrown while invoking the constructor&lt;/STRONG&gt; 'Void .ctor(Qlik.Sense.Common.ITypeResolver, System.Func`1[Repository.Core.Repository.Database.Common.IDatabaseContext], Autofac.ILifetimeScope, Repository.Core.Repository.Common.ITransactionUtility, Repository.Core.Repository.Common.IRepositoryEntityCache, Repository.Core.INodeConfig, Qlik.Sense.Logging.IQSLogManager, Repository.Core.Repository.Common.ILifetimeScopeEntityCache, Repository.Core.Repository.Common.IEntityFrameworkExtendedWrapper)' on type 'EntityTransactionRepository'. ---&amp;gt; &lt;STRONG&gt;An exception was thrown while invoking the constructor&lt;/STRONG&gt; 'Void .ctor()' on type 'DatabaseContext'. ---&amp;gt; &lt;STRONG&gt;Failed to update MigrationLog table (See inner exception for details.) (See inner exception for details.)&lt;/STRONG&gt; 00e7721a-7314-4836-bde7-cdbcd53a4760&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3 26.28.0.0 20201214T211619.411+0200 INFO QlikServer1&amp;nbsp;&amp;nbsp;b2aa55ec-a466-48c5-928d-0ae75e4b1923 Command=Stop repository;Result=0;ResultText=Success 0 0 0 INTERNAL System 0 Not available Repository Not available Not available Stop repository 0 Stopping Repository and calling shutdown events, due to: stopped by Windows service manager b2aa55ec-a466-48c5-928d-0ae75e4b1923&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;qliksenserepository&lt;/FONT&gt; user (or the user specified in the repository connection string) does not have sufficient access to the tables in the repository database.&lt;BR /&gt;&lt;BR /&gt;To fix this we need to connect to the database using a DB Admin tool like PGAdmin:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener" data-cke-saved-href="/articles/Basic/How-To-Access-PostgreSQL-9-6-Using-PGAdmin-4"&gt;Installing and Configuring PGAdmin 4 to access the PostgreSQL database used by Qlik Sense&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and then run this SQL query:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;DO
$$
DECLARE
&amp;nbsp; &amp;nbsp; row record;
BEGIN
&amp;nbsp; &amp;nbsp; FOR row IN SELECT tablename FROM pg_tables WHERE schemaname = 'public'
&amp;nbsp; &amp;nbsp; LOOP
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXECUTE 'ALTER TABLE public.' || quote_ident(row.tablename) || ' OWNER TO qliksenserepository;';
&amp;nbsp; &amp;nbsp; END LOOP;
END;
$$;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 14:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-won-t-start-Inactive-lock-existance-check/ta-p/1714559</guid>
      <dc:creator>Daniele_Purrone</dc:creator>
      <dc:date>2021-06-23T14:08:33Z</dc:date>
    </item>
  </channel>
</rss>

