"Database configuration failed" during configuration on the Central Management Sever while installing VOM (6.x and higher)

book

Article ID: 100013651

calendar_today

Updated On:

Description

Error Message

GUI error:

6.1:

7.x:

User-added imageLog error:

[10/06/2014 12:00:11] Configuring database
[10/06/2014 12:00:11] DEBUG LD_LIBRARY_PATH /opt/VRTSsfmcs/pgsql/lib
[10/06/2014 12:00:11] Executing: /opt/VRTSsfmh/bin/perl /opt/VRTSsfmcs/config/adm/config_db.pl --config --force  --dbpath /var/opt/VRTSsfmcs/db --password ***** --serverport 5636 --hostname server101.samg.local --mh_version_short 6.1 --mh_version_long 6.1.0.0 --debug
[10/06/2014 12:00:21] Output: Test 
Test 3
Test 5
Test 6
return code : 0
From cs_configure.pl
Replace Files
org_file://opt/VRTSsfmcs/config/template/db_init.opts   dest_file://opt/VRTSsfmcs/config/adm/db_init.opts
org_file://opt/VRTSsfmcs/config/template/db_backup.opts   dest_file://opt/VRTSsfmcs/config/adm/db_backup.opts
org_file://opt/VRTSsfmcs/config/template/db_stop.opts   dest_file://opt/VRTSsfmcs/config/adm/db_stop.opts

[10/06/2014 12:00:21] Database configuration failed

 

Cause

This behavior has been observed in environments where at least one of the following conditions are true:

  • VOM is unable to create the habdbsync user.
  • VOM is unable to access the /home directory for the habdbsync user.
  • The server has been "hardened" in such a way that the VOM configuration is prevented from completing. 

Resolution

1)  Set the umask to 0022 .

 

2)  Ensure that a new directory can be created in /home or in the desired location (can be local or NFS mounted).

(if it is desired to create the user's home directory in other than /home, that is OK and will be left up to the customer to execute the appropriate command(s) )

 

3)  Uninstall VOM.

     # rpm -qa|grep sfm

     VRTSsfmcs-6.1.0.0-0

     VRTSsfmh-6.1.0.0-0

     # rpm -e VRTSsfmcs-6.1.0.0-0 VRTSsfmh-6.1.0.0-0

 

4)  Run the VOM installer at the command line (phase 1), but do not continue with the browser-based configuration (phase 2).

 

5)  Verify that the habdbsync user and it's home directory have been created properly.

(if the site has configured the default to be other than /home, please check for the existence of the habdbsync home directory in that location)

(example below is a local login vs. an Active Directory or LDAP login)

     # grep habdbsync /etc/passwd

     habdbsync:x:99999:100::/home/habdbsync:/bin/bash

    # grep habdbsync /etc/group

    habdbsync:x:99999:

    # ls -l /home

    total 4

    drwxr-xr-x 5 habdbsync habdbsync 4096 Oct  8 09:25 habdbsync

 

6)  If not, please use the commands below to properly create the user before proceeding to the brows-based configuration (phase 2)

     # userdel habdbysnc

     # useradd -g habdbsync -u 99999 -o habdbsync -s /bin/bash -m

(if user accounts at the site are NFS mounted, the user account/home directory may need to be created per site policy using the UID above; this is an expected value in this release)

 

7) Ensure the habdbsync account is available.

 

  # su - habdbsync

  $ id

  uid=99999(habdbsync) gid=99999(habdbsync) groups=99999(habdbsync)

  $ pwd

  /home/habdbsync

 

8)  Continue with the browser-based configuration phase of the VOM installation.
 

This issue will be corrected in a future release.

 

Applies To

 Linux Central Management Server

 

This error has not been seen during an upgrade and has been determined to not affect functionality.

Issue/Introduction

BACKGROUND   The installation of the VOM Central Management Server (CMS) takes place in 2 phases:   1)  installation - A command line installation of an executable binary that installs the appropriate packages (it is not supported to install these packages using OS methods on the CMS)   2)  configuration - A browser-based configuration to complete the installation (URL is displayed when the installation phase above has completed)   ISSUE   During the configuration phase, the database configuration may fail however the initial installation phase completed successfully.    

Additional Information

ETrack: 3583720