-
Notifications
You must be signed in to change notification settings - Fork 144
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
Actionable error message when attempting to enroll
an unprivileged Agent as a privileged user
#4889
Comments
cc: @ycombinator @cmacknz |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
If you installed the Elastic Agent with You have a few options to make this work:
|
When we are unprivileged, can we put that suggestion directly in the error here? I don't think this is the last time we'll see this problem from users otherwise. |
Updating the error message to have a standard message about permissions would be helpful. Pointing to documentation with more information on permissions in this mode would also be helpful. |
I have the same feeling than @cmacknz here. |
I updated the title of this issue and added a Definition of Done to reflect the discussion about improving the error message. As for documentation, I've brought that to @kilfoyle's attention via elastic/ingest-docs#1087 (comment). |
enroll
an unprivileged Agent as a privileged user
Version: 8.14.0
Operating System: Ubuntu 24.04 LTS
Platform: arm64
While working on this issue comparing root and unprivileged elastic agents, I encountered an error with the
enroll
command when using unprivileged agent.Steps to Reproduce:
sudo ./elastic-agent install --unprivileged --url=<fleet url> --enrollment-token=<token>
sudo elastic-agent enroll --url=<fleet url> --enrollment-token=<token>
updating
sudo elastic-agent status
we get the following errorDefinition of Done
Based on discussion in the comments:
install
s an Agent using--unprivileged
, then tries toenroll
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: