Installation Error with CentOS 8 - Error 0x5

171 views
Skip to first unread message

Tony Perez

unread,
Feb 19, 2020, 3:57:32 PM2/19/20
to Wazuh mailing list
Hi There

Hoping someone can give me a hand. I'm trying to install the latest version 3.10 of Wazuh here: https://documentation.wazuh.com/3.10/installation-guide/installing-wazuh-manager/linux/centos/wazuh_server_sources_centos.html

I have tried to follow the instructions but I keep getting the following error on installation:

 Error 0x5.

 Building error. Unable to finish the installation.


I have experienced this twice on two separate Manager install attempts, two separate machines. I have no doubt it's operator error. 


I'm thinking it's most likely a dependency of some sort, but I've configured the ones provided. This is a brand new CentOS build:


# cat /etc/os-release

NAME="CentOS Linux"

VERSION="8 (Core)"

ID="centos"

ID_LIKE="rhel fedora"

VERSION_ID="8"

PLATFORM_ID="platform:el8"

PRETTY_NAME="CentOS Linux 8 (Core)"

ANSI_COLOR="0;31"

CPE_NAME="cpe:/o:centos:centos:8"

HOME_URL="https://www.centos.org/"

BUG_REPORT_URL="https://bugs.centos.org/"


CENTOS_MANTISBT_PROJECT="CentOS-8"

CENTOS_MANTISBT_PROJECT_VERSION="8"

REDHAT_SUPPORT_PRODUCT="centos"

REDHAT_SUPPORT_PRODUCT_VERSION="8"



I tried running this when I first started:


yum install make gcc policycoreutils-python automake autoconf libtool


But the 
policycoreutils-python doesn't exist, so I ended up running:


yum install policycoreutils-python-utils


I eventually ran:


yum install policycoreutils*


Thinking it might have been that. This is the second CentOS 8 machine the installer fails on. 


I did check the permissions (as recommended in another post):


# ls -la src/analysisd/compiled_rules/register_rule.sh 

-rwxrwxr-x. 1 root root 4665 Sep 23 07:09 src/analysisd/compiled_rules/register_rule.sh


I was thinking of moving over to Ubuntu, but I kind of need to figure this out because of other CentOS machines on my network (I won't be able to rebuild them all). 


Extremely grateful for any help or advice on things to look into.


Thanks


Tony




Message has been deleted

Jesús Jiménez Sánchez

unread,
Feb 20, 2020, 3:06:00 AM2/20/20
to Wazuh mailing list
Hello Tony.

To install a Wazuh manager in CentOS 8 you need to install policycoreutils instead of policycoreutils-python. Also, you need to install Python 3. This will fix you problem:

yum install policycoreutils python3

By doing that and following the next steps, everything will work fine.

Best regards.
WazuhJesús Jiménez Sánchez 
Core Team | jesus....@wazuh.com
WazuhThe Open Source Security Platform

Tony Perez

unread,
Feb 20, 2020, 11:17:23 AM2/20/20
to Wazuh mailing list
Hi Jesus

Yes, that worked perfectly. Wonderful, thanks. Is there a way to submit a PR to the documentation to account for the difference with CentOS 8?

Tony

Jesús Jiménez Sánchez

unread,
Feb 24, 2020, 3:28:39 AM2/24/20
to Wazuh mailing list
Hello, Tony.

Yes, you can send a Pull Request in the Wazuh-documentation repository here: https://github.com/wazuh/wazuh-documentation/pulls.

Best regards.
WazuhJesús Jiménez Sánchez 
Core Team | jesus....@wazuh.com
WazuhThe Open Source Security Platform

Reply all
Reply to author
Forward
0 new messages