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

Wazuh macOS agent uninstall.sh script needs to be updated #2926

Open
rauldpm opened this issue Apr 23, 2024 · 1 comment · May be fixed by wazuh/wazuh#23508
Open

Wazuh macOS agent uninstall.sh script needs to be updated #2926

rauldpm opened this issue Apr 23, 2024 · 1 comment · May be fixed by wazuh/wazuh#23508
Assignees
Labels

Comments

@rauldpm
Copy link
Member

rauldpm commented Apr 23, 2024

Description

Uninstalling the Wazuh macOS agent, an "error" was observed in the unload command, it was reported in the following issue: wazuh/wazuh-documentation#7109

Related PR: https://github.com/wazuh/wazuh-documentation/pull/7123/files

The fix consists of the documentation command removal but the wazuh-packages macOS uninstall.sh script was not modified, this script is used during the package generation, and we need to fix it

/bin/launchctl unload /Library/LaunchDaemons/com.wazuh.agent.plist

/Library/Developer/CommandLineTools/usr/bin/make -C ../framework clean
rm -f  *.o *.so.0
rm -f ../etc/ossec.mc
rm -f Config.OS
rm -rf external/cJSON external/curl external/libdb external/libffi external/libyaml external/openssl external/procps external/sqlite external/zlib external/audit-userspace external/msgpack external/bzip2 external/nlohmann external/googletest external/libpcre2 external/libplist external/pacman external/libarchive external/popt external/lua external/rpm external/rocksdb external/lzma external/cpp-httplib external/benchmark external/cpython external/jemalloc external/flatbuffers external/cpython/ external/cpython.tar.gz external/rocksdb/
+ /Users/vagrant/Documents/wazuh/packages/macos/uninstall.sh
wazuh-modulesd not running...
wazuh-logcollector not running...
wazuh-syscheckd not running...
wazuh-agentd not running...
wazuh-execd not running...
Wazuh v4.9.0 Stopped
/Library/LaunchDaemons/com.wazuh.agent.plist: Could not find specified service
Unload failed: 113: Could not find specified service
No receipt for 'com.wazuh.pkg.wazuh-agent' found at '/'.
No receipt for 'com.wazuh.pkg.wazuh-agent-etc' found at '/'.

Wazuh agent correctly removed from the system.

+ exit 1

Note: The version is 4.9.0 but the code is present in 4.8.0

@rauldpm rauldpm added level/task Subtask issue type/bug Bug issue labels Apr 23, 2024
@jotacarma90
Copy link
Member

This issue will be solved in the package migration tier 1:
Specifically in this commit: wazuh/wazuh@1791709
When we have a PR for this branch, we link it with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Pending final review
Development

Successfully merging a pull request may close this issue.

3 participants