gpt4 book ai didi

docker - Akeneo docker安装Elasticsearch报错

转载 作者:行者123 更新时间:2023-12-02 11:29:37 29 4
gpt4 key购买 nike

我在安装Akeneo v2.3(使用docker)时遇到问题

我已经运行了以下位置的安装步骤: https://docs.akeneo.com/2.3/install_pim/docker/installation_docker.html直到:

docker-compose exec fpm bin/console --env=prod pim:install --force --symlink --clean

我在哪里收到错误:

Reset elasticsearch indexes

In StaticNoPingConnectionPool.php line 51:

No alive nodes found in your cluster

The command terminated with an error code: 1. Error during PIM installation. The command terminated with an error code: 1.

使用:docker-compose exec elasticsearch bash然后curl -X GET 'localhost:9200/?pretty'我可以看到elasticsearch服务正在运行并给出了积极回应:

{ "name" : "PEA3LJM", "cluster_name" : "docker-cluster",
"cluster_uuid" : "yOqBWRxwShKajvjwyTkf0A", "version" : { "number" : "5.5.3", "build_hash" : "9305a5e", "build_date" : "2017-09-07T15:56:59.599Z", "build_snapshot" : false, "lucene_version" : "6.6.0" }, "tagline" : "You Know, for Search" }

我做错了什么:(?

最佳答案

您可能忘记更新 index_hosts 参数,或者输入错误:在 app/config/parameters.yml 中,请务必更新这些值:

database_host: mysql
index_hosts: 'elastic:changeme@elasticsearch:9200'

(其他默认值都可以),然后清空缓存并恢复安装过程,它应该可以正常运行;)

关于docker - Akeneo docker安装Elasticsearch报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52761515/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com