cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 

BUG: OpsCenter 7.1 Installation (error: incorrect format: unknown tag)

BobbyD_FL
Level 2

New installation of OpsCenter 7.1 on Red Hat Enterprise Linux Server release 6.0 (Santiago).

Problem:

During installation of OpsCenter 7.1 you may receive the below output and error messages:

-------------------------------

Performing configurations on <server name>

Setting environment variables
sh -x error: incorrect format: unknown tag/SYMCOpsCenterServer/bin/configureEnv.sh -jreHome error: incorrect format: unknown tag/latest -platform Linux_x86_64
-serverInstallDir error: incorrect format: unknown tag/SYMCOpsCenterServer -guiInstallDir error: incorrect format: unknown tag/SYMCOpsCenterGUI
-atServerInstallDir error: incorrect format: unknown tag/VRTSat/ -installationType 2 -configDir error: incorrect format: unknown tag/SYMCOpsCenterServer
-opsCenterHostName whqnbu01p -isClustered 2
sh -x error: incorrect format: unknown tag/SYMCOpsCenterGUI/bin/configureEnv.sh -jreHome error: incorrect format: unknown tag/latest -platform Linux_x86_64
-serverInstallDir error: incorrect format: unknown tag/SYMCOpsCenterServer -guiInstallDir error: incorrect format: unknown tag/SYMCOpsCenterGUI
-atServerInstallDir error: incorrect format: unknown tag/VRTSat/ -installationType 2 -configDir error: incorrect format: unknown tag/SYMCOpsCenterServer
-opsCenterHostName whqnbu01p -isClustered 2


Copying war file

Setting up GUI
error: incorrect format: unknown tag/SYMCOpsCenterGUI/bin/goodies/configureGUI.sh
error: incorrect format: unknown tag/SYMCOpsCenterGUI/bin/goodies/createSSLStore.sh
error: incorrect format: unknown tag/SYMCOpsCenterGUI/bin/goodies/configureWSDefaults.sh
error: incorrect format: unknown tag/SYMCOpsCenterGUI/bin/goodies/configurePorts.sh -httpPort 80 -httpsPort 443 -shutdownPort 8105 -keystoreFile error:
incorrect format: unknown tag/SYMCOpsCenterGUI/Security/keystore
error: incorrect format: unknown tag/SYMCOpsCenterGUI/bin/goodies/configureMemory.sh


Setting up PBX

Setting up links


Setting PostInstall Configurations
error: incorrect format: unknown tag/SYMCOpsCenterServer/bin/postinstall.sh

Setting up the Database
error: incorrect format: unknown tag/SYMCOpsCenterServer/bin/configureDb.sh -dbDataFileLocation "/var/symantec/OpsCenterServer" -dbTempFileLocation "/var/symantec/OpsCenterServer" -clusterMode "2"

Creating Links for dbsrv11 and dbsrv11.lic

Configuring VxAT

Updating VxAT parameters

error: incorrect format: unknown tag/SYMCOpsCenterServer/bin/configureAt.sh -installationType 2 -vxssHostname localhost -vxssPort 2821 -vxssPbxPort 1556
-vxssUsername admin -vxssPassword  Vxadmin -vxssDomain broker

-------------------------------

--Installation log file: (bold text)

9:40:41  exec LANG=C /bin/rpm -q VRTSatServer 2>&1
9:40:41  VRTSatServer-4.3.46.0-0.i386
9:40:41  exit=0
9:40:41  exec LANG=C /bin/rpm -q --queryformat '%{INSTALLPREFIX}' VRTSatServer 2>&1
9:40:41  error: incorrect format: unknown tag

9:40:41  exit=0
9:40:41  exec LANG=C /bin/ls /var/VRTSat/.VRTSat/profile/VRTSatlocal.conf 2>/dev/null
9:40:41  /var/VRTSat/.VRTSat/profile/VRTSatlocal.conf
9:40:41  exit=0
9:40:41  exec LANG=C /bin/grep Mode "/var/VRTSat/.VRTSat/profile/VRTSatlocal.conf" 2>&1
9:40:41  "Mode"=dword:00000000
9:40:41  exit=0
9:40:41  Mode is [0]
9:40:41  exec LANG=C /bin/ls /etc/vx/VRTSnom/InstallPath 2>/dev/null
9:40:41
9:40:41  exit=2
9:40:41  exec LANG=C /bin/rpm -q VRTSccsvs 2>&1
9:40:41  package VRTSccsvs is not installed
9:40:41  exit=1
9:40:41  exec LANG=C /bin/ls /etc/SuSE-release 2>/dev/null
9:40:41
9:40:41  exit=2
9:40:41  exec LANG=C /bin/ls /etc/redhat-release 2>/dev/null
9:40:41  /etc/redhat-release
9:40:41  exit=0

Cause:

rpm querytag INSTALLPREFIX is no longer a valid tag with rpm-4.8.0-12 or greater.

Fix:

Either Symantec will update the below recommendation with a patch release or you'll have the edit the file manually by change the querytag from INSTALLPREFIX to PREFIXES.

Update below Perl script: (Within the OpsCenter extraction)

1. Edit the below file:

OpsCenter_7.1_X64/LinuxR_x86_64/Server/scripts/CPI/prod/common/Utils.pm

2. Find the below line: (around lines 49)

   if ($CPI::SYS{$sys}{OS} eq "Linux"){
        $baseDir = CPI::do_sys($sys, "$CPI::PLAT{Linux}{RPM} -q $pkg");
        if ($baseDir =~ /not installed/){
            $baseDir="";
        }else{

            # Need to write in a hack for VEA here
            # The rpm doesn't have INSTALLPREFIX defined
            # so rpm returns "(none)" which causes problems.
            # B/c it's non-relocatable, let's just set to /opt

            if ($pkg eq "VRTSob"){
                $baseDir="/opt";
            } else {
                $baseDir = CPI::do_sys($sys, "$CPI::PLAT{Linux}{RPM} -q --queryformat '%{INSTALLPREFIX}\n' $pkg");
            }
        }
    }

3. Change the above lines to the BOLD lines below:

    if ($CPI::SYS{$sys}{OS} eq "Linux"){
        $baseDir = CPI::do_sys($sys, "$CPI::PLAT{Linux}{RPM} -q $pkg");
        if ($baseDir =~ /not installed/){
            $baseDir="";
        }else{

            # Need to write in a hack for VEA here
            # The rpm doesn't have INSTALLPREFIX defined
            # so rpm returns "(none)" which causes problems.
            # B/c it's non-relocatable, let's just set to /opt

            if ($pkg eq "VRTSob"){
                $baseDir="/opt";
            } else {
                $baseDir = CPI::do_sys($sys, "$CPI::PLAT{Linux}{RPM} -q --queryformat '%{PREFIXES}\n' $pkg");
            }
        }
    }

4. Save & Exit, re-run installation

0 REPLIES 0