-
Notifications
You must be signed in to change notification settings - Fork 160
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
MAC Agent gets unhealthy on adding Elastic Defend integration and endpoint service fails to install. #4302
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
I see we fail running the endpoint command: {"log.level":"info","@timestamp":"2024-02-21T05:38:28.866Z","log.logger":"component.runtime.endpoint-default.service_runtime","log.origin":{"file.name":"runtime/service.go","file.line":315},"message":"after check if endpoint service is installed, err: exit status 135","ecs.version":"1.6.0"} elastic-agent/pkg/component/runtime/service.go Lines 314 to 315 in bdd885c
Where the elastic-agent/specs/endpoint-security.spec.yml Lines 27 to 32 in bdd885c
@nfritts what would cause |
I don't have time to look further, but I'm pretty sure 135 is:
Any chance its running the ARM binary for some reason? or running the x86 binaries on an ARM mac? |
Hi @nfritts Thank you for looking into this. However, we never got any issues till 8.12.2 while installing x86_64 agent on ARM mac. 8.12.2-(Working fine): 8.13.0 Logs-Issue: Further, we confirm that with aarch64 artifact the issue is not reproducible and host is visible under Endpoints tab. Build details: Thanks! |
We need to figure out if this is a bug or not. We added code to detect if we were running an x86 binary under ARM or not for 8.13 and updated the package spec to prevent doing so under Windows. Mac is slightly different since we build a mac binary that can run on both and ship it in both versions of Agent. This might be an unexpected "bug" that is part of that change, but honestly it might be a good thing. running the x86 endpoint is going to be less performant on arm processors and we may want to avoid it. @ricardoungureanu what do you think? do we want the endpoint to run in the native CPU architecture? |
Confirmed. This is expected behavior, it is new in 8.13. |
Thank you for the confirmation @nfritts As MAC-ARM64 artifacts are working fine with ARM machine, we are closing this issue and marking as QA:Validated. Thanks!! |
Exit status 135 means endpoint is running on an emulated platform (for example x86 binary on an arm processor). Detection of this condition was added in 8.13, I don't believe endpoint supports this mode of operation any more. CC @nfritts |
I installed the Darwin agent. I took a look at the elastic-agent.spec.yml file and it doesn't mention Apple in the file. Not sure if that is an issue. Might try and pull down an earlier version to see what the parameters are. |
The usual cause for this error would be running the |
I fixed my issue by uninstalling the MacOS agent presented with the Fleet command and downloaded the ARM agent from Elastic. Then to install the ARM downloaded agent I used the same commands from the Fleet install. I do think Elastic should give the option for the ARM agent for Apple ARM when building the Fleet managed install. |
@EchoGangster thanks bud, it worked |
Kibana Build details:
Host OS: MAC
Preconditions:
Steps to reproduce:
Screenshot:

Expected Result:
Agent should remain healthy on adding Elastic Defend integration and should install endpoint service successfully.
Logs:
elastic-agent-diagnostics-2024-02-21T05-58-10Z-00.zip
What's working fine:
The text was updated successfully, but these errors were encountered: