<?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-2331 How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2331 How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks</link><pubDate>Tue, 18 Feb 2025 16:51:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Current Revision posted to Appian Knowledge Base by pauline.delacruz on 2/18/2025 4:51:00 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-11/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;b&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are no deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian Cloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Last Reviewed: February 2025&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, how-to, Performance&lt;/div&gt;
</description></item><item><title>KB-2331 How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/13</link><pubDate>Tue, 18 Feb 2025 16:50:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 13 posted to Appian Knowledge Base by pauline.delacruz on 2/18/2025 4:50:29 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;b&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are no deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Last Reviewed: February 2025&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, how-to, Performance&lt;/div&gt;
</description></item><item><title>KB-2331 How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/14</link><pubDate>Tue, 18 Feb 2025 16:50:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 14 posted to Appian Knowledge Base by pauline.delacruz on 2/18/2025 4:50:29 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-11/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;b&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are no deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Last Reviewed: February 2025&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, how-to, Performance&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/12</link><pubDate>Wed, 12 Feb 2025 15:20:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 12 posted to Appian Knowledge Base by pauline.delacruz on 2/12/2025 3:20:24 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;b&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;&lt;b&gt;If there are no deadlocks listed in the InnoDB status output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Last Reviewed: February 2025&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/11</link><pubDate>Wed, 12 Feb 2025 15:18:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 11 posted to Appian Knowledge Base by pauline.delacruz on 2/12/2025 3:18:09 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;If there are deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Last Reviewed: February 2025&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/10</link><pubDate>Wed, 12 Feb 2025 15:17:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 10 posted to Appian Knowledge Base by pauline.delacruz on 2/12/2025 3:17:08 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h4 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Last Reviewed: February 2025&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/9</link><pubDate>Mon, 02 Dec 2024 05:05:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 9 posted to Appian Knowledge Base by addam.dinh on 12/2/2024 5:05:10 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h4 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/8</link><pubDate>Mon, 02 Dec 2024 05:03:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 8 posted to Appian Knowledge Base by addam.dinh on 12/2/2024 5:03:47 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h4 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/7</link><pubDate>Mon, 02 Dec 2024 04:51:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 7 posted to Appian Knowledge Base by addam.dinh on 12/2/2024 4:51:38 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:268px;max-width:649px;" alt=" " height="268" src="/resized-image/__size/1298x536/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="649" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/6</link><pubDate>Mon, 02 Dec 2024 04:50:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 6 posted to Appian Knowledge Base by addam.dinh on 12/2/2024 4:50:37 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two&lt;span style="font-weight:400;"&gt;&amp;nbsp;or more transactions are attempting to access the same resource; however neither is able to complete because each transaction is blocking the resource from the other. Additionally any other activities attempting to access the resource will be blocked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra options&amp;quot; &amp;gt; &amp;quot;Full texts&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img style="max-height:197px;max-width:477px;" alt=" " height="197" src="/resized-image/__size/954x394/__key/communityserver-wikis-components-files/00-00-00-00-13/deadlocks-phpmyadmin.png" width="477" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks, you should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If there are no deadlocks, you won&amp;#39;t see any competing transactions and will get the default output.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;-&lt;span&gt;----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;BACKGROUND THREAD&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-----------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread loops: 5 srv_active, 0 srv_shutdown, 2092029 srv_idle&lt;br /&gt;&lt;/span&gt;&lt;span&gt;srv_master_thread log flush and writes: 2092023&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SEMAPHORES&lt;br /&gt;&lt;/span&gt;&lt;span&gt;----------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;/span&gt;&lt;span&gt;TRANSACTIONS&lt;br /&gt;&lt;/span&gt;&lt;span&gt;------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1ie2q8fls0"&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/5</link><pubDate>Mon, 04 Nov 2024 01:04:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 5 posted to Appian Knowledge Base by addam.dinh on 11/4/2024 1:04:30 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two or more transactions are waiting for one another to give up their locks. This means that two or more entities are blocking some sources, and none are able to finish as they are blocking the sources in a cyclical manner.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra Options&amp;quot; &amp;gt; &amp;quot;Full Text&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;You should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This confirms that the site is encountering deadlocks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;4. Identify the details of both transactions in the deadlock&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/4</link><pubDate>Fri, 01 Nov 2024 04:05:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 4 posted to Appian Knowledge Base by addam.dinh on 11/1/2024 4:05:22 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two or more transactions are waiting for one another to give up their locks. This means that two or more entities are blocking some sources, and none are able to finish as they are blocking the sources in a cyclical manner.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you have to select &amp;quot;Full Text&amp;quot; to find details of the latest deadlock.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Go to &amp;quot;Extra Options&amp;quot; &amp;gt; &amp;quot;Full Text&amp;quot; &amp;gt; &amp;quot;Go&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;You should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This confirms that the site is encountering deadlocks&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="font-weight:400;"&gt;4. Identify the details of both transactions in the deadlock&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;&lt;span style="font-weight:400;"&gt;&lt;/span&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/3</link><pubDate>Wed, 28 Aug 2024 04:16:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 3 posted to Appian Knowledge Base by addam.dinh on 8/28/2024 4:16:52 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two or more transactions are waiting for one another to give up their locks. This means that two or more entities are blocking some sources, and none are able to finish as they are blocking the sources in a cyclical manner.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you may need to scroll up to find details of the latest deadlock.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;You should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This confirms that the site is encountering deadlocks&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="font-weight:400;"&gt;4. Identify the details of both transactions in the deadlock&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="padding-left:30px;"&gt;&lt;span style="font-weight:400;"&gt;&lt;/span&gt;Date and Time of the latest deadlock (US local time)&amp;nbsp;&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Thread ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query ID&lt;/li&gt;
&lt;li style="padding-left:30px;"&gt;Query details&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/2</link><pubDate>Wed, 28 Aug 2024 02:06:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 2 posted to Appian Knowledge Base by addam.dinh on 8/28/2024 2:06:35 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two or more transactions are waiting for one another to give up their locks. This means that two or more entities are blocking some sources, and none are able to finish as they are blocking the sources in a cyclical manner.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you may need to scroll up to find details of the latest deadlock.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;You should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This confirms that the site is encountering deadlocks&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="font-weight:400;"&gt;4. Identify the details of both transactions in the deadlock&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-411] KB-XXXX How to troubleshoot Database Deadlocks</title><link>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks/revision/1</link><pubDate>Wed, 28 Aug 2024 02:05:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41cc3eac-856d-43a9-8f76-58556c870b16</guid><dc:creator>addam.dinh</dc:creator><comments>https://community.appian.com/support/w/kb/3579/kb-2331-how-to-troubleshoot-database-deadlocks#comments</comments><description>Revision 1 posted to Appian Knowledge Base by addam.dinh on 8/28/2024 2:05:51 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article details how to identify and remediate MariaDB database deadlocks in Appian.&lt;/p&gt;
&lt;p&gt;Database deadlocks occur when two or more transactions are waiting for one another to give up their locks. This means that two or more entities are blocking some sources, and none are able to finish as they are blocking the sources in a cyclical manner.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This KB is for customers with Appian Cloud Maria DB.&amp;nbsp;Customers with self-managed databases will need to contact their Database Administrator.&lt;/p&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;You can identify database deadlocks from &lt;strong&gt;tomcat-stdOut.log&amp;nbsp;&lt;/strong&gt;in the&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&amp;nbsp;&lt;/code&gt;&lt;/span&gt;directory.&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Error&lt;/span&gt;&lt;span style="font-weight:400;"&gt; details: Deadlock found when trying to lock; &lt;/span&gt;&lt;span style="font-weight:400;"&gt;try &lt;/span&gt;&lt;span style="font-weight:400;"&gt;restarting transaction&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;Caused by: org.springframework.dao.DeadlockLoserDataAccessException... Deadlock found when trying to get lock; try restarting transaction..&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;As a user with Database Administrator privileges, access the Cloud Database through the navigation menu.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;In phpMyAdmin, navigate to the Appian database using the Databases tab in the toolbar.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;View the InnoDB status by running the following stored procedure:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.showEngineInnodbStatus()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The output of this stored procedure will be quite large, so you may need to scroll up to find details of the latest deadlock.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;You should see two competing transactions listed as deadlocks.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;------------------------&lt;br /&gt;LATEST DETECTED DEADLOCK&lt;br /&gt;------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS &amp;lt;DEADLOCK_ID&amp;gt;&lt;br /&gt;*** (1) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION_DETAILS&amp;gt;&lt;br /&gt;&lt;br /&gt;*** (2) TRANSACTION:&lt;br /&gt;&amp;lt;TRANSACTION DETAILS&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This confirms that the site is encountering deadlocks&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="font-weight:400;"&gt;4. Identify the details of both transactions in the deadlock&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;If there are no deadlocks listed in the InnoDB status output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Try the following stored procedures to see other types of database locks&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;CALL AppianProcess.databaseLocks()&lt;br /&gt;CALL AppianProcess.metadataLocks()&lt;/span&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1i6avdgks0"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>