14 Replies Latest reply on Oct 8, 2013 2:32 AM by Vivek Singh

    Unable to install VPC

      Hi,

       

      I am unable to install VPc on linux application server.

       

      Error-

      AppServer Perl configuration incorrect. Cannot locate Perl at blasadmin now running against deployment: xrxdallin002Unable to find storage for location

       

      We have all the required modules of perl installed.

      Can somebody pin down what's wrong.

       

      Below is the content-installer.log

       

       

      10/03-01:55:16 Arguments: -r BLAdminsGLO -v xrxdallin002-RSA -a xrxdallin002

      10/03-01:55:17 Parsing role option.

      10/03-01:55:17 -a option is deprecated, appserver host will be read from the authentication profile specified

      10/03-01:55:17 Finished parsing arguments.

      10/03-01:55:17 Executing: blcred cred -test -profile "xrxdallin002-RSA"

      10/03-01:55:21 Executing: blcred cred -list

      10/03-01:55:25 Total roles found: 5

      10/03-01:55:25 Using the specified role: BLAdminsGLO

      10/03-01:55:25 Authorizing the blcli credentials

      10/03-01:55:25 Executing : blcli -v "xrxdallin002-RSA" DepotGroup groupNameToDBKey "/"

      10/03-01:57:40 Installed VPC path /app/bladelogic/depot/VPC/patch.

      10/03-01:57:41 Arguments: -p unzip

      10/03-01:57:41 Parsing PERL_ARG.

      10/03-01:57:41 Adding unzip to PERL_ARG.

      10/03-01:57:41 Finished parsing arguments.

      10/03-01:57:41 Operating System is Linux

      10/03-01:57:41 Checking //xrxdallin002/usr/lib/rsc/HOME

      10/03-01:57:41 APPSERVER_DIR: //xrxdallin002/app/bladelogic/NSH

      10/03-01:57:41 Found APPSERVER_DIR: //xrxdallin002/app/bladelogic/NSH

      10/03-01:57:41 Found br and share in //xrxdallin002/app/bladelogic/NSH

      10/03-01:57:41 Found blappserv, we found an appserver.

      10/03-01:57:41 The patchanalysis.zip file will be copied to /app/bladelogic/depot/VPC/patch

      10/03-01:57:43 Executing: blcli -v "xrxdallin002-RSA" Utility getDeploymentName

      10/03-01:57:56 Exiting the installation.

      10/03-02:21:35 Arguments: -r BLAdminsGLO -v xrxdallin002-RSA -a xrxdallin002

      10/03-02:21:35 Parsing role option.

      10/03-02:21:35 -a option is deprecated, appserver host will be read from the authentication profile specified

      10/03-02:21:36 Finished parsing arguments.

      10/03-02:21:36 Executing: blcred cred -test -profile "xrxdallin002-RSA"

      10/03-02:21:40 Executing: blcred cred -list

      10/03-02:21:44 Total roles found: 5

      10/03-02:21:44 Using the specified role: BLAdminsGLO

      10/03-02:21:44 Authorizing the blcli credentials

      10/03-02:21:44 Executing : blcli -v "xrxdallin002-RSA" DepotGroup groupNameToDBKey "/"

      10/03-02:22:07 Installed VPC path /app/bladelogic/depot/VPC/patch.

      10/03-02:22:07 Arguments: -p unzip

      10/03-02:22:07 Parsing PERL_ARG.

      10/03-02:22:07 Adding unzip to PERL_ARG.

      10/03-02:22:07 Finished parsing arguments.

      10/03-02:22:07 Operating System is Linux

      10/03-02:22:07 Checking //xrxdallin002/usr/lib/rsc/HOME

      10/03-02:22:07 APPSERVER_DIR: //xrxdallin002/app/bladelogic/NSH

      10/03-02:22:07 Found APPSERVER_DIR: //xrxdallin002/app/bladelogic/NSH

      10/03-02:22:07 Found br and share in //xrxdallin002/app/bladelogic/NSH

      10/03-02:22:07 Found blappserv, we found an appserver.

      10/03-02:22:07 The patchanalysis.zip file will be copied to /app/bladelogic/depot/VPC/patch

      10/03-02:22:09 Executing: blcli -v "xrxdallin002-RSA" Utility getDeploymentName

      10/03-02:22:21

      10/03-02:22:21 AppServer Perl configuration incorrect. Cannot locate Perl at blasadmin now running against deployment: xrxdallin002Unable to find storage for location

      10/03-02:22:21 Exiting the installation.

        • 1. Re: Unable to install VPC
          Niranjan Nagandla

          Did you set the perl install location in blasadmin? Run the following on appserver to check the current configuration:

           

          blasadmin -a show perlconfig all

           

          And to set, run the following:

           

          blasadmin -a set perlconfig location

           

          Thanks,

          Niranjan

          • 2. Re: Unable to install VPC

            Hi Niranjan,

             

            Thanks for your reply,but perlconfig is already set to /usr/bin/perl

             

            xrxdallin002# blasadmin -a show perlconfig all

            blasadmin now running against the following deployments: _template, xrxdallin002

            [PerlConfig]

            location:/usr/bin/perl

            xrxdallin002#

            • 3. Re: Unable to install VPC
              Niranjan Nagandla

              Have you restarted the appserver after setting the PERL path in blasadmin?

               

              Thanks,

              Niranjan

              • 4. Re: Unable to install VPC

                It was already set.

                • 5. Re: Unable to install VPC

                  Hi Vivek,

                   

                  Please check whether perl is installed on /usr/bin or some other location on appserver.

                   

                  Thanks,

                  Indrajit

                  • 6. Re: Unable to install VPC

                    It's located in the same location as the perlconfig location is set-

                     

                    xrxdallin002# whereis perl

                    perl: /usr/bin/perl /usr/share/man/man1/perl.1.gz

                    xrxdallin002#

                    • 7. Re: Unable to install VPC
                      Niranjan Nagandla

                      You didn’t confirmed if you have restarted the appserver or not after setting PERL path via blasadmin.

                      • 8. Re: Unable to install VPC

                        Hi Niranjan,

                         

                        Perl path was already set to /usr/bin/perl on our appservers.So never changed the path.

                        Restart not required.

                        • 9. Re: Unable to install VPC
                          Niranjan Nagandla

                          So “/usr/bin/perl” is a directory where perl is installed or perl is an executable..

                           

                          Specify the path and name of the Perl executable by entering the following:

                          set perlconfig location  is a Network Shell path, such as /c/perl/bin/perl.exe.

                          • 10. Re: Unable to install VPC


                            perl is executable file and not directory.

                             

                             

                            perl -V gives the below output

                             

                            xrxdallin002# perl -V
                            Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

                              Platform:
                                osname=linux, osvers=2.6.18-274.3.1.el5, archname=x86_64-linux-thread-multi
                                uname='linux hs20-bc2-5.build.redhat.com 2.6.18-274.3.1.el5 #1 smp fri aug 26 18:49:02 edt 2011 x86_64 x86_64 x86_64 gnulinux '
                                config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DDEBUGGING=-g -Dversion=5.10.1 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Dprivlib=/usr/share/perl5 -Darchlib=/usr/lib64/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib64/perl5/vendor_perl -Dinc_version_list=5.10.0 -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dscriptdir=/usr/bin'
                                hint=recommended, useposix=true, d_sigaction=define
                                useithreads=define, usemultiplicity=define
                                useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
                                use64bitint=define, use64bitall=define, uselongdouble=undef
                                usemymalloc=n, bincompat5005=undef
                              Compiler:
                                cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
                                optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
                                cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
                                ccversion='', gccversion='4.4.5 20110214 (Red Hat 4.4.5-6)', gccosandvers=''
                                intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
                                d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
                                ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
                                alignbytes=8, prototype=define
                              Linker and Libraries:
                                ld='gcc', ldflags =' -fstack-protector'
                                libpth=/usr/local/lib64 /lib64 /usr/lib64
                                libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
                                perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
                                libc=, so=so, useshrplib=true, libperl=libperl.so
                                gnulibc_version='2.12'
                              Dynamic Linking:
                                dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE'
                                cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'


                            Characteristics of this binary (from libperl):
                              Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                                                    PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
                                                    USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                                                    USE_PERLIO USE_REENTRANT_API
                              Built under linux
                              Compiled at Oct  4 2011 10:53:24
                              @INC:
                                /usr/local/lib64/perl5
                                /usr/local/share/perl5
                                /usr/lib64/perl5/vendor_perl
                                /usr/share/perl5/vendor_perl
                                /usr/lib64/perl5
                                /usr/share/perl5
                                .
                            xrxdallin002#

                            • 11. Re: Unable to install VPC

                              Hi Vivek,

                               

                              Can you please check what is the output of below command?

                               

                              #blasadmin -s "$DEPLOYMENT_NAME" show perlConfig location

                               

                              Thanks,

                              Indrajit

                              • 12. Re: Unable to install VPC

                                Hi Indrajit,

                                 

                                Below is the output

                                 

                                 

                                xrxdallin002# blasadmin -s "$DEPLOYMENT_NAME" show perlconfig location

                                Unable to find directory for deployment .  Commands will not be run against this deployment.

                                No deployments found. Exiting...

                                xrxdallin002# blasadmin -s "$DEPLOYMENT_NAME" show PerlConfig location

                                Unable to find directory for deployment .  Commands will not be run against this deployment.

                                No deployments found. Exiting...

                                xrxdallin002#

                                • 13. Re: Unable to install VPC

                                  HI Vivek,

                                  the $DEPLOYMENT_NAME should be replaced by the name of the appserver deployment name

                                  a quick way to find this in in br/deployments

                                  i guess for you it may be the xrxdallin002, but please check

                                   

                                  there is always a _template folder , and then the folders with the names of deployed app servers ( they appear in the infrastructure management section in the UI)

                                  • 14. Re: Unable to install VPC

                                    Hi Rohit,

                                     

                                    Thanks,it solved the issue.

                                     

                                    I changed $DEPLOYMENT_NAME to appserver deployment name in load-patch-content.nsh.

                                     

                                    Also i commented sanity check in the script-

                                     

                                    "$perl_config" "$bl_patch_path_native/Jython/testPerl.pl" > .testperl.out

                                    if [[ "$?" != "0" ]]; then

                                    log ""

                                    log "AppServer Perl configuration incorrect. Cannot locate Perl at $perl_config"

                                    exit 1

                                    fi

                                    rm -f .testperl.out

                                     

                                     

                                    Thanks!

                                    Vivek Singh