Coveo SitecoreUsername, SitecorePassord and RabbitMQ username and password recurring error
I've installed Coveo for Sitecore a few weeks ago and have to keep repeatedly setting the Sitecore Username and Password and RabbitMQ username and password in order for the Diagnostics page to be all green. What happens is I set the information and everything works great, but after a period of time I receive the following error and must reset it. Any idea what may be resetting it?
Server Error in '/' Application. There was an error in the Coveo Index Configuration.: Either the SitecoreUsername or SitecorePassword configuration value is invalid. Please enter valid credentials. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Coveo.Framework.Exceptions.CoveoIndexConfigurationException: There was an error in the Coveo Index Configuration.: Either the SitecoreUsername or SitecorePassword configuration value is invalid. Please enter valid credentials.
This is usually caused by a provisioning mechanism to push the App_Config folder automatically. Do you have this type of process?
The reason is the following. We encrypt the passwords in the Coveo.SearchProvider.config and bind the key to the Sitecore instance where the password was set. This key is generated under the
\Data\Coveo folder. If the config file is modified, and the encryption changed, that key won't be able to read it.
So if you are provisioning, make sure to also push the encryption key.