0

我在运行 di-buildIndex 并在日志中出现错误时遇到问题:在 /install_commerce/logs/wc-dataimport-buildindex.log 的 wc-dataimport-buildindex.log 文件中

Apr 28, 2016 7:58:56 PM com.ibm.commerce.foundation.dataimport.util.DataImportHelper getLocalizedMessage(String, Object[])
FINER: ENTRY _INFO_DI_BUILDINDEX_EXIT_FAILURE_UNRECOVERABLE_ERROR [Ljava.lang.Object;@55815581
Apr 28, 2016 7:58:56 PM com.ibm.commerce.foundation.dataimport.util.DataImportHelper getLocalizedMessage(String, Object[])
FINER: RETURN Data import process was unsuccessful. An unrecoverable error has occurred.
Apr 28, 2016 7:58:56 PM com.ibm.commerce.foundation.dataimport.util.DataImportHelper printException
INFO: Data import process was unsuccessful. An unrecoverable error has occurred.
Throwable occurred: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1>
<p>The requested URL /solr/MC_10001_CatalogEntry_Unstructured_en_US/dataimport was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:459)at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:199)        at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)        at com.ibm.commerce.foundation.dataimport.process.util.SolrUtil.makeDataImportNoCleanCommand(SolrUtil.java:481)        at com.ibm.commerce.foundation.dataimport.process.DataImportProcessorMain.fullDataImport(DataImportProcessorMain.java:1773)        at om.ibm.commerce.foundation.dataimport.process.DataImportProcessorMain.executeDIH(DataImportProcessorMain.java:927)        at com.ibm.commerce.foundation.dataimport.process.DataImportProcessorMain.main(DataImportProcessorMain.java:424)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)        at java.lang.reflect.Method.invoke(Method.java:611)        at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:267)
Apr 28, 2016 7:58:56 PM com.ibm.commerce.foundation.dataimport.util.DataImportHelper getLocalizedMessage(String, Object[])
FINER: ENTRY _INFO_DI_BUILDINDEX_DEBUG_WARNING [Ljava.lang.Object;@15d715d7

此 buildIndex 步骤是配置 1. setupSearchIndex 2. preprocess 中的第三步,这两个步骤都成功运行。但是 buildindex 失败了。有人可以建议我在哪里做错了吗?

4

1 回答 1

0

构建索引失败,因为它无法访问 Solr url。您可以检查以下内容

  1. 确保您的服务器在运行脚本时已启动
  2. 确保 setupSearchIndex 已正确创建 Solr 核心。如果内核设置正确,您可以检查 WC_InsDir/Search 文件夹
  3. 如果您已将端口号 80 更改为其他端口号,则还需要在搜索配置中进行更改
于 2016-04-30T01:28:11.997 回答