I got the following error while running the baseline update:

12.06.19 16:29:12] INFO: Starting baseline CAS crawl with id ‘MyAppen-last-mile-crawl’.

[12.06.19 16:29:12] SEVERE: Error starting baseline crawl ‘MyAppen-last-mile-crawl’.

Occurred while executing line 11 of valid BeanShell script:

[[

 

8|      Dgidx.cleanDirs();

9|

10|      // run crawl and archive any changes in dvalId mappings

11|      CAS.runBaselineCasCrawl(“MyAppen-last-mile-crawl”);

12|      CAS.archiveDvalIdMappingsForCrawlIfChanged(“MyAppen-last-mile-crawl”);

13|

14|      // archive logs and run the indexer

 

 

]]

And following is the error in cas-service.log file :

Caused by: com.endeca.itl.executor.FatalExecutionException: Error retrieving precedence rules from the config repository

at com.endeca.itl.executor.output.mdex.MdexConfiguration.retrieveAndValidatePrecedenceRules(MdexConfiguration.java:292)

at com.endeca.itl.executor.output.mdex.MdexConfiguration.<init>(MdexConfiguration.java:159)

at com.endeca.itl.executor.output.mdex.FullMdexOutputHandler.<init>(FullMdexOutputHandler.java:131)

at com.endeca.itl.executor.output.mdex.MdexOutputSink.prepareForAcquisition(MdexOutputSink.java:145)

at com.endeca.itl.executor.Pipeline.start(Pipeline.java:159)

… 53 more

Caused by: org.codehaus.jackson.JsonParseException: Unexpected character (‘<‘ (code 60)): expected a valid value (number, String, array, object, ‘true’, ‘false’ or ‘null’)

at [Source: org.apache.http.conn.EofSensorInputStream@312795cf; line: 6, column: 2]

at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432)

at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)

at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)

at org.codehaus.jackson.impl.Utf8StreamParser._handleUnexpectedValue(Utf8StreamParser.java:2090)

at org.codehaus.jackson.impl.Utf8StreamParser._nextTokenNotInObject(Utf8StreamParser.java:606)

Fix
As it says error retrieving precedence rules. That means precedence rules config is not setup correctly. If you have an export of precedence rules from the current app or some other app you want to replicate precedence rules from and run following

<app-folder>/control/runcommand.sh IFCR importContent precedenceRules /tmp/import/precedenceRules/

Else you can create one fresh refer to following document : Endeca Precedence Rules to create the precedence rules directory and then import using command I mentioned above.

 

Thanks,

Mayank Batra

Leave a Reply