New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generation of database broken in current master, ElasticSearch errors #6783
Comments
Hi @TheOnlyJoey, This error is not coming from the PIM, but from Elasticsearch, it seems it doesn't find any alive nodes . I'd suggest you, to have a look at the existing questions already raised on Elasticsearch forum concerning this error i.e: elastic/elasticsearch-php#519 Elasticsearch documentation: I hope this information helps you! Regards, |
Hey Karen, So i actually tried multiple version of ElasticSearch already and verified this was not a problem of my local version. The composer builds fine, so ElasticSearch has build and setup correctly. I tested on 2 different systems (Ubuntu 16.04 and Debian Sid) and both had the exact same issue regardless of setup. This error breaks Akeneo from generating a correct database, I think these types of errors are quite lethal a couple of days before release. |
Could you share with us your system file information? Thanks, |
Tested systems are (as mentioned) Ubuntu 16.04 with dependencies installed from the Akeneo documentation (from master) and Debian Sid with latest packages. Also tested on Ubuntu 17.04 initially. All systems use PHP7.1 as recommended. |
We think this could be a connection issue related as this error is usually appearing when using the default value for parameter 'index_hosts' ('localhost:9200'). The working config value is ':@:', by default 'elastic:changeme@localhost:9200' (edited) You can find the 'index_hosts' param in app/config/parameters.yml Regards, |
Changing the value to ':@:' results in:
Also as you can see in https://github.com/akeneo/pim-community-dev/blob/master/app/config/parameters.yml.dist#L13 the default value for index_hosts is 'localhost:9200' |
Hello @TheOnlyJoey Sorry there was a problem on the value's display in the previous comment. The working config value is: it is indeed by default 'elastic:changeme@localhost:9200' Regards, |
It seems that there is no warning or check if ElasticSearch is running, Composer seems to originally have killed the ElasticSearch service. It might be a good idea to make sure ElasticSearch is running in the console pim:installer:db script, since without this, the install will not complete. |
i am trying to get akeneo to run with an aws elastic search cluster... getting No alive nodes found in your cluster In app/config/parameters.yml i changed the index_host to the aws vpc endpoint - does anyone have any idea? |
In my case the index_host value in app/config/parameters.yml was:
So I removed the white space and now it works fine:
|
the solution was port:80... aws uses port 80... |
Hi, i wasted so much time to get this. localhost:9200 didnt work Dont know why akeneo isnt shipping out of the box working containers. take a look at the documentation in your parameters.yml.dist you have to set After this: start the container
and elasticsearch should work. So the conneciton string for ElasticSearch Head google chrome plugin is: elastic : default username for elasticsearch, nowhere set 9200: the used port is set in |
did you solve this already? |
@Rud5G yes... aws uses port 80... |
Please, can someone help me out? I facing the same challenge and I have been on it for hours without any progress. `In StaticNoPingConnectionPool.php line 53: No alive nodes found in your cluster The command terminated with an error code: 1. |
When using current master (checkout d5e1d01) generation of database (php bin/console pim:installer:db --env=prod) errors out on ElasticSearch and does not continue generation of database.
Installed using a combination of current information on master documentation on Ubuntu server 17.04
The text was updated successfully, but these errors were encountered: