Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Drupal 尝试从Solr服务器检索其他信息时出错:“0”;401“;状态:未授权:未授权_Drupal_Solr_Http Status Code 404_Unauthorized - Fatal编程技术网

Drupal 尝试从Solr服务器检索其他信息时出错:“0”;401“;状态:未授权:未授权

Drupal 尝试从Solr服务器检索其他信息时出错:“0”;401“;状态:未授权:未授权,drupal,solr,http-status-code-404,unauthorized,Drupal,Solr,Http Status Code 404,Unauthorized,配置solr服务器后,可以访问solr服务器 Connection:The Solr server could be reached (latency: 4.6079622039795 ms). 但是额外的信息给了我: An error occurred while trying to retrieve additional information from the Solr server: "401" Status: Unauthorized: Unauthorized<html>

配置solr服务器后,可以访问solr服务器

Connection:The Solr server could be reached (latency: 4.6079622039795 ms).
但是额外的信息给了我:

An error occurred while trying to retrieve additional information from the Solr server: "401" Status: Unauthorized: Unauthorized<html><head><title>Apache Tomcat/7.0.28 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This request requires HTTP authentication ().</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.28</h3></body></html>.
尝试从Solr服务器检索附加信息时出错:“401”状态:未经授权:未经授权的数据缓存Tomcat/7.0.28-错误报告HTTP状态401-
键入状态报告

消息

说明此请求需要HTTP身份验证()。


apachetomcat/7.0.28。

我不知道问题出在哪里。有人知道如何解决这个问题吗?

这个错误是由Tomcat生成的,Tomcat是承载Solr(可能还有其他Java web应用程序)的应用程序服务器。它被配置为需要从您请求内容的主机获得经过身份验证的客户端(通过HTTP auth)(或用于访问Solr资源)


您必须重新配置Tomcat以允许连接到Solr或提供用户名/密码(…并确保您可以首先在自己的浏览器中访问Solr服务器的URL)。

我通过在以下部分插入用户名和密码解决了此问题:

基本HTTP身份验证 如果Solr服务器受基本HTTP身份验证保护,请在此处输入登录数据

但是,我得到一个新错误:

You are using an incompatible schema.xml configuration file. Please follow the instructions in the INSTALL.txt file for setting up Solr.