Answer
New Member
Posts: 2
Registered: ‎06-06-2018
Installation fails ,Could not initialize database server.

 vi 6.start-cloudera-scm-server-db.log
 
Could not initialize database server.
  This usually means that your PostgreSQL installation failed or isn't working properly.
  PostgreSQL is installed using the set of repositories found on this machine. Please
  ensure that PostgreSQL can be installed. Please also uninstall any other instances of
  PostgreSQL and then try again., giving up

1 person had this problem.
View Entire Topic
Cloudera Employee
Posts: 10
Registered: ‎04-21-2016
Answered

Please identify the OS being used.

Was postgres correctly installed?

Is postgres running?

Please post all of the log files from the installer directory.

by stanton009 on ‎06-13-2018 11:17 AM
I am getting a simiilar problem on CentOS 7.
 
From the Cloudera 6 bin installer:
Failed to start Embedded Service and Configuration Database, See /var/log/cloudera-manager-installer/7.start-cloudera-scm-server-db.log for details.  Click OK to to revert this installation.
 
When checking that log file we find:
Job for cloudera-scm-server-db.service failed because the control process exited with error code. See "systemctl status cloudera-scm-server-db.service" and "journalctl -xe" for details.
 
when running systemctl status cloudera-scm-server-db.service
Failed to get properties: Access denied
 
when checking journalctl -xe  [server info removed]
...
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cloudera-scm-server-db.service has begun starting up.
The files belonging to this database system will be owned by user "cloudera-scm".
 This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF8".
The default text search configuration will be set to "english".
fixing permissions on existing directory /var/lib/cloudera-scm-server-db/data ... initdb: could not change permissions
Could not initialize database server.
This usually means that your PostgreSQL installation failed or isn't working properly.
Please ensure that PostgreSQL can be installed. Please also uninstall any other instances of
...

I confirmed that postgresql is installed:
# rpm -qa | grep postgresql
postgresql-9.2.23-3.el7_4.x86_64
postgresql-libs-9.2.23-3.el7_4.x86_64
postgresql-server-9.2.23-3.el7_4.x86_64 
...
The /var/lib/cloudera-scm-server-db/data directory (and parent) are not present on the system.  Even if you create them yourself which ownership to cloudera-scm:cloudera-scm, it disappears during installation and you get the same error.
by Cloudera Employee Ana on ‎06-15-2018 12:45 PM
Can you try the manual installation procedure to debug the installer?