Skip to content
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

Unsupported --namespace option results in socket error on Windows #5306

Open
renekalff opened this issue Aug 16, 2024 · 2 comments
Open

Unsupported --namespace option results in socket error on Windows #5306

renekalff opened this issue Aug 16, 2024 · 2 comments
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@renekalff
Copy link

#4822 introduced the unsupported option to install multiple agents. When performed on Windows the installation completes but the agent doesn't run properly.

The following error is shown in the elastic-agent log:
failed to create npipe listener: failed to listen on the named pipe \\\\.\\pipe\\elastic-agent-system: Access is denied.

It seems that both installed agents try to use the same pipe as a control socket. When the second agent is started manually with an alternative socket path by setting the "path.socket" option it runs as expected.

Tested on stack and agent version 8.15.0.

@renekalff renekalff added the bug Something isn't working label Aug 16, 2024
@pierrehilbert
Copy link
Contributor

Hey @renekalff
Running two Agents on the same host is only made for development purpose and not something intended to be run for production environment.
That being said, we should probably fix this as we may have folks developing on Windows.

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Aug 17, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

3 participants