12 Replies Latest reply on Oct 21, 2009 10:13 AM by Vinnie Lima

    BSARA-S loading of VPC Reports error:  install.pl not found

    Vinnie Lima

      First off - apologies for not posting this in the BSARA-S forum - I still don't have permissions to post there

       

      We are re-installing our whole BL framework under MSSQL and need to re-install VPC.  Everything went well except that I am getting a peculiar error when trying to load the VPC content reports to BSARA-s.  I've opened a ticket already with support (IssueID ISS03514204), but I remember this being worked "around" by Bill Robinson when he was onsite installing VPC for our previous infrastructure (based on Oracle).

       

      Below is an extract of the VPC installation and report load process. Thanks for any help.

       

       

      Starting patch content loader OK
      Checking installation environment...
      Can't open perl script "install.pl": No such file or directory
      Checking installation environment... Done

       

      Checking for HTTP Proxy
      Executing: ./blasadmin -s "default" show AppServer HTTPProxyName
      Not Set

       


      * ------------------------------------------------------- *
      *                                                         *
      *     BladeLogic Vendor Patch Content (VPC) Installer     *
      *                                                         *
      * ------------------------------------------------------- *

       


      Select Patch content to Load, All, or Exit(8):

       

         1. Load AIX Patch Content

       

         2. Load HP-UX Patch Content

       

         3. Load Linux (Red Hat and SuSE) Patch Content

       

         4. Load Solaris Patch Content

       

         5. Load All Patch Content

       

         6. Set SunSolve Credentials (Do before loading Solaris Patch Content)

       

         7. Configure Reports (At least one VPC installation is required.)

       

         8. Exit

       

      Enter a selection: 7
      Can't open perl script "install.pl": No such file or directory

       

      Current Reports server configuration:

       

      Reports Directory: REPORTS_DIR=
      Reports Database Username: REPORT_DB_USER=
      Reports Database Password: <password>

       

      Do you want to configure reports server (y/N): y
      Notes:
      Do not escape reports directory nsh path with \ characters.
      Hostname is compulsory in nsh path for reports directory.
      e.g. on windows, //hostname/c/Program Files/BladeLogic/Reports, and on linux, //hostname/usr/local/bl-reports

       

      Please enter Reports Directory NSH path: //emda-nbp-uea24/c/Program Files/BMC/Reports
      Executing: nexec "emda-nbp-uea24" "/c/Program Files/BMC/Reports/bin/blrptadmin.nsh gw"

       

      Enter Site Name: Primary

       

      Checking The Database Server Connection...
      Database Url: jdbc:sqlserver://emda-nbp-uea26:1433;DatabaseName=BSARA_DW_DB;SelectMethod=cursor
      Database User: BSARA_DW
      Database Password: VBXQABQKLXUPXPAZVPATLTWBMBETOLOPLMEOVNNXQNLZOUEVPWAXMVNOQMAUMXQL

       

      Unable to Contact the Database Server, error is
      Problems checking the connection to the Reports Database Server Specified
      Please set the JYTHON_HOME environment variable
      Press Enter to continue...

        • 1. Re: BSARA-S loading of VPC Reports error:  install.pl not found
          Bill Robinson

          The problem I had was that on a multiple instance appserver, the 'config' instance has no perl configuration associated w/ it.  This does not look like that problem.

           

          is that install.pl there and readable by the user you are running this as?  it looks like it can' find or read the install.pl file.   where/how are you running the vpc installer from ?

          • 2. Re: BSARA-S loading of VPC Reports error:  install.pl not found
            Vinnie Lima

            Bill - this is a single App server for now.

             

            I console'ed into the Appserver, launched CM Gui, Launched NSH Here for the AppServer, then ran the nsh script to load vpc.

             

            I did a find on the whole filesystem and no hits on "install.pl" - seems to be blatently missing?

            • 3. Re: BSARA-S loading of VPC Reports error:  install.pl not found
              Bill Robinson

              The perl path problem will happen on a single physical box that has multiple instances on it.  but that's not your problem.

               

              It looks like you are missing some files.  The method to run the VPC install/config is to run the load-patch-content.nsh from the directory where you unzip the vpc installer zip file.  so not /usr/nsh/patch (the install dir of the vpc).  you need the original zip file w/ the installer.  that shold have everything you need.  it's also possible that running it via the nsh here has caused problems w/ paths, since it may be looking on your local system (where nsh is running from) for the files.

              • 4. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                Vinnie Lima

                I've tried getting the VPC tar ball again and unzipping it. It currently resides under /opt/bmc/install, with subdirectory of "ke"

                 

                 

                Zip is:

                 

                -rw-------   1 root     root     16713667 Sep 04 07:35 760-11-VendorPatchContent.zip

                 

                 

                 

                Content of subdirectory is (let me know if you want to see further down the path):

                 

                emda-nbp-uea21# pwd
                //emda-nbp-uea21/opt/bmc/install/ke
                emda-nbp-uea21# ls -al *
                -rw-------   1 root     root       151643 May 07 10:07 VPC76_ReleaseNotes.pdf
                -rw-r--r--   1 root     root       460712 Apr 21 20:36 VPCInstallation.pdf
                -rw-r--r--   1 root     root      1108253 Apr 21 20:36 VPCUsersGuide.pdf
                -rw-r--r--   1 root     root         1176 Apr 21 20:37 blvpc.conf
                -rw-r--r--   1 root     root        55951 Apr 24 13:20 configure.nsh
                -rw-------   1 root     root       241885 Oct 20 10:17 content-install.log
                -rw-r--r--   1 root     root          962 Apr 24 13:17 install.conf
                -rw-r--r--   1 root     root         4859 Apr 21 20:37 jython.conf
                -rw-r--r--   1 root     root        28635 Apr 24 13:20 load-patch-content.nsh
                -rw-r--r--   1 root     root          629 Apr 24 13:20 progress.nsh
                -rw-r--r--   1 root     root        20559 Apr 24 13:20 upgrade.nsh
                -rw-r--r--   1 root     root      2185219 Apr 24 13:20 windows_downloader.zip

                 

                patch-content:
                total 26727
                drwxr-xr-x  14 root     root         4096 Oct 20 10:14 .
                drwxr-xr-x   3 root     root         4096 Oct 20 10:14 ..
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 aix-patch-content-input
                -rw-r--r--   1 root     root        27740 Apr 24 13:20 aix-patch-content-install.nsh
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 aix-patch-content-mapping
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 aix-patch-content-sensors
                -rw-r--r--   1 root     root        95917 Apr 24 13:20 content-loader-pdq.nsh
                -rw-r--r--   1 root     root       117480 Apr 24 13:20 content-loader.nsh
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 hpux-patch-content-input
                -rw-r--r--   1 root     root        27742 Apr 24 13:20 hpux-patch-content-install.nsh
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 hpux-patch-content-mapping
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 hpux-patch-content-sensors
                -rw-r-----   1 root     root          962 Oct 20 10:14 install.conf
                drwxr-xr-x   3 root     root         4096 Oct 16 15:12 linux-patch-content-input
                -rw-r--r--   1 root     root        27744 Apr 24 13:20 linux-patch-content-install.nsh
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 linux-patch-content-mapping
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 linux-patch-content-sensors
                -rw-r--r--   1 root     root     13299076 Apr 24 13:20 patchanalysis.zip
                drwxr-xr-x   3 root     root         4096 Oct 16 15:12 solaris-patch-content-input
                -rw-r--r--   1 root     root        27748 Apr 24 13:20 solaris-patch-content-install.nsh
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 solaris-patch-content-mapping
                drwxr-xr-x   2 root     root         4096 Oct 16 15:12 solaris-patch-content-sensors

                • 5. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                  Bill Robinson

                  I think you need to run the vpc installer from the box itself, not via a nsh session.  you could nexec bash from the nsh session, but i don't think it will run via the nsh and nsh is running from your client system.

                  • 6. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                    Vinnie Lima

                    Actually I am logging in via console to the AppServer, launching the CM GUI, and then NSH into the AppServer.

                     

                    The reason you have to do this is because if I ssh into the app server, then blcred, the permissions don't transfer into the nsh script and then it has errors claiming I don't have necessary permissions.

                     

                    If you want me to past the screenshot, let me know.

                    • 7. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                      Bill Robinson

                      Add a line like "vlima rw,map=root" to users.local on the appserver.  (assuming vlima is your ssh/os login).  That should give you the nsh permissions that you need.

                      • 8. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                        Vinnie Lima

                        Not sure that's it.  User BLAdmin is in user.local correctly.  See the transaction below:

                         

                        <snip>

                         

                        emda-nbp-uea21# nsh

                        emda-nbp-uea21# blcred cred -acquire -profile srp
                        username: BLAdmin
                        password:
                        Authentication succeeded: acquired session credential
                        emda-nbp-uea21# exit
                        [root@emda-nbp-uea21 rsc]# cd /opt/bmc/install/ke
                        [root@emda-nbp-uea21 rsc]# nsh
                        emda-nbp-uea21# ./load-patch-content.nsh
                        Total roles found: 2
                        Multiple roles are found for the profile:  GlobalReportAdmins BLAdmins
                        Enter the role: BLAdmins
                        Using the specified role: BLAdmins
                        Authorizing the blcli credentials
                        Enter the AppServer Installation NSH Path [/opt/bmc/bcas]:
                        App Server Installation path is: /opt/bmc/bcas
                        Enter VPC Installation NSH location [/opt/bmc/bcas]:
                        Patch Installation directory: /opt/bmc/bcas/patch

                         

                        Installed VPC path /opt/bmc/bcas/patch.
                        The patch analysis software does exist. Checking if it needs to be updated

                         


                        Checking AppServer Perl ConfigurationSuccess. Perl Version is Correct
                        All required Perl Modules are available
                        OK

                         

                        Before running the patch content loader, you need to edit the install.conf file
                        Press Enter when you have finished...

                         

                        Starting patch content loader OK
                        Checking installation environment...
                        Checking installation environment... Done

                         

                        Checking for HTTP Proxy
                        Executing: ./blasadmin -s "default" show AppServer HTTPProxyName
                        Not Set

                         


                        Select Patch content to Load, All, or Exit(8):

                         

                           1. Load AIX Patch Content

                         

                           2. Load HP-UX Patch Content

                         

                           3. Load Linux (Red Hat and SuSE) Patch Content

                         

                           4. Load Solaris Patch Content

                         

                           5. Load All Patch Content

                         

                           6. Set SunSolve Credentials (Do before loading Solaris Patch Content)

                         

                           7. Configure Reports (At least one VPC installation is required.)

                         

                           8. Exit

                         

                        Enter a selection: 7

                         

                        Current Reports server configuration:

                         

                        Reports Directory: REPORTS_DIR=
                        Reports Database Username: REPORT_DB_USER=
                        Reports Database Password: <password>

                         

                        Do you want to configure reports server (y/N): y
                        Notes:
                        Do not escape reports directory nsh path with \ characters.
                        Hostname is compulsory in nsh path for reports directory.
                        e.g. on windows, //hostname/c/Program Files/BladeLogic/Reports, and on linux, //hostname/usr/local/bl-reports

                         

                        Please enter Reports Directory NSH path: //emda-nbp-uea24/c/Program Files/BMC/Reports

                         

                        Reports directory specified is not accessible. Please Check if it exists or has right permissions
                        Please enter Reports Directory NSH path:

                         


                        emda-nbp-uea21# nexec emda-nbp-uea24 uname -a
                        nexec: Error accessing host emda-nbp-uea24: No authorization to access host

                        //emda-nbp-uea24/: No authorization to access host
                        Unable to access emda-nbp-uea24: No authorization to access host
                        emda-nbp-uea21#

                         

                        [root@emda-nbp-uea21 ke]# cat /usr/lib/rsc/users.local
                        #
                        #  Copyright (c) 2001-2009 BladeLogic, Inc.
                        #       -- All Rights Reserved --
                        #
                        # This file contains a list of user permission overrides. The permissions
                        # defined in this file will override any associated permissions defined in the
                        # "exports" or "users" file.
                        #
                        # Please read the BladeLogicAdministration.pdf for details on how to use this
                        # file.
                        #
                        BLAdmins:*    rw,map=root
                        [root@emda-nbp-uea21 ke]#

                         

                        </snip>

                         

                        But - if I login console to the App server to NSH to emda-nbp-uea24 it works, as well as if I do this via my desktop CM GUI/NSH.  I believe this is because credentials don't pass with NSH from an app server.  Same reason we can't use bllic from ssh.  You have to launch the GUI on the app server,  the do "NSH from here" to get an NSH session with credentials that are valid non-locally.

                         

                        Mark it as a bug

                        • 9. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                          Bill Robinson

                          when you are connecting directly to an agent, the blcred credentials do not come into play, nsh is passing your os username across and that's not in the users or users.local file.  if you look in the rscd.log on the reports server you'll see a connection denied for a connection w/ your os username.

                          • 10. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                            Vinnie Lima

                            OK so you are recommending that my userid on the appserver is added to the BSARA-S server (emda-nbp-uea24) in users.local?

                            • 11. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                              Bill Robinson

                              yes, atleast for the install.  you can take it out after that.

                              • 12. Re: BSARA-S loading of VPC Reports error:  install.pl not found
                                Vinnie Lima

                                Aha! it worked.

                                 

                                I'll post the installagion guide walkthrough for future poor souls who run into this.

                                 

                                Thanks Bill, as usual.