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

MacOS install fails if /usr/local/bin directory doesn't exist. #2514

Closed
MSSP-BLKing opened this issue Apr 18, 2023 · 1 comment
Closed

MacOS install fails if /usr/local/bin directory doesn't exist. #2514

MSSP-BLKing opened this issue Apr 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@MSSP-BLKing
Copy link

If the /usr/local/bin directory is missing elastic agent fails to create the symlink and fails to install. The agent is not enrolled in fleet either.

  • Version: Elastic Agent 8.6.2 & 8.7.0
  • Operating System: MacOS Ventura 13.0
  • Steps to Reproduce:
  1. Download and extract 8.6.2 or 8.7.0 elastic agents.
  2. Expand archive.
  3. Verify that the bin directory under /usr/local is missing
  4. Run sudo ./elastic-agent install
  5. Note failure with error: Error: failed to create elastic-agent symlink (/usr/local/bin/elastic-agent): symlink /Library/Elastic/Agent/elastic-agent /usr/local/bin/elastic-agent: no such file or directory

To Fix: Create the bin directory with mkdir /usr/local/bin then rerun the installer.

@MSSP-BLKing MSSP-BLKing added the bug Something isn't working label Apr 18, 2023
@cmacknz
Copy link
Member

cmacknz commented Apr 19, 2023

Duplicate of #2487. This will be fixed in 8.7.1.

@cmacknz cmacknz closed this as completed Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants