Akeneo Docker安装时出现Elasticsearch错误。

3
我在安装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" }

我做错了什么呢?
1个回答

3

你可能忘记更新index_hosts参数,或者打错了字:在app/config/parameters.yml中确保更新这些值:

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

如果其他默认值没问题,那么清空缓存并继续安装过程,应该就可以正常运行了 ;)


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接