5 Replies Latest reply on Oct 28, 2015 10:46 AM by CRB

    Batch SD Task fails after reboot despite batch reporting success

    Rookie

      I've got a batch software distribution task that has agent settings configured to always act as if a reboot is needed and prompt for a reboot after the batch is complete.

       

      The batch finishes without error, then the end user is prompted for reboot. Relevant portions from task log:


      *successful run of install above*

      C:\Program Files (x86)\LANDesk\LDClient\sdmcache\Packages\Juniper\JunosPulse5.0r11>SENDTASKSTATUS.EXE -core=*redacted* -taskid=345 -retcode=0 -complete

       

      C:\Program Files (x86)\LANDesk\LDClient\sdmcache\Packages\Juniper\JunosPulse5.0r11>"C:\Program Files (x86)\LANDesk\LDClient\sdistbat.exe" /setbatchstatus=0


      Fri, 16 Oct 2015 08:50:10 Installation result DB50000

      Fri, 16 Oct 2015 08:50:10 Rebooting system if needed

      Fri, 16 Oct 2015 08:50:24 processing of package is complete, result 229392420 (0x0dac4024 - code 16420)

      The user is then prompted to defer the reboot or reboot immediately. At this point, the result reported on the core is 'Task will continue after reboot'

       

      After the user reboots, the result changes to 'Task has been started' then to 'Unknown' with a status of Failed.

       

      It appears that the task is attempting to pick up where it left off after the user reboots, but there isn't anything to do as the batch distribution has already finished. Here's the same log after reboot:

       

      Fri, 16 Oct 2015 08:52:55 ******* sdclient starting to process task *******

      Fri, 16 Oct 2015 08:52:55 Task id to process: 345

      Fri, 16 Oct 2015 08:52:55 Command line: /policyfile="C:\ProgramData\LANDesk\Policies\CP.345._jtBhKWeh7Nfj55hkDqP0oTHz&#47nE=.xml" /reconnect

      Fri, 16 Oct 2015 08:52:55 The nostatus flag has NOT been set.

      Fri, 16 Oct 2015 08:52:55 Core name '*redacted*' obtained from active task list

      Fri, 16 Oct 2015 08:52:55 Sending task status, cmd line -coreandip=*redacted* -taskid=345 -retcode=229392442 "-ldap=*redacted*" -pkgid=324

      Fri, 16 Oct 2015 08:52:58 The nostatus flag has NOT been set.

      Fri, 16 Oct 2015 08:52:58 Core name '*redacted*' obtained from active task list

      Fri, 16 Oct 2015 08:52:58 Sending task status, cmd line -coreandip=*redacted* -taskid=345 -retcode=229392258 "-ldap=*redacted*" -pkgid=324

      Fri, 16 Oct 2015 08:53:00 processing of package is complete, result -1918091264 (0x8dac4000 - code 16384)

       

      Any ideas on how to get this to report as a success?

       

      EDIT: 9.6 SP2