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 agent installation command fails due to launchctl setenv #4953

Closed
Selutario opened this issue Dec 2, 2022 · 1 comment · Fixed by #4968, #4982 or #4983
Closed

macOS agent installation command fails due to launchctl setenv #4953

Selutario opened this issue Dec 2, 2022 · 1 comment · Fixed by #4968, #4982 or #4983
Assignees
Labels
type/bug Bug issue

Comments

@Selutario
Copy link

Wazuh Elastic Rev Security
4.4-alpha1 7.17 4400 Basic, ODFE, Xpack
Browser
Chrome, Firefox, Safari, etc

Description

During E2E testing in this issue, a problem appeared when trying to install an agent using the command suggested in the WUI:
image

$ curl -so wazuh-agent-4.4.0.pkg https://packages-dev.wazuh.com/pre-release/macos/wazuh-agent-4.4.0-1.pkg && sudo launchctl setenv WAZUH_MANAGER '192.168.1.140' WAZUH_AGENT_GROUP 'default' WAZUH_AGENT_NAME='macos' && sudo installer -pkg ./wazuh-agent-4.4.0.pkg -target /
Usage: launchctl setenv <<key> <value>, ...>

That bug was already reported in the past in issues like this:

Preconditions
None

Steps to reproduce

  1. Navigate to Add agent
  2. Click on macOS
  3. Click on Mojave
  4. Click on Intel
  5. Set IP addres
  6. Select group
  7. Copy suggested command
  8. Paste it on macOS agent.

Expected Result

  1. The environment variables are set correctly and the agent is installed.

Actual Result

  1. Environment variables cannot be set and the package is not installed.
@chantal-kelm
Copy link
Member

PR

#4968

Evidence

image

@snaow snaow changed the title MacOS agent installation command fails due to launchctl setenv macOS agent installation command fails due to launchctl setenv Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment