<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1024 "Could not acquire change log lock. Currently locked by &lt;user&gt;" error thrown during application server startup</title><link>https://community.appian.com/support/w/kb/249/kb-1024-could-not-acquire-change-log-lock-currently-locked-by-user-error-thrown-during-application-server-startup</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1024 "Could not acquire change log lock. Currently locked by &lt;user&gt;" error thrown during application server startup</title><link>https://community.appian.com/support/w/kb/249/kb-1024-could-not-acquire-change-log-lock-currently-locked-by-user-error-thrown-during-application-server-startup</link><pubDate>Mon, 30 Jul 2018 04:07:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27eff361-73d8-4a31-9745-213d5a59f4bf</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/249/kb-1024-could-not-acquire-change-log-lock-currently-locked-by-user-error-thrown-during-application-server-startup#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 7/30/2018 4:07:36 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;During application server startup, the following error is shown in the application server log:&lt;/p&gt;
&lt;pre&gt;Caused by: java.lang.IllegalStateException: liquibase.exception.LockException: 
    Could not acquire change log lock. Currently locked by XXXXXXXXX (XXXXXXX)
&lt;/pre&gt;
&lt;p&gt;As a result of this error, the application server fails to start successfully.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The DATABASECHANGELOGLOCK table in the primary data source has not been updated with the release lock information, and the lock flag is enabled while the application server starts up.&lt;/p&gt;
&lt;p&gt;This is a result of&amp;nbsp;killing the application server.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Go to the primary database schema.&lt;/li&gt;
&lt;li&gt;Go to the database change log lock table - &amp;lt;PRIMARY_DB&amp;gt;.DATABASECHANGELOGLOCK&lt;/li&gt;
&lt;li&gt;Change the values to the following: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;pre&gt;LOCKED = 0
LOCKGRANTED = NULL
LOCKEDBY = NULL
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A sample query is provided below:&lt;/p&gt;
&lt;pre&gt;UPDATE [DATABASECHANGELOGLOCK] 
SET &amp;nbsp;&amp;nbsp;&amp;nbsp;[DATABASECHANGELOGLOCK].LOCKED = 0, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[DATABASECHANGELOGLOCK].LOCKGRANTED = NULL, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[DATABASECHANGELOGLOCK].LOCKEDBY = NULL 
WHERE  ID=1
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The above SQL is provided by Appian as a sample and may not run correctly in all supported relational databases. For database-specific syntax, please contact your database administrator.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1024 "Could not acquire change log lock. Currently locked by &lt;user&gt;" error thrown during application server startup</title><link>https://community.appian.com/support/w/kb/249/kb-1024-could-not-acquire-change-log-lock-currently-locked-by-user-error-thrown-during-application-server-startup/revision/1</link><pubDate>Mon, 13 Feb 2017 13:51:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27eff361-73d8-4a31-9745-213d5a59f4bf</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/249/kb-1024-could-not-acquire-change-log-lock-currently-locked-by-user-error-thrown-during-application-server-startup#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 2/13/2017 1:51:57 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;During application server startup, the following error is shown in the application server log:&lt;/p&gt;
&lt;pre&gt;Caused by: java.lang.IllegalStateException: liquibase.exception.LockException: 
    Could not acquire change log lock. Currently locked by XXXXXXXXX (XXXXXXX)
&lt;/pre&gt;
&lt;p&gt;As a result of this error, the application server fails to start successfully.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The DATABASECHANGELOGLOCK table in the primary data source has not been updated with the release lock information, and the lock flag is enabled while the application server starts up.&lt;/p&gt;
&lt;p&gt;This is a result of&amp;nbsp;killing the application server.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Go to the primary database schema.&lt;/li&gt;
&lt;li&gt;Go to the database change log lock table - &amp;lt;PRIMARY_DB&amp;gt;.DATABASECHANGELOGLOCK&lt;/li&gt;
&lt;li&gt;Change the values to the following: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;pre&gt;LOCKED = 0
LOCKGRANTED = NULL
LOCKEDBY = NULL
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A sample query is provided below:&lt;/p&gt;
&lt;pre&gt;UPDATE [DATABASECHANGELOGLOCK] 
SET &amp;nbsp;&amp;nbsp;&amp;nbsp;[DATABASECHANGELOGLOCK].LOCKED = 0, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[DATABASECHANGELOGLOCK].LOCKGRANTED = NULL, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[DATABASECHANGELOGLOCK].LOCKEDBY = NULL 
WHERE  ID=1
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The above SQL is provided by Appian as a sample and may not run correctly in all supported relational databases. For database-specific syntax, please contact your database administrator.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item></channel></rss>