使用 cx recipe 安装 Hybris Commerce Cloud 之后,遇到 indexer workder failed 错误
這個錯誤導致我在 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
at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.runWorkers(DefaultIndexerStrategy.java:145) ~[solrfacetsearchserver.jar:?]
at 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.HttpSolrClientRemoteSolrException:Errorfromserverathttps://localhost:8983/solr:SolrCore′masterpowertoolsProductdefault′isnotavailableduetoinitfailure:FailedtocreatenewManagedResource/schema/analysis/synonyms/enoftypeorg.apache.solr.rest.schema.analysis.ManagedSynonymGraphFilterFactoryRemoteSolrException: Error from server at https://localhost:8983/solr: SolrCore 'master_powertools_Product_default' is not available due to init failure: Failed to create new ManagedResource /schema/analysis/synonyms/en of type org.apache.solr.rest.schema.analysis.ManagedSynonymGraphFilterFactoryRemoteSolrException:Errorfromserverathttps://localhost:8983/solr:SolrCore′masterp?owertoolsP?roductd?efault′isnotavailableduetoinitfailure:FailedtocreatenewManagedResource/schema/analysis/synonyms/enoftypeorg.apache.solr.rest.schema.analysis.ManagedSynonymGraphFilterFactorySynonymManager due to: org.noggit.JSONParser$ParseException: JSON Parse Error: char=
Caused by: java.util.concurrent.ExecutionException: org.apache.solr.client.solrj.impl.HttpSolrClientRemoteSolrException:Errorfromserverathttps://localhost:8983/solr:SolrCore′masterpowertoolsProductdefault′isnotavailableduetoinitfailure:FailedtocreatenewManagedResource/schema/analysis/synonyms/enoftypeorg.apache.solr.rest.schema.analysis.ManagedSynonymGraphFilterFactoryRemoteSolrException: Error from server at https://localhost:8983/solr: SolrCore 'master_powertools_Product_default' is not available due to init failure: Failed to create new ManagedResource /schema/analysis/synonyms/en of type org.apache.solr.rest.schema.analysis.ManagedSynonymGraphFilterFactoryRemoteSolrException:Errorfromserverathttps://localhost:8983/solr:SolrCore′masterp?owertoolsP?roductd?efault′isnotavailableduetoinitfailure:FailedtocreatenewManagedResource/schema/analysis/synonyms/enoftypeorg.apache.solr.rest.schema.analysis.ManagedSynonymGraphFilterFactorySynonymManager 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 消息后:
就可以搜索產品并進行下單了:
更多Jerry的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的使用 cx recipe 安装 Hybris Commerce Cloud 之后,遇到 indexer workder failed 错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: f1 score计算_F1值(Formu
- 下一篇: 图集谷-写真集-爬虫-2.0