CA APM Enterprise Manager install on Amazon Web Services fails with "Install Database Failed"

Document ID : KB000069561
Last Modified Date : 15/08/2018
Show Technical Document Details
Issue:
Using Amazon Web Services/AWS instance running under Amazon Linux AMI 
The account ec2-user has sudo access and when run the Enterprise Manager installer with sudo it fails with error message "Install Database Failed". The install log file EM_HOME/install/Introscope_10.x.y.z_InstallLog.log file shows:
Install Database Failed 
Status: ERROR 
Additional Notes: ERROR - awk: cmd. line:1: fatal: cannot open file `/etc/redhat-release' for reading (No such file or directory) 
(STDOUT: ) 

 
Environment:
APM 10.x under Amazon Web Services (AWS)
Cause:

Amazon Linux AMI is a derivative of Redhat Enterprise Linux but does not have a /etc/redhat-release file. Instead it has a /etc/os-release file

Resolution:
1. If install as non-root user ec2-user without using sudo the install will succeed. Both EM and Postgres software will be owned by user ec2-user

2. To successfully install with sudo/root:
a. Temporarily create a dummy file /etc/redhat-release with single line for a supported RHEL version e.g.
Red Hat Enterprise Linux Server release 6.5 (Santiago)
b. Also if ec2-user will not own the EM or Postgres install directories also need to pre-create those with sudo and required permissions drwxrwxrwx before running the installer e.g.
sudo mkdir /opt/PostgreSQL-9.6.2
sudo chmod 777 /opt/PostgreSQL-9.6.2
Additional Information:

https://docops.ca.com/ca-apm/10-7/en/installing/apm-installation-on-amazon-web-services