KB Article #178343
Installation 3.1.3 CFT fails on Red Hat 6.8
Problem
The 3.1.3 installation cannot be completed on Red Hat 6.8.
The installation is blocked here:
+ mkfifo /tmp/AxwayTemp2016-12-09105834/fifo_7_64
+ echo jre7_u51_64.zip
There are the following errors in install.log:
2016-12-12 09:19:16 DEBUG The TEMPORARY_DIR environment variable is not set!
2016-12-12 09:19:16 DEBUG Temporary directory set to :/tmp/AxwayTemp2016-12-12081916
2016-12-12 09:19:16 DEBUG Available freespace on temporary directory is:945468 bytes
2016-12-12 09:19:16 DEBUG Platform:linux-x86-64
2016-12-12 09:31:59 DEBUG Axway Java is not present in the installation package.
2016-12-12 09:31:59 DEBUG AXWAY_JAVA_HOME variable has not been set.
2016-12-12 09:31:59 DEBUG JAVA_HOME variable has not been set.
2016-12-12 09:31:59 FATAL Cannot find Java. Installer program will exit.
In the package, java is zipped.
$ pwd
/env/cft/CFT313_LINx86_64/Java/linux-x86
$ ls -lt
total 79440rw------ 1 cft outils 47295519 9 déc. 14:11 jre7_u51_64.ziprw------ 1 cft outils 34048682 9 déc. 14:11 jre6_u45_64.zip
In script debug execution output using 'sh -x setup.sh -d' the script hangs forever while writing the java filename in FIFO file i.e.
++ ls -1A /env/cft/CFT313_LINx86_64/Java/linux-x86
++ egrep 'jre6(_u[0-9]+)?_64'
+ JAVA6_64_LIST=jre6_u45_64.zip
+ '[' PADjre6_u45_64.zipPAD '!=' PADPAD ']'
+ mkfifo /tmp/AxwayTemp2016-12-14090852/fifo_6_64
+ echo jre6_u45_64.zip
.............................................................................................................................................^C/env/cft/CFT313_LINx86_64/Components/Axway_Installer_V4.8.0/scripts/utils.sh: line 829: /tmp/AxwayTemp2016-12-14090852/fifo_6_64: Appel système interrompu
++ kill -9 12646
++ wait 12646
+ EXISTS_JAVA7=FALSE
+ EXISTS_JAVA7_32=FALSE
++ ls -1A /env/cft/CFT313_LINx86_64/Java/linux-x86
++ egrep 'jre7(_u[0-9]+)?'
In order to regain the control a CRTL+C is needed.
The work directory is on 777 for user CFT, if they change it, the same error occurs.
The machine has 4Go memory.
There is no problem at the check of the checksum for md5 and sha256 of the package.
Resolution
It's a race condition, so the issue affects only some machines with only some Linux distributions. Unfortunately, it's in the setup.sh script, and we cannot fix it with a slight modification:
* comment out the line in Components/Axway_Installer_V4.8.0/scripts/ that starts with mkfifo
* at the end of that code block, add a line to remove the file
so that it all looks like:
{code:none}
#mkfifo ${TEMPORARY_DIR}/fifo_${MAJOR_VERSION}_${BIT_ARCHITECTURE}
echo "${JAVA6_LIST}" > ${TEMPORARY_DIR}/fifo_${MAJOR_VERSION}_${BIT_ARCHITECTURE}
while read EACH_JAVA
do
if [ -r ${WORKING_DIR}/Java/${JAVA_DIR_PART}/${EACH_JAVA} ]
then
BEST_JRE=`echo "${EACH_JAVA}" | sed -e s/.zip//`
fi
done < ${TEMPORARY_DIR}/fifo_${MAJOR_VERSION}_${BIT_ARCHITECTURE}
rm "${TEMPORARY_DIR}/fifo_${MAJOR_VERSION}_${BIT_ARCHITECTURE}"
{code}