-
Notifications
You must be signed in to change notification settings - Fork 12
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
1.19.2 error while sniffing nodes #852
Comments
Thanks for the issue @resoglas - we've seen that error a few times as well. In your case, is it just noise in the logs, or is it causing the connection to Elasticsearch from FusionAuth to fail all together? |
Thanks @resoglas . When testing with Docker locally and the new "sniffer" config, I had to tell Elasticsearch how to publish the port and host so it didn't use the internal Docker IP and port. Otherwise, it would connect over my specified connection, and then the node would tell the client about it's IP address which was not visible to FusionAuth. For example, old start command:
New command , adding
When running in Docker Compose, I didn't seem to need this when using the |
Thanks @robotdan . I've dug down some deeper and found in ES logs the following messages repeating over and over |
Also getting this after upgrading from 1.17.3 to 1.19.3 #857 |
I think this is due to the publish addresses of Elasticsearch. Here is a good article on the issue: https://www.elastic.co/blog/elasticsearch-sniffing-best-practices-what-when-why-how See the "But we can fix that" section. So if that fixes the issue, we can document this much better, or perhaps look into making this new Sniffer configuration optional as it doesn't play real nice with Docker. |
So I have changed the
I have got a successful sniff response containing 3 nodes:
And I am able to FusionAuth still seems to fail with the same error though... Is there something else I am missing or are there maybe more detailed logs I could find? Thanks! P. S. Maybe this elastic/cloud-on-k8s#3182 is somewhat related |
Yes, thanks for the link - that looks to be the same issue for sure. |
FusionAuth v1.18.8 seems to have no problem at all sniffing ES cluster using the following config (which is basically the same as with v1.19+):
ElasticSearch v7.8.1 nodes immediately respond with a successful index creation/updating message of The question being - did FusionAuth versions prior to 1.19 were not sniffing for ES cluster nodes? |
I have disabled the TLS configuration in ES cluster just to see that this is not a network error and now I am getting:
I now strongly believe that the Sniffer is missing appropriate configurations for Sniffer Scheme (HTTP or HTTPS) and Authentication for Username and Password. |
This is new in version 1.19.x.
Interesting, we can take a look at this. |
The sniffer config takes the rest client which we have already configured with credentials, so it seems this should be ok. We'll have to try to recreate. Maybe related: elastic/kibana#42224 |
In 1.19.8 (#893) the sniffer is off by default. This should resolve the issue for you. Please re-open if you encounter an error with the sniffer disabled. |
Thank you @robotdan :) |
Closing, please re-open if this is still an issue. |
error while sniffing nodes
Description
Fresh installation of fusionauth-app:1.19.2 with fresh PostgreSQL 11 and a fresh ES 7.8.1 (7.6.2 was tried also) cluster fails.
Affects versions
Steps to reproduce
kubectl apply -f https://download.elastic.co/downloads/eck/1.2.1/all-in-one.yaml
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Platform
Additional context
The text was updated successfully, but these errors were encountered: