Splunk AppDynamics

Trial platform installation error : Required libaio package is not found

CommunityUser
Splunk Employee
Splunk Employee

Getting below error during platform installation:

"Required libaio package is not found. ..."

However, above package is already installed:

> rpm -q libaio
libaio-0.3.107-10.el6.x86_64
libaio-0.3.107-10.el6.i686

Here is output from the installation script:

> ./platform-setup-x64-linux-4.4.3.10393.sh
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
May 30, 2018 6:51:23 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
Verifying if the libaio package is installed. /nobackup/susingh/tools/appdynamics/platform/platform/installer/checkLibaio.sh

Labels (1)
0 Karma
1 Solution

David_Klassen
Engager

I managed to get the shell script checker and run it. The basic problem is that your install has both dpkg and rpm installed. If you temporarily rename dpkg to something else the install will go ahead... I am assuming here your OS is a RedHat distro where rpm is the default package manager. I have no idea why I have both installed... but it would seem this AppD installer is not making a very thorough check.

#!/bin/sh

# Script used to check if the machine has libaio on it or not. 

cat /dev/null > /opt/appdynamics/platform/installer/.libaio_status
chmod 777 /opt/appdynamics/platform/installer/.libaio_status

# Check if the dpkg or rpm command exists before running it.
command -v dpkg >/dev/null 2>&1
OUT=$?
if [ $OUT -eq 0 ];
then
    if [ `dpkg -l | grep -i libaio* | wc -l` -gt 0 ];
    then
        echo SUCCESS >> /opt/appdynamics/platform/installer/.libaio_status
        exit 0
    fi
else
    command -v rpm >/dev/null 2>&1
    OUT=$?
    if [ $OUT -eq 0 ];
    then
        if [ `rpm -qa | grep -i libaio* | wc -l` -gt 0 ];
        then
            echo SUCCESS >> /opt/appdynamics/platform/installer/.libaio_status
            exit 0
        fi
    fi
fi
echo FAILURE >> /opt/appdynamics/platform/installer/.libaio_status
exit 1
 

View solution in original post

David_Klassen
Engager

I got this too... I was running from command-line as a non-root user:

    ./platform-setup-x64-linux-4.4.3.10393.sh -q -varfile /appd/home/Install/response.varfile

I added a shell debug switch and log to the command like so:

     bash -x ./platform-setup-x64-linux-4.4.3.10393.sh -q -varfile /appd/home/Install/response.varfile > install.log 2>&1

If we tail the last bit of that log you get:

Verifying if the libaio package is installed. /opt/appdynamics/platform/installer/checkLibaio.sh
Required libaio package is not found. For instructions on installing
the missing package, refer to https://docs.appdynamics.com/display/PRO44/Enterprise+Console+Requirements

and the script checkLibaio.sh isn't left there... so you cannot figure it out easily. I also have a RedHat variant with the packages installed:

rpm -qa | grep libaio
libaio-0.3.109-13.el7.x86_64

Strangely enough I have one VM from the same image, that will install the distribution just fine, and one that will not. This makes no sense to me, so if I discover why I will try to let you know.

David_Klassen
Engager

I managed to get the shell script checker and run it. The basic problem is that your install has both dpkg and rpm installed. If you temporarily rename dpkg to something else the install will go ahead... I am assuming here your OS is a RedHat distro where rpm is the default package manager. I have no idea why I have both installed... but it would seem this AppD installer is not making a very thorough check.

#!/bin/sh

# Script used to check if the machine has libaio on it or not. 

cat /dev/null > /opt/appdynamics/platform/installer/.libaio_status
chmod 777 /opt/appdynamics/platform/installer/.libaio_status

# Check if the dpkg or rpm command exists before running it.
command -v dpkg >/dev/null 2>&1
OUT=$?
if [ $OUT -eq 0 ];
then
    if [ `dpkg -l | grep -i libaio* | wc -l` -gt 0 ];
    then
        echo SUCCESS >> /opt/appdynamics/platform/installer/.libaio_status
        exit 0
    fi
else
    command -v rpm >/dev/null 2>&1
    OUT=$?
    if [ $OUT -eq 0 ];
    then
        if [ `rpm -qa | grep -i libaio* | wc -l` -gt 0 ];
        then
            echo SUCCESS >> /opt/appdynamics/platform/installer/.libaio_status
            exit 0
        fi
    fi
fi
echo FAILURE >> /opt/appdynamics/platform/installer/.libaio_status
exit 1
 

Michal_Wrobel
Engager

Thank you 👍

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks David - that was very helpful.

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...