wazuh-packages icon indicating copy to clipboard operation
wazuh-packages copied to clipboard

Error in AIX agent uninstallation

Open Rebits opened this issue 4 years ago • 1 comments

Wazuh version Install type Action performed Platform
4.1.0-rev Agent Remove 5.3

Hello team,

There are some issues in the AIX agent uninstallation process.

If we uninstall an AIX agent we get the following error:

bash-4.4# rpm -e wazuh-agent             
rmdir of /var/ossec/tmp/src/init failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates/config/generic/localfile-logs failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates/config/generic failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates/config failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates failed: No such file or directory
cannot remove /var/ossec/queue/fim/db - directory not empty
cannot remove /var/ossec/queue/fim - directory not empty
cannot remove /var/ossec/queue - directory not empty
removal of /var/ossec/logs/ossec.json failed: No such file or directory
cannot remove /var/ossec/etc/shared - directory not empty
cannot remove /var/ossec/etc - directory not empty
cannot remove /var/ossec - directory not empty
var/opt/freeware/tmp/rpm-tmp.32064[14]: %posttrans:  not found

Resulting in /var/ossec/queue/fim/db/fim.db file not being deleted.

This produces an unclean uninstallation and it could cause some errors in future Wazuh installation, so, It should be necessary to fix the AIX agents uninstall process.

Rebits avatar Jan 18 '21 15:01 Rebits

Update:

packages: https://packages-dev.wazuh.com/pre-release/aix/wazuh-agent-4.3.4-1.aix.ppc.rpm

bash-4.4# rpm -e wazuh-agent
rmdir of /var/ossec/tmp/src/init failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates/config/generic/localfile-logs failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates/config/generic failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates/config failed: No such file or directory
rmdir of /var/ossec/tmp/etc/templates failed: No such file or directory
cannot remove /var/ossec/queue/syscollector/db - directory not empty
cannot remove /var/ossec/queue/syscollector - directory not empty
cannot remove /var/ossec/queue/logcollector - directory not empty
cannot remove /var/ossec/queue/fim/db - directory not empty
cannot remove /var/ossec/queue/fim - directory not empty
cannot remove /var/ossec/queue - directory not empty
removal of /var/ossec/logs/ossec.json failed: No such file or directory
cannot remove /var/ossec/etc/shared - directory not empty
cannot remove /var/ossec/etc - directory not empty
cannot remove /var/ossec - directory not empty

c-bordon avatar Jun 06 '22 14:06 c-bordon