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
Unable to probe any host for Elasticsearch version #9550
Comments
Hey @Ghostbird, the issue is that Graylog is probing for the ES version used on startup. It goes through the list of configured nodes and gives up if none of them are up. Can you make sure that ES is available before GL is starting up? If not, you can set the |
@dennisoelkers Thanks for the quick reply. I saw the Update: I managed to get it working. It turned out that what I needed to know was right at the top here. Adding What I find most interesting is that the auto-probe mechanism actually worked once, and then it consistently failed, even with completely new docker containers. I guess this is mostly a problem for docker-compose file version 3 users, since that version demands that containers handle waits for dependency readiness internally. |
Good to hear that you managed to get it up and running! You are saying:
Do you have a pointer for me to read up on this? This might force us to change the mechanism to retry instead of back off and bail out. |
we might want to include I'll work something out as this is not super complicated. |
This comment, and the Moby issue comment linked therein give the best summary I could find. Moby is the core of Docker, in case you didn't know. I sure didn't TL;DR; |
Thanks a lot for the link. I will digest and decide if we should make some changes for one of the next versions. For now, you can stick with I am closing this issue for now. If you have any additional information, feel free to reopen it. |
Thanks a lot for the assistance. I'll stick with the |
I upgraded my docker-compose configuration to Elasticsearch 7.9.3 and Graylog 4.0
After fixing some other issues that occurred due to errors on my side, it started fine. Then I stopped it, to bring it up as a system service, but it didn't work. So I tried to run it manually again, and now every time it spews a stack trace telling me it cannot connect to ElasticSearch.
I've even removed all docker images and containers related to graylog and let docker-compose rebuild everything, but the error stays.
Expected Behavior
Graylog starts and connects to Elasticsearch 7 container.
Current Behavior
Graylog attempts to start, then spews a stack trace that starts with:
starting with:
…and ends with:
Possible Solution
I'm not sure, but can it be that it tries to connect to the elasticsearch container before it is fully up and running? Or that it tries to connect to the wrong endpoint? A few seconds after the termination messages this line appears in the log:
Steps to Reproduce (for bugs)
Run this docker compose file
Note: I have replaced GRAYLOG_PASSWORD_SECRET, GRAYLOG_ROOT_PASSWORD_SHA2, and GRAYLOG_HTTP_EXTERNAL_URI with the default values from the wiki.
Context
Upgrade from graylog 3 to 4, elasticsearch 6 to 7
Your Environment
Linux 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: