How to fix RHEL/CentOS 8 repository installation issue
There is a known issue that is planned to be fixed in the Sisense L2023.6+. If you install Sisense on CentOS or RHEL version >= 8 the old EPEL 7 repositories are used instead of EPEL 8
To fix this issue:
Locate in the installation folder and open in the text editor "sisense.sh" file.
For Red Hat replace the following section:
elif [[ ${OS} == *"Red Hat"* ]]; then
{
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y --enablerepo="epel" python3-pip nc sshpass jq libselinux-python3
sudo python3 -m pip install --upgrade --force-reinstall pip==21.1.3
sudo ln -sf /usr/local/bin/pip /usr/bin/pip
sudo python3 -m pip install configparser zipp
} >>sisense-ansible.log 2>&1
fi
With:
elif [[ ${OS} == *"Red Hat"* ]]; then
if [[ $VER == "7."* ]]; then
{
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y --enablerepo="epel" python3-pip nc sshpass jq libselinux-python3
sudo python3 -m pip install --upgrade --force-reinstall pip==21.1.3
sudo ln -sf /usr/local/bin/pip /usr/bin/pip
sudo python3 -m pip install configparser zipp
} >>sisense-ansible.log 2>&1
else
{
sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf install -y --enablerepo="epel" python3-pip nc sshpass jq libselinux-python3
sudo python3 -m pip install --upgrade --force-reinstall pip==21.1.3
sudo ln -sf /usr/local/bin/pip /usr/bin/pip
sudo python3 -m pip install configparser zipp
} >>sisense-ansible.log 2>&1
fi
fi
For CentOS replace the next section:
elif [[ ${OS} == *"CentOS"* ]]; then
{
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y epel-release --enablerepo="epel" python3-pip nc sshpass jq libselinux-python3
sudo python3 -m pip install --upgrade --force-reinstall pip==21.1.3
sudo ln -sf /usr/local/bin/pip /usr/bin/pip
sudo python3 -m pip install configparser zipp
} >>sisense-ansible.log 2>&1
fi
With:
elif [[ ${OS} == *"CentOS"* ]]; then
if [[ $VER == "7."* ]]; then
{
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y epel-release --enablerepo="epel" python3-pip nc sshpass jq libselinux-python3
sudo python3 -m pip install --upgrade --force-reinstall pip==21.1.3
sudo ln -sf /usr/local/bin/pip /usr/bin/pip
sudo python3 -m pip install configparser zipp
} >>sisense-ansible.log 2>&1
else
{
sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf install -y epel-release --enablerepo="epel" python3-pip nc sshpass jq libselinux-python3
sudo python3 -m pip install --upgrade --force-reinstall pip==21.1.3
sudo ln -sf /usr/local/bin/pip /usr/bin/pip
sudo python3 -m pip install configparser zipp
} >>sisense-ansible.log 2>&1
fi
fi
This should be enough for a successful installation.
If you need additional help, please contact Sisense Support.
Updated 02-13-2024
vsolodkyi
Sisense Employee
Joined August 11, 2022