Control- M Server Installation fails with message "Failed to execute "Create database and schema": INFO: probabley connection does not exist"  if output of "uname -r" is over 32 characters

Version 2
    Share:|

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Server for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Server for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M/Server for UNIX and Microsoft Windows 8.0.00 Control-M/Server for UNIX and Microsoft Windows 9.0.00 Control-M/Server for UNIX and Microsoft Windows 9.0.18



    PROBLEM:

    Control- M Server version 8, 9 or 19 Installation fails with messages  "Create database and schema": INFO: probabley connection does not exist"  or "Failed to read file /DBUData/temp/DBUCreateSchema"  if output of "uname -r" is over 32 characters

    In the installation log available at $HOME/BMCINSTALL, following error can be found:

     AP-19 - Create Build DB Schema Module: 26 - Failed to read file '... /DBUData/temp/DBUCreateSchema. ...'. return code=2

        

     


    CAUSE:

    - CAR00055347 : Installation might fail on Linux Redhat 6 when machine uname -r returns long string - CAR00170768 : OS kernel-release name exceeds CMS_SYSPRM limit and fails the Control-M server installation - Remained PostgreSQL process running.


    SOLUTION:

    - Workaround for CAR00055347 -

    Change the $HOEM/ctm_server/scripts/createschema.sh script  to set a hard-coded string instead of the OS uname -r output.

    For Control-M version 8 installation, please run the setup until you reach the point where this prompt is displayed:
    12:39:57.366 1 Debug.trace[104] == <R> Retry <Enter> Rollback ==

    Before selecting Retry, update the script "$home/ctm_server/scripts/createschema.sh".
    Edit the section:

    #update system parameters
    update_sysprm()
    {
    if [ "X$CREATESCHEMA_DEB" = "XY" ]; then
    set -x
    fi

    write_log "Updating CMS_SYSPRM"

    #computer system is set in EXPORT file
    #operating system ?

    if [ "${machine_type}" = "Solaris" ]; then
    d_COMPUTER=`uname -p`
    d_VERSION=`uname -r`
    elif [ "${machine_type}" = "AIX" ]; then
    d_COMPUTER="IBM RS/6000"
    d_VERSION=`uname -v`'.'`uname -r`
    else
    d_COMPUTER=`uname -m`
    d_VERSION=`uname -r`
    fi

    Replace the following lines:

    else
    d_COMPUTER=`uname -m`
    d_VERSION=`uname -r`
    fi

    with (something equivalent):

    else
    d_COMPUTER=`uname -m`
    d_VERSION=`2.6.32-400.37.4.el6uek.x86_64`
    fi

    Then select Retry in the menu.

    For Control-M version 9 installation, please run the setup until you reach the point where this prompt is displayed:
    12:39:57.366 1 Debug.trace[104] == <R> Retry <Enter> Rollback ==

    Before selecting Retry, update the script "$home/ctm_server/scripts/createschema.sh".
    Edit the section:

    #update system parameters
    update_sysprm()
    {
    if [ "X$CREATESCHEMA_DEB" = "XY" ]; then
    set -x
    fi

    write_log "Updating CMS_SYSPRM"

    #computer system is set in EXPORT file
    #operating system ?

    if [ "${machine_type}" = "Solaris" ]; then
    d_COMPUTER=`uname -p`
    d_VERSION=`uname -r`
    elif [ "${machine_type}" = "AIX" ]; then
    d_COMPUTER="IBM RS/6000"
    d_VERSION=`uname -v`'.'`uname -r`
    else
    d_COMPUTER=`uname -m`
    d_VERSION=`uname -r`
    fi

    Replace the following lines:

    else
    d_COMPUTER=`uname -m`
    d_VERSION=`uname -r`
    fi

    with (something equivalent):

    else
    d_COMPUTER=`uname -m`
    d_VERSION=`2.6.32-400.37.4.el6uek.x86_64`
    fi

    Edit the second section:

    update_cms_ha_sysprm()
    {
      if [ "X$CREATESCHEMA_DEB" = "XY" ]; then
          set -x
      fi

            write_log "Updating CMS_HA_SYSPRM"

            if [ "${machine_type}" = "Solaris" ]; then
                    d_COMPUTER=`uname -p`
                    d_VERSION=`uname -r`
            elif [ "${machine_type}" = "AIX" ]; then
                    d_COMPUTER="IBM RS/6000"
                    d_VERSION=`uname -v`'.'`uname -r`
            else
                    d_COMPUTER=`uname -m`
                    d_VERSION=`uname -r`
            fi

    Replace the following lines:

    else
    d_COMPUTER=`uname -m`
    d_VERSION=`uname -r`
    fi

    with (something equivalent):

    else
    d_COMPUTER=`uname -m`
    d_VERSION=`2.6.32-400.37.4.el6uek.x86_64`
    fi

    Then select Retry in the menu.

    For Control-M 9 High Availability installation, please do the following:

      
       
    1. Copy the installation folder in order to have a backup of the original: 
         

    cp <ctm_installation_folder> <ctm_installation_folder_backup>

         
       
    1. Navigate into the installation folder and edit the file <ctm_installation_folder>/setup.sh in the following manner:
         
       
    1. Search for the text  "installer_arguments="${installer_arguments}"
    2.  
    3. Add the text " -Dos.version=3.0.101" immediately after the search term.
    4.  
    5. The line should now contain the text: 
         

     {installer_arguments}: ${installer_arguments} -Dos.version=3.0.101  -Dinstaller_type=...

         
       
    1.  Edit the file <ctm_installation_folder>/Setup_files/components/ctm/setup.sh as described in sections 2.a and 2.b above.
         

    The line should now contain the text:

      
        
      

    installer_arguments="${installer_arguments} -Dos.version=3.0.101 -Djava.util.prefs.PreferencesFactory=...

         
       
    1. Navigate back to the main installation directory and run setup.sh.
      


    - Workaround for CAR00170768  -

      

    Connect as root

      

    # cd bin

      

    # mv uname uname_org

      

    # vi uname

      

     

      

    Put the following lines in the file

      

    --

      

    #!/bin/sh

      

    if [ "$1" = "-r" ]; then

      

       echo "3.0.101-0.7.44.1.11942.10"

      

    else

      

       /bin/uname_org $1

      

    Fi

      

    --

      

    # chmod 777 uname

      

    Run the installation from the CONTROL-M Linux account.

      

    # rm uname

      

    # mv uname_org uname

      

    --

      

    - You can also get  "Create database and schema": INFO: probabley connection does not exist"  message during the installation if you have done a previous successful installation on the machine and somehow when you remove it there were left some postgresql process running. Please, check if you can see any postgresql process running with ps -ef | grep <ControlmServerUser>, then run "pg_ctl stop -m immediate" to stop it and kill any running process with the Control-M Server username, after that retry the installation.
     

     


    Article Number:

    000100411


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles