Windows本地Magento安装ElasticSearch未知503错误来自Elasticsearch null

dxxyhpgq  于 2023-01-08  发布在  ElasticSearch
关注(0)|答案(1)|浏览(182)

安装Magento 2.45在Windows 10本地安装。从管理面板我看到目录搜索索引通知。实际上通知说“一个或多个索引器无效。请确保您的Magento cron作业正在运行。”但它的Windows 10。做了一些在线搜索,并试图使用重新索引命令
MagentoAdminPanel

C:\M\xampp8.1\htdocs\magento2>php bin/magento indexer:reindex
Design Config Grid index has been rebuilt successfully in 00:00:00
Customer Grid index has been rebuilt successfully in 00:00:00
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Catalog Rule Product index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Stock index has been rebuilt successfully in 00:00:00
Inventory index has been rebuilt successfully in 00:00:00
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:01
**Catalog Search index process error during indexation process:
Unknown 503 error from Elasticsearch null**

甚至我得到了他的错误,当我试图安装Magento的样本数据库
我有两个目录的ElasticSearch早些时候,我删除了一个,并使用现有的一个安装Magento。
ElasticSearch在localhost:9200上运行良好。
在运行cmd的ElasticSearch中看到这些警告
enter image description here
请帮助如何使用ElasticSearch解决此问题。
尝试重新索引并删除ElasticSearch的旧目录,但仍收到503意外错误
从ElasticSearch日志中找到

path: /_alias/magento2_product_1, params: {name=magento2_product_1}
org.elasticsearch.discovery.MasterNotDiscoveredException: null
    at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.onTimeout(TransportMasterNodeAction.java:297) [elasticsearch-7.17.0.jar:7.17.0]
    at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-7.17.0.jar:7.17.0]
    at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-7.17.0.jar:7.17.0]
    at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:660) [elasticsearch-7.17.0.jar:7.17.0]
    at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.17.0.jar:7.17.0]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
    at java.lang.Thread.run(Thread.java:833) [?:?]
[2022-12-29T13:14:58,517][WARN ][o.e.c.c.ClusterFormationFailureHelper] [] master not discovered or elected yet, an election requires two nodes with ids [9vMxUNvOQe6K-uF-beID0Q, o0-gGk_2SquCXSYgS7n9WA], have only discovered non-quorum

还在elasticsearch.yml中尝试了以下设置,所有其他值均为default discovery.seed_hosts:false也没有用并已注解。

5uzkadbs

5uzkadbs1#

我解决了我的问题与其他论坛成员的建议,我从日志中观察到什么,并通过Elasticsearch文档.从AppData\local\temp\elasticsearch和geoipdirectories我确实看到两个文件夹,并从Elasticsearch日志中看到相同的相关数据..我停止了所有Magento Apache服务,删除了Elasticsearch目录以及AppData\local\temp\elasticsearch中的所有数据。提取Elasticsearch压缩文件到相同的Magento安装目录,如前所述。.启动ElasticSearch bat 文件(这一次的日志是不同的,并在AppData中创建了一个新的文件夹,并启动。.启动Magento服务,一切顺利。

相关问题