Open kaanyalti opened 4 weeks ago
cc: @ycombinator @cmacknz
Again do not use sudo
the Elastic Agent is not root.
I updated the title of this issue and added a Definition of Done to make this issue about improving the error message, based on a related discussion in https://github.com/elastic/elastic-agent/issues/4889. As for documentation, I've brought that to @kilfoyle's attention via https://github.com/elastic/ingest-docs/pull/1087#issuecomment-2159456944.
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)
Version: 8.14.0 Operating System: macos sonoma v14.5 Platform: arm64
While working on this issue comparing root and unprivileged elastic agents, I encountered an error with the
inspect
command when using unprivileged agent.Steps to Reproduce:
sudo ./elastic-agent install --unprivileged --url=<fleet url> --enrollment-token=<token>
sudo elastic-agent inspect
. You should see an error similar to what's shown belowDefinition of Done
Based on discussion in https://github.com/elastic/elastic-agent/issues/4889 comments:
install
s an Agent using--unprivileged
, then tries toinspect
this Agent with a privileged user, an error message with the suggestions in https://github.com/elastic/elastic-agent/issues/4889#issuecomment-2158635347 is shown to the user.