Apache 无法访问Solr core

Apache 无法访问Solr core,apache,drupal,solr,drupal-8,Apache,Drupal,Solr,Drupal 8,我安装了search_api版本:8.x-1.14 并在我的服务器上搜索8.x-3.3和solr-7.7.2版本的api。 然后执行文档中提到的以下步骤 有什么建议吗,谢谢 mkdir/server/solr/drupal mkdir/server/solr/drupal/conf 触摸drupal/core.properties echo“name=drupal”>/server/solr/drupal/core.properties 根据需要创建搜索API服务器 将搜索API Solr搜索

我安装了search_api版本:8.x-1.14 并在我的服务器上搜索8.x-3.3和solr-7.7.2版本的api。 然后执行文档中提到的以下步骤

有什么建议吗,谢谢

  • mkdir/server/solr/drupal
  • mkdir/server/solr/drupal/conf
  • 触摸drupal/core.properties
  • echo“name=drupal”>/server/solr/drupal/core.properties
  • 根据需要创建搜索API服务器
  • 将搜索API Solr搜索模块设置到core的conf目录时为我创建的config.zip解压缩
  • bin/solr启动-强制
在启动solr服务器(不使用-force)之前,将显示以下消息:

*** [WARN] *** Your open file limit is currently 1024.
 It should be set to 65000 to avoid operational disruption.
 If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
*** [WARN] ***  Your Max Processes Limit is currently 31862.
 It should be set to 65000 to avoid operational disruption.
 If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
WARNING: Starting Solr as the root user is a security risk and not considered best practice. Exiting.
         Please consult the Reference Guide. To override this check, start with argument '-force'
在drupal上创建服务器时出现以下错误:

Server Connection   The Solr server could be reached.
Core Connection The Solr core could not be accessed. Further data is therefore unavailable.
Configured Solr Version 7.0.0
Detected Solr Version   7.7.2
Additional information  An error occurred while trying to retrieve additional information from the Solr server: Solr endpoint http://x.x.x.x:8983/ internal error.
关于solr日志:

org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core drupal: Error loading solr config from /var/www/solr-7.7.2/server/solr/drupal/conf/solrconfig.xml

我试图创建一个solr用户,因为我了解到运行solr作为问题的根本原因。但是,当我以solr用户身份运行它时,由于权限被拒绝,我无法执行许多步骤。

您是否检查了您的
错误日志
文件?或
管理/报告/dlog
?(以前没有执行过solr。)solr日志应显示有关无法加载配置的实际原因的更详细信息。可能是因为字段类型无效。@MatsLindh solr日志显示此错误“org.apache.solr.common.SolrException:未定义的字段哈希”。复制给定的配置文件夹并将其解压到核心配置文件夹后会显示此错误。请找出该
散列
字段的引用位置,并找出其未正确加载的原因。此外,您应该将这些扩展的错误消息添加到问题本身,以便其他人可以随时阅读。您是否检查了
错误日志
文件?或
管理/报告/dlog
?(以前没有执行过solr。)solr日志应显示有关无法加载配置的实际原因的更详细信息。可能是因为字段类型无效。@MatsLindh solr日志显示此错误“org.apache.solr.common.SolrException:未定义的字段哈希”。复制给定的配置文件夹并将其解压到核心配置文件夹后会显示此错误。请找出该
散列
字段的引用位置,并找出其未正确加载的原因。此外,您应该将这些扩展的错误消息添加到问题本身,以便其他阅读它的人可以随时使用它们。
org.apache.solr.common.SolrException: undefined field hash
Error waiting for SolrCore to be loaded on startup
HttpSolrCall
null:org.apache.solr.core.SolrCoreInitializationException: SolrCore 'drupal' is not available due to init failure: Could not load conf for core drupal: Error loading solr config from /var/www/solr-7.7.2/server/solr/drupal/conf/solrconfig.xml