<?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-1048 Errors related to Appian keystore during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1048 Errors related to Appian keystore during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup</link><pubDate>Wed, 20 May 2020 06:45:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 5/20/2020 6:45:12 AM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When starting the application server after a migration or an upgrade, one of the following errors are observed in the application server log:&lt;/p&gt;
&lt;pre&gt;FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;Caused by: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: An unexpected error occurred while trying to load the keystore. (APNX-1-4210-005)&lt;br /&gt;Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&amp;nbsp;&lt;/strong&gt;The&amp;nbsp;&lt;strong&gt;appian.keystore&lt;/strong&gt;&amp;nbsp;file cannot be shared between environments.&amp;nbsp;&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&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;p&gt;Last Reviewed: May 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, application server, upgrade, keystore&lt;/div&gt;
</description></item><item><title>KB-1048 Errors related to Appian keystore during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup/revision/7</link><pubDate>Wed, 20 May 2020 06:44:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Parmida Borhani on 5/20/2020 6:44:17 AM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When starting the application server after a migration or an upgrade, one of the following errors are observed in the application server log:&lt;/p&gt;
&lt;pre&gt;FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre class="row content_container"&gt;Caused by: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: An unexpected error occurred while trying to load the keystore. (APNX-1-4210-005)&lt;br /&gt;Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&amp;nbsp;&lt;/strong&gt;The&amp;nbsp;&lt;strong&gt;appian.keystore&lt;/strong&gt;&amp;nbsp;file cannot be shared between environments.&amp;nbsp;&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&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;p&gt;Last Reviewed: May 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, application server, upgrade, keystore&lt;/div&gt;
</description></item><item><title>KB-1048 Errors related to Appian keystore during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup/revision/6</link><pubDate>Wed, 20 May 2020 06:37:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Parmida Borhani on 5/20/2020 6:37:36 AM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When starting the application server after a migration or an upgrade, one of the following errors are observed in the application server log:&lt;/p&gt;
&lt;pre&gt;FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;pre class="row content_container"&gt;Caused by: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: An unexpected error occurred while trying to load the keystore. (APNX-1-4210-005)&lt;br /&gt;Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&amp;nbsp;&lt;/strong&gt;The&amp;nbsp;&lt;strong&gt;appian.keystore&lt;/strong&gt;&amp;nbsp;file cannot be shared between environments.&amp;nbsp;&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&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;p&gt;Last Reviewed: May 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, application server, upgrade, keystore&lt;/div&gt;
</description></item><item><title>KB-1048 Errors related to Appian keystore during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup/revision/5</link><pubDate>Wed, 20 May 2020 06:36:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Parmida Borhani on 5/20/2020 6:36:49 AM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When starting the application server after a migration or an upgrade, one of the following errors are observed in the application server log:&lt;/p&gt;
&lt;pre&gt;FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre class="row content_container"&gt;Caused by: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: An unexpected error occurred while trying to load the keystore. (APNX-1-4210-005)&lt;br /&gt;Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&amp;nbsp;&lt;/strong&gt;The&amp;nbsp;&lt;strong&gt;appian.keystore&lt;/strong&gt;&amp;nbsp;file cannot be shared between environments.&amp;nbsp;&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&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;p&gt;Last Reviewed: May 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, application server, upgrade, keystore&lt;/div&gt;
</description></item><item><title>KB-1048 Errors related to Appian keystore during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup/revision/4</link><pubDate>Wed, 20 May 2020 06:36:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 5/20/2020 6:36:05 AM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When starting the application server after a migration or an upgrade, one of the following errors are observed in the application server log:&lt;/p&gt;
&lt;pre&gt;FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;pre class="row content_container"&gt;Caused by: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: An unexpected error occurred while trying to load the keystore. (APNX-1-4210-005)&lt;br /&gt;Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&amp;nbsp;&lt;/strong&gt;The&amp;nbsp;&lt;strong&gt;appian.keystore&lt;/strong&gt;&amp;nbsp;file cannot be shared between environments.&amp;nbsp;&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&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;p&gt;Last Reviewed: May 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, application server, upgrade, keystore&lt;/div&gt;
</description></item><item><title>KB-1048 "The internal encryption module is in an inconsistent state" error returned during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup/revision/3</link><pubDate>Thu, 21 Feb 2019 00:26:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Parmida Borhani on 2/21/2019 12:26:42 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After performing a migration and starting the application server, the following entries are written to the server logs:&lt;/p&gt;
&lt;pre&gt;15:21:33,709 INFO [stdout] (ServerService Thread Pool -- 75) 2015-06-10 15:21:33,709 [ServerService Thread Pool -- 75] FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
15:21:33,720 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&amp;nbsp;&lt;/strong&gt;The&amp;nbsp;&lt;strong&gt;appian.keystore&lt;/strong&gt;&amp;nbsp;file cannot be shared between environments.&amp;nbsp;&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, upgrade&lt;/div&gt;
</description></item><item><title>KB-1048 "The internal encryption module is in an inconsistent state" error returned during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup/revision/1</link><pubDate>Tue, 14 Feb 2017 18:37:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 6:37:09 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After performing a migration and starting the application server, the following entries are written to the server logs:&lt;/p&gt;
&lt;pre&gt;15:21:33,709 INFO [stdout] (ServerService Thread Pool -- 75) 2015-06-10 15:21:33,709 [ServerService Thread Pool -- 75] FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
15:21:33,720 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&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: October 2015&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, upgrade&lt;/div&gt;
</description></item><item><title>KB-1048 "The internal encryption module is in an inconsistent state" error returned during application server startup</title><link>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup/revision/2</link><pubDate>Tue, 14 Feb 2017 13:43:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed65d68f-9ba5-44b9-9692-5b9ca6685c43</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/273/kb-1048-errors-related-to-appian-keystore-during-application-server-startup#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 1:43:46 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After performing a migration and starting the application server, the following entries are written to the server logs:&lt;/p&gt;
&lt;pre&gt;15:21:33,709 INFO [stdout] (ServerService Thread Pool -- 75) 2015-06-10 15:21:33,709 [ServerService Thread Pool -- 75] FATAL com.appiancorp.common.crypto.KeyStoreConfig - The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)
15:21:33,720 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/suite]] (ServerService Thread Pool -- 75) JBWEB000287: Exception sending context initialized event to listener instance of class com.appiancorp.common.config.ConfigurationLoader: com.appiancorp.common.config.FatalConfigurationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The internal encryption module is in an inconsistent state. The keystore password is not present in the primary data source. If migrating or restoring from backup, ensure that the primary data source contains all of the tables and data. (APNX-1-4210-004)&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; is a secured placeholder for keys and is encrypted during its creation (first application server startup that successfully connected to the primary database). The encrypted password used to secure the &lt;strong&gt;appian.keystore&lt;/strong&gt; is stored in the primary database in the &lt;code&gt;cfg&lt;/code&gt; table along with the character set and the initialization vector for the random part of the encryption phase. When the application server starts, the &lt;strong&gt;appian.keystore&lt;/strong&gt; is opened and validated. For this step to be successful, the password in the &lt;code&gt;cfg&lt;/code&gt; table must be the one originally used to encrypt the &lt;strong&gt;appian.keystore&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The error is caused by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file is missing from &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;appian.keystore&lt;/strong&gt; file cannot be opened/decrypted using the password from the &lt;code&gt;cfg&lt;/code&gt; table.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This error is common when users backload data from environment A to environment B and forget to copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory or to copy the primary database. Any of these omissions can lead to the inability to start the application server.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Copy the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/shared&lt;/code&gt; directory containing the original &lt;strong&gt;appian.keystore&lt;/strong&gt; from the previous installation to the upgraded installation and make sure the primary database corresponds to the environment.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

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