Gravatar for swamcts@gmail.com

Question by swamcts, Nov 11, 2016 12:47 PM

coveo search api for mirror

Hi,

I installed ces master on X1 server and ces mirror on X2.

Coveo search api on X1 and X2.

1) Coveo search api for x1 is working properly, how to configure coveo search api for X2 i.e for ces mirror.

http://x1:8080/#t=All&sort=relevancy - working

http://x2:8080/#t=All&sort=relevancy - not working

2) IF master goes down, is index and query will hit from mirror?

3) I want to set up load balance for coveo seach api url, please tell how to do? http://x1:8080/#t=All&sort=relevancy

Thanks Swami

1 Reply
Gravatar for slangevin@coveo.com

Answer by Simon, Nov 11, 2016 1:09 PM

Hi,

1) The search API needs to be installed on the mirror as well (or could be installed on another server, but needs to point to the mirror)

The Mirror need to have the Search web server working: https://onlinehelp.coveo.com/en/ces/7.0/administrator/configuringthesearchwebservicefora_mirror.htm

Then the Search API can point on that mirror. To do so you need to configure the Search API configuration file: https://developers.coveo.com/display/SitecoreV4/Understanding+the+Search+API's+configuration+file+(config.yml)+-+On-Premises

Then you can configure your configuration file (Coveo Search Provider REST Custom) in Sitecore to point to that Search API.

2) If configured correctly, yes 3) Have the Sitecore configuration file to point to the load balancer on 8080. Then redirect to the servers in your load balancing cluster following the same port.

Gravatar for swamcts@gmail.com

Comment by swamcts, Nov 11, 2016 3:05 PM

Hi,

After applying this, i restarted the service in master & mirror, but mirror stops automatically after few minutes.

Please suggest. https://onlinehelp.coveo.com/en/ces/7.0/administrator/configuringthesearchwebservicefora_mirror.htm

Gravatar for slangevin@coveo.com

Comment by Simon, Nov 11, 2016 3:18 PM

Any errors in the Coveo system logs or the windows event viewer logs?

Gravatar for swamcts@gmail.com

Comment by swamcts, Nov 11, 2016 4:07 PM

Error:

12345701296006757|WARNING|2016-11-11|16:01:48|0|The security provider "Active Directory" has encountered an exception: class CSP::SecurityInvalidUserGroupException: Unable to convert '<Member name="domain\user1" type="User" />' into SID. Error message: class CGLWindows::WindowsInvalidUserGroupException: (domain\user1):  ! LookupAccountNameW( , CABLE\adaile200) failed: No mapping between account names and security IDs was done. [0x00000534] ! LookupAccountNameW(domain\user1) failed: The RPC server is unavailable. [0x000006ba].||
212345701296006758|WARNING|2016-11-11|16:01:48|0|Invalid security domain\user1 in administrator roles.||
212345701296006759|WARNING|2016-11-11|16:01:53|0|The security provider "Active Directory" has encountered an exception: class CSP::SecurityInvalidUserGroupException: Unable to convert '<Member name="domain\user1" type="User" />' into SID. Error message: class CGLWindows::WindowsInvalidUserGroupException: domain\user1):  ! LookupAccountNameW( , domain\user1) failed: No mapping between account names and security IDs was done. [0x00000534] ! LookupAccountNameW(domain\user1) failed: The RPC server is unavailable. [0x000006ba].||
212345701296006760|WARNING|2016-11-11|16:01:53|0|Invalid security domain\user1 in administrator roles.||
212345701296006761|ERROR|2016-11-11|16:01:53|0|class CGLFile::FileCannotOpenException: An error occurred while opening the read-only file "D:\CES7\Config\Certificates\cert-ces.pem". (The system cannot find the path specified. [0x00000003])||
212345701296006762|IMPORTANT|2016-11-11|16:01:53|0|Stopping the index mirror: default/CesMirror2||
212345701296006763|WARNING|2016-11-11|16:01:53|0|Error while expanding group <Member name="cable\chqcdc-neto-asd \S-1-5-21-2052111302-448539723-1801674531-931548\" type="Group" /> (class CSP::SecurityException: Shutdown in progress - Call (ExpandGlobalGroup) aborted.)||
212345701296006770|IMPORTANT|2016-11-11|16:01:55|0|The index mirror (default/CesMirror2) is stopped.||
Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Nov 11, 2016 5:26 PM

Your problem is right here:

An error occurred while opening the read-only file "D:\CES7\Config\Certificates\cert-ces.pem". (The system cannot find the path specified.
Gravatar for slangevin@coveo.com

Comment by Simon, Nov 11, 2016 5:39 PM

Jeff is right, when configuring the Search Service for the mirrors, leave all the path empty. I believe there might be a problem with he help page, the Certificate , Certificate Private Key and Trusted CAs fields can be left empty

Gravatar for swamcts@gmail.com

Comment by swamcts, Nov 13, 2016 9:07 AM

1) While configuring for search service for mirror For the Certificate , Certificate Private Key and Trusted CAs fields actually i have used master certificates folders is right or not?

2) As you said, While configuring for search service for mirror, shall i enable SSL or not? if SSL enable still shall i leave empty the the Certificate , Certificate Private Key and Trusted CAs fields .?

Gravatar for swamcts@gmail.com

Comment by swamcts, Nov 13, 2016 11:30 AM

Then the Search API can point on that mirror. To configure the Search API configuration file: https://developers.coveo.com/display/SitecoreV4/Understanding+the+Search+API's+configuration+file+(config.yml)+-+On-Premises

What info needs to configure in config.yaml, for the following parameters server:

  • uri: is master or mirror url?
  • serverCertificatePath: is master or mirror \cert-ca.pem file?
  • clientCertificatePath: is master or mirror path? which file?
  • secret key: is master or mirror secret key?

Please let me know ur response.

Gravatar for swamcts@gmail.com

Comment by swamcts, Nov 15, 2016 10:26 AM

Thanks for the response its working after implementing as you recommended.

Ask a question