简体   繁体   English

Solr 9 未加载但安装正确,配置集生成问题 - Drupal

[英]Solr 9 not loading but installed correctly, config set generate issue - Drupal

I have installed solr 9.0.0 on Apache2 Ubuntu 18.04 vagrant box.我已经在 Apache2 Ubuntu 18.04 Z630823900C8BBA2C1 上安装了 solr 9.0.0。 after the solr installation on my drupal site the solr page looks as below:在我的 drupal 站点上安装 solr 之后,solr 页面如下所示:

在此处输入图像描述

But when trying to open the solr url on browser - http://192.168.33.93:8983/solr/#/solr_core I see the below error:但是当试图在浏览器上打开 solr url 时 - http://192.168.33.93:8983/solr#见下面的错误:

在此处输入图像描述

Also tried http://localhost:8983/solr/#/solr_core produces the same error.还尝试过 http://localhost:8983/solr/#/solr_core 产生相同的错误。 Further, upon clicking the "Get condig.zip" button I see this error - Drupal\search_api_solr\SearchApiSolrException: No config-set template found for Solr branch 9.x in Drupal\search_api_solr\Controller\SolrConfigSetController->getConfigFiles() (line 285 of /vagrant/web/modules/contrib/search_api_solr/src/Controller/SolrConfigSetController.php) .此外,单击“获取 condig.zip”按钮后,我看到此错误 - Drupal\search_api_solr\SearchApiSolrException: No config-set template found for Solr branch 9.x in Drupal\search_api_solr\Controller\SolrConfigSetController->getConfigFiles() (line 285 of /vagrant/web/modules/contrib/search_api_solr/src/Controller/SolrConfigSetController.php)

Any help on how the issue can be resolved?关于如何解决问题的任何帮助?

...Step 5 – Allow Apache Solr Public Access The default Apache Solr runs on localhost only. ...步骤 5 - 允许 Apache Solr 公共访问 默认 Apache ZDCDB64C465B9D12742A2EA 仅在 localhost8D12742A2EA4 上运行。 To allow the Solr server publically accessible over networks, edit the /etc/default/solr.in.sh configuration file.要允许通过网络公开访问 Solr 服务器,请编辑 /etc/default/solr.in.sh 配置文件。

sudo vim /etc/default/solr.in.sh Search for the SOLR_JETTY_HOST variable. sudo vim /etc/default/solr.in.sh 搜索 SOLR_JETTY_HOST 变量。 Uncomment it by removing the starting hash (#) symbol.通过删除起始 hash (#) 符号取消注释。 Set the value to “0.0.0.0”.将值设置为“0.0.0.0”。

read more in: https://tecadmin.net/how-to-install-apache-solr-on-ubuntu-22-04/阅读更多内容: https://tecadmin.net/how-to-install-apache-solr-on-ubuntu-22-04/

no meu caso eu configurei o firewall para liberar acesso a porta 8983 para a minha máquina, mas caso você esteja trabalhando em uma rede, você pode criar a regra que achar melhor! no meu caso eu configurei o firewall para liberar acesso a porta 8983 para a minha máquina, mas caso você esteja trabalhando em uma rede, você pode criar a regra que achar melhor!

Espero ter ajudado. Espero ter ajudado。 Abraço阿布拉索

I've experienced a similar issue with Solr 9 service started but no webpage, seems by default it binds to IPV6.我遇到了与 Solr 9 服务类似的问题,但没有网页,默认情况下它似乎绑定到 IPV6。 Disable ipv6 and edit the below adding the actual ip address.禁用 ipv6 并编辑下面添加实际的 ip 地址。

"Solr now binds to localhost network interface by default for better out of the box security. Administrators that need Solr exposed more broadly can change the SOLR_JETTY_HOST property in their Solr include (solr.in.sh/solr.in.cmd) file." “Solr 现在默认绑定到 localhost 网络接口,以获得更好的开箱即用安全性。需要更广泛地公开 Solr 的管理员可以更改其 Solr 包含(solr.in.sh/solr.in.cmd)文件中的 SOLR_JETTY_HOST 属性。”

if you installed as a service edit: /etc/default/solr.in.sh如果您安装为服务编辑:/etc/default/solr.in.sh

standalone: solr-9.0.0/bin/solr.in.sh独立:solr-9.0.0/bin/solr.in.sh

I am able to figure out the problem.我能够找出问题所在。 I was trying to install Solr 9 on Drupal 9.x which is not a possible thing.我试图在 Drupal 9.x 上安装 Solr 9,这是不可能的。 Drupal 9.x supported until solr 8. There was a config mismatch due to that. Drupal 9.x 支持到 solr 8。因此存在配置不匹配。 So I had to role back to solr 8 and re-upload correct configs, re-index my contents and everything worked correctly.所以我不得不回到 solr 8 并重新上传正确的配置,重新索引我的内容,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM