You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like force install might be broken on Windows.
If you run elastic-agent install on a device with installed agent it fails as agent is already installed. If you use -force it bypasses that check and sees an installed agent and calls uninstall on that agent. It finds the elastic-agent binary by using exec.LookPath(paths.BinaryName) but the elastic-agent dir isnt added to the path on Windows like it is on macOS and Linux
It looks like force install might be broken on Windows.
If you run
elastic-agent install
on a device with installed agent it fails as agent is already installed. If you use-force
it bypasses that check and sees an installed agent and calls uninstall on that agent. It finds the elastic-agent binary by usingexec.LookPath(paths.BinaryName)
but the elastic-agent dir isnt added to the path on Windows like it is on macOS and LinuxSee:
https://github.com/elastic/elastic-agent/blob/main/internal/pkg/agent/cmd/install.go#L352-L371
Likely related to: #4965
The text was updated successfully, but these errors were encountered: