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

Failed to disable unit: Unit file wazuh-manager.service does not exist message was found during manager testing #5742

Open
pro-akim opened this issue Sep 17, 2024 · 3 comments · May be fixed by #5761
Assignees
Labels

Comments

@pro-akim
Copy link
Member

Target version Related issue Related PR/dev branch
4.9.0 wazuh/wazuh#23748 #5689

The message:

�[0;33m    Failed to disable unit: Unit file wazuh-manager.service does not exist.�[0m

It was found during manager testing in deployability tests (uninstall process).

It does not interfere with the tests themselves, but its nature should be investigated.

@juliamagan juliamagan changed the title DTT1 - Failed to disable unit: Unit file wazuh-manager.service does not exist message was found during manager testing Failed to disable unit: Unit file wazuh-manager.service does not exist message was found during manager testing Sep 17, 2024
@joaquinsgi joaquinsgi self-assigned this Sep 18, 2024
@joaquinsgi
Copy link
Member

We will attempt to replicate this behavior using Test-manager-complete.yaml.

@joaquinsgi
Copy link
Member

joaquinsgi commented Sep 19, 2024

The behavior has been replicated, now the test_uninstall.py code will be investigated. Although the test was successful

It will be attempted to replicate the behavior locally, following each of the steps in test_uninstall.py

@joaquinsgi
Copy link
Member

joaquinsgi commented Sep 20, 2024

The error has been reproduced, and it has been shown that it is due to running the systemctl disable wazuh-manager command after previously uninstalling with the --purge option, which results in the error mentioned in the issue.
failed

After speaking with @rauldpm, the systemctl disable wazuh-manager command will be removed since it was the cause of the error. Since a remove with the --purge option is performed earlier, the uninstallation will be successful, and there will be no need to run the disable command. These changes will be made and tested in the development branch:

After relaunching the job flow with the described changes, and since no errors appeared and it was successful, a pull request has been created to merge the changes.
Log:
jobflow.log

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

Successfully merging a pull request may close this issue.

4 participants