Monday, October 18, 2021

Coveo for Sitecore is throwing ACCESS_DENIED

 Dear future me and everyone who is in the same boat,

So you restored a master database from another environment and now are trying to get Coveo working on CM. You open the Indexing Manager and it tells you that there is something wrong with your indexes. You go to Coveo Cloud Organization tab and try to login into Coveo Cloud, but get a 404 error because the Login button has a relative link to your CM instance instead of Coveo cloud url. When you look at the logs, you see the ACCESS_DENIED error.

The issue is with the encryption key and the fact that it is different. The key is stored in the master database in Properties table, and when you restored the database, the API key that your CM passed to Coveo is no longer valid.

To fix this you'll have to create a temporary API Key in Coveo Cloud, get your CM working again, login into Coveo Could again, which will fix the key in your config files. Then you'll be able to do delete the temporary key and proceed with copying the config file to CDs if you need to. 

Coveo Support provided instructions on how to create a temporary key in the following article:

https://connect.coveo.com/s/article/4739

No comments:

Post a Comment