Skip to content

Unable to install mac agent at custom path using --base-path and --unprivilege command. #4690

@amolnater-qasource

Description

@amolnater-qasource

Kibana Build details:

VERSION: 8.14.0 BC3
BUILD: 73762
COMMIT: 2a492e1625f24336f3259b2b8df62b2b18127e81

Artifact Link: https://staging.elastic.co/8.14.0-7c638435/downloads/beats/elastic-agent/elastic-agent-8.14.0-darwin-aarch64.tar.gz

Preconditions:

  1. 8.14.0-BC3 Kibana cloud environment should be available.

Steps to reproduce:

  1. Run agent install command with --base-path and --unprivileged.
  2. Observe agent installation failed with an error.

Expected Result:
User should be able to install mac agent at custom path using --base-path and --unprivilege command.

Screenshot:
image

CLI error:

Unprivileged installation mode enabled; this is an experimental and currently unsupported feature.
Elastic Agent will be installed at /Users/anater/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:
[== ] Service Started [3s] Elastic Agent successfully installed, starting enrollment.
[  =] Uninstalled [4s] Error uninstalling. Printing logs
2024-05-07T10:19:44.751Z	DEBUG	[install]	Loaded configuration from /Users/anater/Downloads/elastic-agent-8.14.0-darwin-aarch64/elastic-agent.yml
2024-05-07T10:19:44.751Z	DEBUG	[install]	Merged configuration from /Users/anater/Downloads/elastic-agent-8.14.0-darwin-aarch64/elastic-agent.yml into result
2024-05-07T10:19:44.751Z	DEBUG	[install]	Merged all configuration files from [/Users/anater/Downloads/elastic-agent-8.14.0-darwin-aarch64/elastic-agent.yml], no external input files
2024-05-07T10:19:44.751Z	DEBUG	[install.composable]	Starting controller for composable inputs
2024-05-07T10:19:44.751Z	DEBUG	[install.composable]	Started controller for composable inputs
2024-05-07T10:19:44.751Z	DEBUG	[install.composable]	Variable state changed for composable inputs; debounce started
2024-05-07T10:19:44.751Z	DEBUG	[install.composable.providers.kubernetes]	Kubernetes provider for resource pod skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-07T10:19:44.751Z	DEBUG	[install.composable]	kubernetes_secrets provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-07T10:19:44.751Z	DEBUG	[install.composable.providers.kubernetes]	Kubernetes provider for resource node skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-07T10:19:44.751Z	DEBUG	[install.composable]	Kubernetes leaderelection provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-07T10:19:44.752Z	INFO	[install.composable.providers.docker]	Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2024-05-07T10:19:44.852Z	DEBUG	[install.composable]	Computing new variable state for composable inputs
2024-05-07T10:19:44.852Z	DEBUG	[install.composable]	Stopping controller for composable inputs
2024-05-07T10:19:44.953Z	DEBUG	[install.composable]	Stopped controller for composable inputs
Error: failed to execute enroll command: fork/exec /usr/local/bin/elastic-agent: permission denied
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.14/fleet-troubleshooting.html

Metadata

Metadata

Assignees

Labels

QA:Ready For TestingCode is merged and ready for QA to validateTeam:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teambugSomething isn't workingimpact:highShort-term priority; add to current release, or definitely next.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions