CA APM EM 10.7 installer fails to execute prerun_checks.sh for the Postgres Install

Document ID : KB000111207
Last Modified Date : 16/08/2018
Show Technical Document Details
Issue:
Using root user and installing APM Enterprise Manager (EM) 10.7 on Amazon Web Services (AWS) under Linux 7.4 the Postgres software install fails.
The Introscope_10.7.0.45_InstallLog.log shows messages:
Error running /tmp/postgresql_installer_921e97eda4/prerun_checks.sh : /bin/sh: /tmp/postgresql_installer_921e97eda4/prerun_checks.sh: Permission denied
Install Postgres failed with exit code 1
Permission Denied
Environment:
CA APM 9.x, 10.x Linux/Unix Enterprise Manager install
Cause:
The root user had execute permissions for: 
/tmp/postgresql_installer_921e97eda4/prerun_checks.sh 
/tmp/postgresql_installer_921e97eda4 
/tmp 

Created a test script inside /tmp, set chmod 755 on it but also could not execute it ("Permission denied")
Reviewed the mount status of the /tmp filesystem using the command "mount" and discovered it had been mounted with "noexec" option
 
Resolution:
Edit /etc/fstab file and remove "noexec" option
Remount /tmp filesystem with command : mount -o remount /tmp 
The "mount" command then shows no "noexec" for the /tmp flesystem.
The install was then successful.