Akeneo docker 安装Elasticsearch报错

Akeneo docker installation Elasticsearch error

我在安装 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.

With: docker-compose exec elasticsearch bash then curl -X GET 'localhost:9200/?pretty' 我可以看到elasticsearch服务是运行ning并且给出了肯定的回应:

{ "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'

(其他默认值都可以),然后清空缓存并继续安装过程,应该 运行 没问题 ;)