Gravatar for nick.daigle@rbaconsulting.com

Question by Nick Daigle, Feb 6, 2019 8:27 PM

Receiving Activation failed: Error when activating Coveo for Sitecore 5

I recently installed Coveo for Sitecore 5 on an instance of Sitecore 9.0.2. After installing the package I went to https://[my instance]/coveo/command-center/index.html to activate using my cloud account. When I do I receive an Activation failed: Error message with no available details.

When digging into the problem I noticed the following endpoints:
https://[my instance]/coveo/api/config/v1/configure/endpoints

https://[my instance]/coveo/api/config/v1/activate

https://[my instance]/coveo/api/config/v1/organizations

are all returning 404. When I go to the API docs page it is also coming up empty. https://[my instance]/coveo/api/config/docs/index

Something is wrong with the install, but I can't figure out what. I'm not seeing any relevant errors in the Sitecore logs.

Gravatar for flguillemette@coveo.com

Comment by François Lachance-Guillemette, Feb 6, 2019 8:30 PM

Can you check in your Sitecore logs? All errors captured by the Coveo for Sitecore APIs log their error in the logs.

Could you also open the network tab before you get the `Activation failed: Error`, to see whether the request is properly executed?

1 Reply
Gravatar for nick.daigle@rbaconsulting.com

Answer by Nick Daigle, Feb 7, 2019 3:39 PM

I found the problem. I had tweaked the configs some time ago to speed up Sitecore's spin-up time. It was one of these that caused the problem. Specifically it was adding optimizeCompilations="true" to the compilation node in the web.config.

<compilation defaultLanguage="c#" debug="false" targetFramework="4.6.2" optimizeCompilations="true">

After removing that and restarting IIS the endpoints reappeared and I was able to activate Coveo.

Ask a question