The dr_install.sh script errors due to dradmin user home directory
search cancel

The dr_install.sh script errors due to dradmin user home directory

book

Article ID: 228164

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Running dr_install.sh fails with this error.

>> Creating or validating DB Admin user/group...
Failed on hosts (1): <Node_IP_Address>
    Provided DB Admin account details: user = dradmin, group = verticadba, home = /export/dradmin
    Creating group... Group already exists
    Validating group... Okay
    Creating user... User already exists
    Validating user...
    Fail : User's home directory is incorrect: '/home/dradmin'
    Hint : Compare to provided DB Admin details, above.
    Help : https://www.vertica.com/docs/10.1.x/HTML/index.htm#cshid=S0250

The dr_install.sh is failing during a DX NetOps Performance Management Data Repository Vertica install.

The dr_install.sh is failing during a DX NetOps Performance Management Data Repository Vertica upgrade.

Environment

All supported DX NetOps Performance Management releases

Cause

The (default path) /opt/CA/IMDataRepository_vertica<version>/drinstall.properties file DbAdminLinuxUserHome variable value is not set correctly.

Resolution

Determine the dradmin user's home directory. Set the DbAdminLinuxUserHome variable to the correct home path for the dradmin user in the (default path) /opt/CA/IMDataRepository_vertica<version>/drinstall.properties file.

To determine a user's home path:

  1. Log into the terminal CLI as the target user.
    $ su - dradmin
  2. Run the following command to navigate to the user's home directory.
    • cd ~
      $ cd ~

  3. Run the following command to display the current working directory:
    • pwd
      $ pwd
      /export/dradmin
      (Note: This output is just an example, you may get a different output)

  4. Set that value as the DbAdminLinuxUserHome variable value. 
    • Edit the /opt/CA/IMDataRepository_verticaxx/drinstall.properties file (Note: This is just an example, you may have installed in a different path)
    • And update the DbAdminLinuxUserHome parameter:
      • DbAdminLinuxUserHome=/export/dradmin (Note: This is just an example, you may have a different user's home directory)