-
Notifications
You must be signed in to change notification settings - Fork 82
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
8.5.0-SNAPSHOT Endpoint can't connect to ES #1877
Comments
We are seeing the same problem with Beats started by agent, with a similar log message that an API key has been invalidated. This is not specific to Endpoint. |
@AndersonQ can we test reverting #1684? If that fixes the issue, we may just want to do that to unblock other teams while we figure out the real fix. |
+1 to reverting #1684 while we debug this, we need to unblock others and we will not want this bug in the first 8.5.0 build candidate scheduled to be created on Wednesday. |
I have no problem reverting it, that's a good idea. I'm still trying to reproduce it to debug, but reverting it is also a way to check if it's indeed the root cause of the issue :) |
2 PRs need to be reverted, in the right I guess. I'll open the PRs to revert it |
The QA team on our side encountered this bug, but found an odd workaround. They add os_query to the Agent and then Endpoint seems to install. I'm not sure if that helps with finding the root cause. More about the bug and potential workaround here: elastic/kibana#141036 |
When installing the latest 8.5.0-SNAPSHOT Agent and Endpoint, it cannot connect to Elasticsearch.
The version I used in this bug report: https://snapshots.elastic.co/8.5.0-c7913db3/downloads/beats/elastic-agent/elastic-agent-8.5.0-SNAPSHOT-linux-arm64.tar.gz
There are two somewhat different scenarios depending on the protocol you use when installing the Agent.
Using
--insecure
flag when installing AgentThe first scenario I encountered was when I was doing local development and testing. I used the
--insecure
flag when installing the Agent on my host to connect to my insecure local development server.When installing, I can see in the logs that the Endpoint cannot connect to Elasticsearch. Find a snippet below, full logs attached.
I can see in the policy yaml pulled from the host itself that there is ES connection information. Using this same Policy, I can successfully connect
8.4.0
Agent/Endpoint. Find a snipped below, full policy yml attached.endpoint.log.zip
elastic-endpoint.yml.zip
Connecting to a secure cloud instance (no
--insecure
flag)I also was unable to get the Endpoint to connect to ES when connecting to a secure cloud instance.
I tried to reproduce again on a secure cloud server to eliminate my insecure, local
http
connection and I'm still seeing rhe same end result of data not making it to my stack, although the logs have a bit more context surrounding invalidated API keys.Endpoint Version
8.5.0-SNAPSHOT
endpoint-secure-connection.log.zip
elastic-endpoint-secure-connection.yml.zip
For confirmed bugs, please report:
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: