前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用 cx recipe 安装 Hybris Commerce Cloud 之后,遇到 indexer workder failed 错误

使用 cx recipe 安装 Hybris Commerce Cloud 之后,遇到 indexer workder failed 错误

作者头像
Jerry Wang
发布2021-12-14 16:08:08
8420
发布2021-12-14 16:08:08
举报

这个错误导致我在 Accelerator Storefront 上无法进行产品搜索:

我确认 Solr server 已经成功启动了,监听在端口 8983 上:

重新通过 recipe 启动试试:

遇到一样的错误:

Caused by: de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Indexer worker failed. Max number of retries in total has been reached de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.runWorkers(DefaultIndexerStrategy.java:145) ~[solrfacetsearchserver.jar:?] de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.doExecute(DefaultIndexerStrategy.java:88) ~[solrfacetsearchserver.jar:?] … 12 more Caused by: java.util.concurrent.ExecutionException: org.apache.solr.client.solrj.impl.HttpSolrClient R e m o t e S o l r E x c e p t i o n :

E r r o r f r o m s e r v e r a t h t t p s : / / l o c a l h o s t : 8983 / s o l r :

S o l r C o r e ′ m a s t e r p o w e r t o o l s P r o d u c t d e f a u l t ′ i s n o t a v a i l a b l e d u e t o i n i t f a i l u r e : F a i l e d t o c r e a t e n e w M a n a g e d R e s o u r c e / s c h e m a / a n a l y s i s / s y n o n y m s / e n o f t y p e o r g . a p a c h e . s o l r . r e s t . s c h e m a . a n a l y s i s . M a n a g e d S y n o n y m G r a p h F i l t e r F a c t o r ySynonymManager due to: org.noggit.JSONParser$ParseException: JSON Parse Error: char=

Caused by: java.util.concurrent.ExecutionException: org.apache.solr.client.solrj.impl.HttpSolrClient R e m o t e S o l r E x c e p t i o n :

E r r o r f r o m s e r v e r a t h t t p s : / / l o c a l h o s t : 8983 / s o l r : S o l r C o r e ′ m a s t e r p o w e r t o o l s P r o d u c t d e f a u l t ′ i s n o t a v a i l a b l e d u e t o i n i t f a i l u r e :

F a i l e d t o c r e a t e n e w M a n a g e d R e s o u r c e / s c h e m a / a n a l y s i s / s y n o n y m s / e n o f t y p e o r g . a p a c h e . s o l r . r e s t . s c h e m a . a n a l y s i s . M a n a g e d S y n o n y m G r a p h F i l t e r F a c t o r ySynonymManager due to: org.noggit.JSONParser$ParseException: JSON Parse Error: char= INFO [update-apparel-ukIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-apparel-ukIndex-cronJob) [SolrIndexerJob] Started indexer cronjob. INFO [update-apparel-ukIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-apparel-ukIndex-cronJob) [SolrIndexerJob] Finished indexer cronjob. INFO [update-electronicsIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-electronicsIndex-cronJob) [SolrIndexerJob] Started indexer cronjob. INFO [update-apparel-deIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-apparel-deIndex-cronJob) [SolrIndexerJob] Started indexer cronjob. INFO [update-apparel-deIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-apparel-deIndex-cronJob) [SolrIndexerJob] Finished indexer cronjob. INFO [update-powertoolsIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-powertoolsIndex-cronJob) [SolrIndexerJob] Started indexer cronjob. INFO [update-backofficeIndex-CronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-backofficeIndex-CronJob) [SolrIndexerJob] Started indexer cronjob. INFO [update-backofficeIndex-CronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-backofficeIndex-CronJob) [AbstractIndexerStrategy] No active index found, FULL indexer operation must be performed before any other operation

https://answers.sap.com/questions/12767469/solr-issue.html

解决方案

到 Backoffice 去: (System > Search and Navigation > Facet Search Configurations).

做一次类型为 full 的 indexing:

看到 Indexing finished successfully 消息后:

就可以搜索产品并进行下单了:

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021-12-03 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 解决方案
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档