1 Reply Latest reply on Jul 24, 2019 11:17 AM by Ali Khoshkar

    Patrol Agent Uninstallation & then Re-installation Fail

    Ali Khoshkar
      Share This:

      Hello Everyone,

       

      I tried uninstalling a PatrolAgent from a linux vm, and I got the following errors:

       

       

       

      I opened the uninstallation log for more info and found the following:

       

      [PROD]revuakm

      [MILE]Begin uninstalling product &BMC PATROL for Red Hat Enterprise Virtualization

      [ERROR]Fork failed for script [^Gª°#DìÑ|Ù^Z]

      [MSG] Failed to run script [^Gª°#DìÑ|Ù^Z], err=[In ExecuteScript, failed to fork [^Gª°#DìÑ|Ù^Z], err=107]

      [MILE]Product &BMC PATROL for Red Hat Enterprise Virtualization completed.

      [STATUS]revuakm successful.

      [PERCT]   29

      [MSG]Product revuakm removed successfully

       

      And below in more detail:

       

       

      [13:27:53] Uninstall:Removed product nukuakm.

      [13:27:53] Uninstalling product [&BMC PATROL for Red Hat Enterprise Virtualization] [ID=revuakm], version 1.2.00.01

      [13:27:53] InitializeHistory:Initialized [/opt/bmc//Install/insthist/.IBFileHist] [/opt/bmc//Install/insthist/.IBProdHist] [/opt/bmc//Install/insthist/.IBJoinHist] [/opt/bmc//Install/insthist/.IBConfHist] [/opt/bmc//Install/insthist/.IBCJoinHist]

      [13:27:53] _RemoveDirectives:Removed uninstall entries for [/bin/rm -rf /opt/bmc/Patrol3/rev] [revuakm].

      [13:27:53] install_RunScript:Attempting to run script ^Gª°#DìÑ|Ù^Z

      [13:27:53] ChangeCWD:Warning: chdir failed for [^Gª°#DìÑ|Ù^Z] errno=2: Path may not have been specified.

      [13:27:53] install_RunScript:Error: Failed to run script [^Gª°#DìÑ|Ù^Z], err=[In ExecuteScript, failed to fork [^Gª°#DìÑ|Ù^Z], err=107]

      [13:27:53] _RemoveDirectives:Error: Uninstall script [^Gª°#DìÑ|Ù^Z] failed for [revuakm]

      [13:27:53] _RemoveDirectives:No install entries for [revuakm]

      [13:27:53] RemovePPFHistoryFiles:Removed directory '/opt/bmc/Install/insthist/revuakm'

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/com.bmc.patrol-sdk-1.2.00.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/rhevcollect.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/ovirt-engine-sdk-java-3.6.10.0.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/log4j-1.2.14.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/dom4j-1.6.1.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/httpcore-4.4.6.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/httpclient-4.5.2.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/commons-logging-1.1.3.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/commons-codec-1.9.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/jarfiles/commons-beanutils-1.9.3.jar] removed.

      [13:27:53] _UninstallAProduct:File [/opt/bmc/Patrol3/rev/REV_Data.xml] removed.

      [13:27:53] _UninstallAProduct:Directory [/opt/bmc/Patrol3/rev/jarfiles] removed

      [13:27:53] _UninstallAProduct:Directory [/opt/bmc/Patrol3/rev] removed

      [13:27:53] _RemoveDirectoryDirectives:No directory entries for [revuakm]

      [13:27:53] _UninstallAProduct:Product revuakm uninstalled.

      [13:27:53] CloseHistory:Closing history files and structures.

      [13:27:53] Uninstall:Removed product revuakm.

       

      The strange characters are exactly how they are written in the log file and not a result of a bad copy/paste.

       

      Anyways, after this I attempted to re-install a PatrolAgent (with a different configuration) to the same VM. The installer fatally exits and returns this message:

       

      PATROL Installer: Installation failed. See the RunSilentInstall log files store in: /opt/bmc/log/2019_03_14_14_01_41_install for detailed information.

       

      Here is the info I could gather from the installer logs:

       

      From entuity.company.ca_3181_install.log:

       

      [14:01:42] install_Products:Running PreInstall Actions.

      [14:01:42] util_ExtractScriptPath:Error: Script path [/opt/bmc/Patrol3/scripts.d/S50PatrolAgent.sh stop] does not exist.

      [14:01:42] install_TempFile:Error: Failed to extract pre-install script path /opt/bmc/Patrol3/scripts.d/S50PatrolAgent.sh stop

      [14:01:42] install_RunActions:Attempting to run script [/opt/bmc/Patrol3/scripts.d/S50PatrolAgent.sh stop]

      [14:01:42] install_RunScript:Attempting to run script /opt/bmc/Patrol3/scripts.d/S50PatrolAgent.sh stop

      [14:01:42] util_ExtractScriptPath:Error: Script path [/opt/bmc/Patrol3/scripts.d/S50PatrolAgent.sh stop] does not exist.

      [14:01:42] install_RunActions:Error: Action SCRIPT /opt/bmc/Patrol3/scripts.d/S50PatrolAgent.sh stop failed.

      [14:01:42] install_Products:PreInstall actions complete.

      [14:01:42] install_ABook:Warning: abort file name (/NP/ABORTFILE) is not defined.

      [14:01:42] ppf_ValidateOS:An override file entry was used to evaluate whether or not to install this package: itools

       

      [14:02:27] install_RunScript:Attempting to run script %{/BMC/INSTBASE}common/security/config_v3.0/kdb_install.sh %{/BMC/INSTBASE/NOSLASH} access %{/BMC/SECURITY/OVERWRITE}

      [14:02:27] util_ExtractScriptPath:Error: Script path [/opt/bmc/common/security/config_v3.0/kdb_install.sh /opt/bmc access FALSE] does not exist.

      [14:02:27] The specified script [/opt/bmc/common/security/config_v3.0/kdb_install.sh /opt/bmc access FALSE] does not exist.

      [14:02:27] Invalid script path [%{/BMC/INSTBASE}common/security/config_v3.0/kdb_install.sh %{/BMC/INSTBASE/NOSLASH} access %{/BMC/SECURITY/OVERWRITE}].

      [14:02:27] _InstallAProduct:Error: [INSTALL] script [%{/BMC/INSTBASE}common/security/config_v3.0/kdb_install.sh %{/BMC/INSTBASE/NOSLASH} access %{/BMC/SECURITY/OVERWRITE}] for product &PATROL Security Product ESI failed.

      [14:02:27] Unable to execute script [%{/BMC/INSTBASE}common/security/config_v3.0/kdb_install.sh %{/BMC/INSTBASE/NOSLASH} access %{/BMC/SECURITY/OVERWRITE}] for product [kdbv3].

      Refer to the install log file for more details.

      [14:02:27] _InstallAProduct:Installation of &PATROL Security Product ESI aborted.

      [14:02:27] MakeDirectory:Directory [/opt/bmc/Install/insthist/kdbv3] created.

      [14:02:27] install_ABook:Error: Installation failed during product [kdbv3]

      [14:02:27] install_Products:Error: Installation failed in book [PATROL Security Component]

      [14:02:27] _Shutdown:Shutting down Thorium.

      [14:02:27] CloseHistory:Closing history files and structures.

      [14:02:27] main:Running PostInstall Actions.

      [14:02:27] install_RunActions:Created symlink [/opt/bmc/Patrol3/Linux-2-6-x86-64-nptl/lib] -> [/opt/bmc/Patrol3/lib]

      [14:02:27] install_RunActions:Attempting to run script [root@/bin/chmod -R go-w /opt/bmc/Patrol3/*]

      [14:02:27] install_RunScript:Attempting to run script root@/bin/chmod -R go-w /opt/bmc/Patrol3/*

      [14:02:27] RunExpectTool:Attempting to run [/bin/chmod] as [root]

      [14:02:27] RunExpectTool:Information: Using su command /bin/su

      [14:02:29] RunExpectTool:/bin/chmod -R go-w /opt/bmc/Patrol3/*

      [14:02:30] RunExpectTool:Child's process exit status from waitpid() is 0

      [14:02:30] RunExpectTool:Finished running script [/bin/chmod], script's exit code = [0]

      [14:02:30] install_RunScript:Successfully ran script [/bin/chmod]

      [14:02:30] install_RunActions:Attempting to run script [/opt/bmc/Patrol3/change_owner.sh duma /opt/bmc/]

      [14:02:30] install_RunScript:Attempting to run script /opt/bmc/Patrol3/change_owner.sh duma /opt/bmc/

      [14:02:31] ExecuteScript:No need to change the owner of agent installation

      [14:02:31] ExecuteScript:Finished running script [/opt/bmc/Patrol3/change_owner.sh], exit code=[1]

      [14:02:31] install_RunScript:Successfully ran script [/opt/bmc/Patrol3/change_owner.sh]

      [14:02:31] install_RunActions:Attempting to run script [/opt/bmc/Patrol3/post_check.sh]

      [14:02:31] install_RunScript:Attempting to run script /opt/bmc/Patrol3/post_check.sh

      [14:02:32] ExecuteScript:[ABORT_EXIT]/opt/bmc/Patrol3//target script missing!

      [14:02:32] ExecuteScript:Finished running script [/opt/bmc/Patrol3/post_check.sh], exit code=[1]

      [14:02:32] install_RunActions:Action SCRIPT /opt/bmc/Patrol3/post_check.sh reported ABORT_EXIT

      [14:02:32] Unable to execute script [/opt/bmc/Patrol3/post_check.sh] for product [PATagentCfg].

      Refer to the install log file for more details.

       

       

       

      From entuity.company.ca_3181_install-output.log :

       

      [ERROR] Product &PATROL Security Product ESI aborted!

      [STATUS]kdbv3 aborted.

      [MSG]Installation of &PATROL Security Product ESI Aborted!

      [ERROR] Product &PATROL Security Product ESI failed!

      [STATUS]kdbv3 failed.

      [MSG]Running PostInstall Actions.

      [ABORT_EXIT]/opt/bmc/Patrol3//target script missing!

      [MSG]Installation Failed.

      [END OF SESSION]

       

       

      From entuity.company.ca_3181_install-user.log :

      The specified script [/opt/bmc/common/security/config_v3.0/kdb_install.sh /opt/bmc access FALSE] does not exist.

      Invalid script path [%{/BMC/INSTBASE}common/security/config_v3.0/kdb_install.sh %{/BMC/INSTBASE/NOSLASH} access %{/BMC/SECURITY/OVERWRITE}].

      Unable to execute script [%{/BMC/INSTBASE}common/security/config_v3.0/kdb_install.sh %{/BMC/INSTBASE/NOSLASH} access %{/BMC/SECURITY/OVERWRITE}] for product [kdbv3].

      Refer to the install log file for more details.

      Unable to execute script [/opt/bmc/Patrol3/post_check.sh] for product [PATagentCfg].

      Refer to the install log file for more details.

        • 1. Re: Patrol Agent Uninstallation & then Re-installation Fail
          Ali Khoshkar

          This has happened to me again. I tried uninstalling a Patrol agent on a linux VM and got the same error:

           

           

          Is this a known issue? What is the workaround?

           

          I opened the log and found this:

           

          [PROD]revuakm

          [MILE]Begin uninstalling product &BMC PATROL for Red Hat Enterprise Virtualization

          [ERROR]Fork failed for script [ ª°#DìÑ|Ù ]

          [MSG] Failed to run script [ ª°#DìÑ|Ù ], err=[In ExecuteScript, failed to fork [ ª°#DìÑ|Ù ], err=107]

           

          [11:40:31] install_RunScript:Attempting to run script  ª°#DìÑ|Ù

          [11:40:31] ChangeCWD:Warning: chdir failed for [ ª°#DìÑ|Ù ] errno=2: Path may not have been specified.

          [11:40:31] install_RunScript:Error: Failed to run script [ ª°#DìÑ|Ù ], err=[In ExecuteScript, failed to fork [ ª°#DìÑ|Ù ], err=107]

          [11:40:31] _RemoveDirectives:Error: Uninstall script [ ª°#DìÑ|Ù ] failed for [revuakm]