-
Notifications
You must be signed in to change notification settings - Fork 143
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
Unable to install mac agent at custom path using --base-path
and --unprivilege
command.
#4690
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
@amolnater-qasource I just tested this on my Mac and I assume that your home directory Could you please retest choosing a I just tested on my machine using
and the install works correctly ➜ elastic-agent-8.15.0-SNAPSHOT-darwin-aarch64 git:(main) ✗ sudo ./elastic-agent install --unprivileged --base-path /tmp/install --url=<redacted> --enrollment-token=<redacted>
Unprivileged installation mode enabled; this is an experimental and currently unsupported feature.
Elastic Agent will be installed at /tmp/install/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y
[=== ] Service Started [3s] Elastic Agent successfully installed, starting enrollment.
[=== ] Enrolling Elastic Agent with Fleet [3s] enrollment command: /usr/local/bin/elastic-agent enroll --from-install --url https://997cfd1736434d5bb4fe8fcc21fbbe4d.fleet.us-west2.gcp.elastic-cloud.com:443 --enrollment-token M3N1QVU0OEJxYXVtOUt1aUlRNVI6V3ZNakxFT3JTTUtw
[== ] Waiting For Enroll... [4s] {"log.level":"info","@timestamp":"2024-05-07T18:44:33.525+0200","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":506},"message":"Starting enrollment to URL: https://997cfd1736434d5bb4fe8fcc21fbbe4d.fleet.us-west2.gcp.elastic-c
loud.com:443/","ecs.version":"1.6.0"}
[ ===] Waiting For Enroll... [6s] {"log.level":"info","@timestamp":"2024-05-07T18:44:35.620+0200","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":469},"message":"Restarting agent daemon, attempt 0","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-05-07T18:44:35.623+0200","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":287},"message":"Successfully triggered restart on running Elastic Agent.","ecs.version":"1.6.0"}
Successfully enrolled the Elastic Agent.
[ ===] Done [6s]
Elastic Agent has been successfully installed. |
Hi @pchila Thank you for looking into this issue and sharing the detailed information. We have revalidated this issue at our end and we are able to install the agent to the Please let us know if this is expected, so that we can close this issue. Thanks! |
Related issue: #4703 |
Hello @amolnater-qasource
The path where the agent is installed needs to be accessible for |
Will be covered as part of #4705. Closing. |
Kibana Build details:
Artifact Link: https://staging.elastic.co/8.14.0-7c638435/downloads/beats/elastic-agent/elastic-agent-8.14.0-darwin-aarch64.tar.gz
Preconditions:
Steps to reproduce:
--base-path
and--unprivileged
.Expected Result:
User should be able to install mac agent at custom path using
--base-path
and--unprivilege
command.Screenshot:
CLI error:
The text was updated successfully, but these errors were encountered: