Actionable error message when attempting to inspect
an unprivileged Agent as a privileged user
#4888
Labels
enhancement
New feature or request
good first issue
Good for newcomers
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
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 #4889 comments:
install
s an Agent using--unprivileged
, then tries toinspect
this Agent with a privileged user, an error message with the suggestions in Actionable error message when attempting toenroll
an unprivileged Agent as a privileged user #4889 (comment) is shown to the user.The text was updated successfully, but these errors were encountered: