+ 8

docker elasticsearch: no alive nodes found in your cluster?

I up the needed containers : ...\laradock>docker-compose up -d nginx mysql adminer elasticsearch Starting laradock_applications_1 ... Starting laradock_mysql_1 ... Starting laradock_applications_1 Starting laradock_applications_1 ... done Starting laradock_workspace_1 ... Starting laradock_workspace_1 ... done Starting laradock_php-fpm_1 ... Starting laradock_php-fpm_1 ... done Starting laradock_elasticsearch_1 ... Starting laradock_adminer_1 ... Starting bda7b5da7bea_laradock_nginx_1 ... Starting laradock_elasticsearch_1 Starting laradock_adminer_1 Starting bda7b5da7bea_laradock_nginx_1 ... done then found the elasticsearch Ip and curl it : ...\laradock>docker-compose exec workspace bash root@42d2f78c245a:/var/www# curl 172.19.0.3:9200 { "name" : "HDHFi0C", "cluster_name" : "laradock-cluster", "cluster_uuid" : "CabP7QbwTAul_UqRYEcKIQ", "version" : { "number" : "5.4.1", "build_hash" : "2cfe0df", "build_date" : "2017-05-29T16:05:51.443Z", "build_snapshot" : false, "lucene_version" : "6.5.1" }, "tagline" : "You Know, for Search" } also changed the .env in laravel project. then try to indexing but there was an error: root@42d2f78c245a:/var/www# php artisan scout:all Re-Index All type? (yes/no) [no]: > yes Creating index: something In StaticNoPingConnectionPool.php line 51: No alive nodes found in your cluster I can't underestand whats the problem !? It started to create index but then an error !! how can i solve it ?

17th Feb 2018, 10:03 AM
Ali
Ali - avatar
6 Antworten
+ 6
I'm reluctant to even attempt to assist here because the details to establish clear context is essential to troubleshoot this type of issue. Proceeding against my better judgment, here are a few questions to get started... 1. Have you confirmed at least one docker container node is running? 2. Are you certain the IP and port number are correct? 3. Are you certain the IP and port number are accessible from the terminal session? 4. Are you certain the terminal session is configured with the updated IP and port number? 5. Have you refreshed or restarted your terminal session since updating env variables? 6. Were you ever able to connect to your node using any other commands? I do agree this isn't the forum for this type of support.
8th Mar 2018, 6:08 PM
David Carroll
David Carroll - avatar
+ 4
Perhaps the many comments in this thread will lead you to your solution: https://github.com/elastic/elasticsearch-php/issues/519
8th Mar 2018, 6:09 PM
David Carroll
David Carroll - avatar
+ 3
@David Carroll story of GitHub...
8th Mar 2018, 7:00 PM
Peter David Carter
Peter David Carter - avatar
0
This is not the forum you are looking for... 😉😜
8th Mar 2018, 3:20 PM
Kerrash
Kerrash - avatar
0
Visit here to get more information on this. https://goo.gl/68Xj1t
4th Oct 2018, 9:56 AM
Azharuddin
0
"Thank you for addressing the 'docker elasticsearch: no alive nodes found in your cluster' issue. Your detailed explanation and troubleshooting steps are a game-changer for anyone encountering this common problem. It's great to have a resource that breaks down the complexities of Docker and Elasticsearch integration. Have you come across any other common pitfalls or challenges when working with these technologies? Sharing additional insights or experiences would be greatly appreciated. Your article has undoubtedly saved many developers from frustration. Looking forward to more helpful content from you!" learn more https://www.fixityedx.com/
15th Nov 2023, 6:05 AM
stalin stephen
stalin stephen - avatar