Gravatar for laxmidivyar@gmail.com

Question by divyalakshmi, Dec 1, 2016 6:55 AM

Coveo Search Api service started and stopped suddenly

Hi, Whenever I try to start the service Coveo search API,it gets started and and stopped suddenly.Since I could not open remote server.Kindly help me.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Dec 1, 2016 7:50 AM

Have you looked at the Coveo Search API logs? Please check. It will likely tell you the reason of this behavior. If you do not understand, please copy the last few unique errors here for assistance.

Thanks

Gravatar for laxmidivyar@gmail.com

Comment by divyalakshmi, Dec 5, 2016 3:20 AM

Yes I have looked into it.Below are the lines which gets added when I tried to start the service

12:29:44.740 [main] INFO  com.coveo.search.api.server.Main$ - Coveo Search API (On-Premises) 0.37.0-SNAPSHOT b5b31513e337 2016-06-08 13:37 -0400 running on Java 1.8.0_45
12:29:44.756 [main] INFO  org.eclipse.jetty.util.log - Logging initialized @366ms
12:29:45.025 [main] DEBUG c.c.search.api.server.Main$$anon$1 - anon$1@158da8e{HTTP/1.1,[http/1.1]}{0.0.0.0:0} added HttpConnectionFactory@6aba2b86[HTTP/1.1]
12:29:45.027 [main] INFO  com.coveo.search.api.server.Main$ - Listening for HTTP on port 8080
12:29:45.027 [main] INFO  com.coveo.search.api.server.Main$ - Starting embedded Jetty server.
12:29:45.028 [main] INFO  org.eclipse.jetty.server.Server - jetty-9.3.z-SNAPSHOT
12:29:45.051 [main] INFO  o.scalatra.servlet.ScalatraListener - The cycle class name from the config: com.coveo.search.api.injection.LocalScalatraBootstrap
12:29:45.075 [main] INFO  o.scalatra.servlet.ScalatraListener - Initializing life cycle class: LocalScalatraBootstrap
12:29:45.355 [main] DEBUG c.c.s.api.endpoints.soap.SSLHelpers$ - Creating new SSL context
12:29:45.397 [main] INFO  c.c.s.a.i.SearchEndpointFactory - Creating new local endpoint with key: V7|default|CoveoIndex(main,https://localhost:52810,main,false,Unknown)|||false|false|false|
12:29:45.552 [main] ERROR o.scalatra.servlet.ScalatraListener - Failed to initialize scalatra application at 
java.lang.IllegalArgumentException: The shared secret size must be at least 256 bits
    at com.nimbusds.jose.crypto.MACProvider.<init>(MACProvider.java:93) ~[coveo-search-api-server.jar:na]
    at com.nimbusds.jose.crypto.MACProvider.<init>(MACProvider.java:108) ~[coveo-search-api-server.jar:na]
    at com.nimbusds.jose.crypto.MACSigner.<init>(MACSigner.java:80) ~[coveo-search-api-server.jar:na]
    at com.coveo.search.api.rest.authentication.CryptoTokenStore.<init>(CryptoTokenStore.scala:28) ~[coveo-search-api-server.jar:na]
    at com.coveo.search.api.injection.LocalScalatraBootstrap.createTokenStore(LocalScalatraBootstrap.scala:130) ~[coveo-search-api-server.jar:na]
    at com.coveo.search.api.injection.LocalScalatraBootstrap.init(LocalScalatraBootstrap.scala:72) ~[coveo-search-api-server.jar:na]
    at org.scalatra.servlet.ScalatraListener.configureCycleClass(ScalatraListener.scala:66) ~[coveo-search-api-server.jar:na]
    at org.scalatra.servlet.ScalatraListener.contextInitialized(ScalatraListener.scala:22) ~[coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:835) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:530) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:808) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:342) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:212) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.Server.start(Server.java:405) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.server.Server.doStart(Server.java:372) [coveo-search-api-server.jar:na]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [coveo-search-api-server.jar:na]
    at com.coveo.search.api.server.Main$.main(Main.scala:67) [coveo-search-api-server.jar:na]
    at com.coveo.search.api.server.Main.main(Main.scala) [coveo-search-api-server.jar:na]
1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Dec 5, 2016 9:27 AM

Your error message says:

The shared secret size must be at least 256 bits

This means your config.yml file needs to have a shared secret (tokens > sharedKey) of at least 32 characters (32 * 8 bits = 256 bits).

Note that you need to restart the service after a modification in the config.yml file.

Gravatar for laxmidivyar@gmail.com

Comment by divyalakshmi, Dec 7, 2016 2:18 AM

Hi,

Thank you so much for the help.Now the service is running.

But now in coveo diagnostic page,the Coveo Search REST Endpoint is not running. The error is:

The remote server returned an error: (403) Forbidden.

Also "Coveo Search Web Service, Coveo Security Provider,RabbitMQ" are not up. Each one is showing error.

Thanks

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Dec 7, 2016 7:08 AM

Please post your new problem as a separate question to keep this place clean. Thanks

Ask a question