<?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-1079 "ERROR GW1 restarted X times" error thrown for one or more engines in the checkengine script</title><link>https://community.appian.com/support/w/kb/303/kb-1079-error-gw1-restarted-x-times-error-thrown-for-one-or-more-engines-in-the-checkengine-script</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1079 "ERROR GW1 restarted X times" error thrown for one or more engines in the checkengine script</title><link>https://community.appian.com/support/w/kb/303/kb-1079-error-gw1-restarted-x-times-error-thrown-for-one-or-more-engines-in-the-checkengine-script</link><pubDate>Wed, 22 Feb 2017 20:59:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b1f438fe-80d7-4f26-b8c9-34521a63178c</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/303/kb-1079-error-gw1-restarted-x-times-error-thrown-for-one-or-more-engines-in-the-checkengine-script#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 2/22/2017 8:59:54 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After running &lt;strong&gt;checkengine.bat|sh&lt;/strong&gt;, users will notice the following error appear in the console window for one or more engines:&lt;/p&gt;
&lt;pre&gt;ERROR    GW1 restarted X times&lt;/pre&gt;
&lt;pre&gt;ERROR    GW2 restarted Y times&lt;/pre&gt;
&lt;p&gt;Per the error, an unexpected restart is shown in the &lt;strong&gt;gw_*.log&lt;/strong&gt; corresponding to the engine with the error:&lt;/p&gt;
&lt;pre&gt;[XXX] INFO .a.gw &amp;quot;State transition from [STANDALONE] to [DISCONNECTED]&amp;quot;
[XXX] INFO .a.gw.ssd &amp;quot;Connected to server&amp;quot;
[XXX] INFO .a.gw &amp;quot;State transition from [DISCONNECTED] to [ACTIVE JOIN]&amp;quot;
[XXX] INFO .a.gw.swj &amp;quot;No other gateways configured, switching to [STANDALONE]&amp;quot;
[XXX] INFO .a.gw &amp;quot;State transition from [ACTIVE JOIN] to [STANDALONE]&amp;quot;
&lt;/pre&gt;
&lt;p&gt;Around the same time, the following lines are printed in the &lt;strong&gt;db_*.log&lt;/strong&gt; corresponding to the engine with the error:&lt;/p&gt;
&lt;pre&gt;[XXX] {XXX.kdb 2527999} (Default) ERROR .a.s.loader &amp;quot;Failed to append transaction to DB (&amp;quot;XXX.kdb: The handle is invalid.&amp;quot;), will delay one second and retry once.&amp;quot;
[XXX] {XXX.kdb 2527999} (Default) ERROR .a.s.loader &amp;quot;Retry failed: &amp;quot;XXX.kdb: The handle is invalid.&amp;quot;&amp;quot;
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The gateway has restarted because another program on the engine server machine is trying to use or make changes to the KDB file specified in the error. Examples of such applications that would do this include (but are not limited to) backup software, antivirus software, and IDS.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Disable any application attempting to use or make changes to the KDB files (or simply remove the KDB files from the scope of those applications) and restart the Appian platform as prescribed in &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;Starting and Stopping Appian&lt;/a&gt;.&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: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, engines, scripts&lt;/div&gt;
</description></item></channel></rss>