1 2 Previous Next 26 Replies Latest reply: Aug 12, 2013 3:48 PM by Magnus Ruschpler RSS

    NSH script-jobs exit with "Exit Code 13" although everything is fine

    Steffen Kreis

      Hi,

       

      we do run a NSH-script Job which determines the HW-platform of a target-server , installs the appropriate HW-Tools and then reports back if evertyhing ran fine or not.

       

      After we upgraded this environment to 8.2 SP1 we occasionally see that the Script-Job fails reporting "Exit Code 13" although everything ran fine and it actually had executed a "exit 0"

       

      This is the last bit of the script that does the checks if the HW-Tools installation went fine:

       

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

      .....

      # Finally we have to verify if the JobRun finished successfull or not

      blcli_execute JobRun getJobRunHadErrors $HW_JOB_RUNKEY

          RC=$?

          if [ $RC -ne 0 ]; then

              echo "No corresponding Job has been found. Aborting"

              exit 1

          fi

      blcli_storeenv HW_JOBRUN_HAD_ERRORS

       

      if [ $HW_JOBRUN_HAD_ERRORS = "false" ]; then

          echo "\nInstallation of $SYS_hardware_manufacturer finished successfully on $TARGET"

          exit 0

      else

           echo "\nInstallation of $SYS_hardware_manufacturer failed on $TARGET. Aborting"

          exit 1

      fi

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

       

       

      What we see in the Job-Log when this is failing is the following:

       

      Info    May 29, 2012 1:07:49 PM    DBKey:SJobRunKeyImpl:2309569false

      Info    May 29, 2012 1:07:49 PM    Installation of HP finished successfully on dummy.domain.something

      Info    May 29, 2012 1:07:49 PM    Exit Code 13

       

       

      The Log from the Job-Server executing the above just contains the following:

       

      ##########################################################################################################################

      ...

      [29 May 2012 13:07:48,030] [Job-Execution-0] [INFO] [dummy@domain.something:Admin-Role:] [Batch] The job 'HP Tools.install' has succeeded

       

      [29 May 2012 13:07:49,561] [Client-Connections-Thread-1] [INFO] [dummy@domain.something:Admin-Role:123.123.123.123] [Client] Connection disconnecting: id = 136

       

      [29 May 2012 13:07:49,624] [Client-Connections-Thread-8] [INFO] [dummy@domain.something:Admin-Role:123.123.123.123] [Client] User 'dummy@domain.something' assumed the role 'Admin-Role'

       

      [29 May 2012 13:07:49,780] [Client-Connections-Thread-3] [INFO] [dummy@domain.something:Admin-Role:123.123.123.123] [Client] Connection disconnecting: id = 146

       

      [29 May 2012 13:07:49,795] [WaitForProcessThread-PID-344-64] [INFO] [dummy@domain.something:Admin-Role:] [NSHScript] Process finished: 344

       

      [29 May 2012 13:07:49,795] [Job-Execution-4] [ERROR] [dummy@domain.something:Admin-Role:] [NSHScript] The job 'Install HW Tools' has failed

       

      [29 May 2012 13:07:49,811] [Job-Execution-1] [ERROR] [dummy@domain.something:Admin-Role:] [Batch] Member job Install HW Tools failed

       

      [29 May 2012 13:07:49,811] [Job-Execution-1] [ERROR] [dummy@domain.something:Admin-Role:] [Batch] The job 'Windows 2008 Post Deployment.stable' has failed

      ##########################################################################################################################

       

       

       

      I have seen another post on the community were somebody was wondering about that "Exit Code 13"

       

      Has anybody seen that before and knows what is causing this ?

       

      Regards

      Steffen

        1 2 Previous Next