Trying to push Kbox agent with Bigfix, getting 'thread execution fail'

(imported topic written by davidfriend91)

I’m trying to push the Kbox agent via our Bigfix system, I used the software distribution wizard to upload and setup the deployment. Here is the detail:

download http://relay:52311/Uploads/7682f46ad6cd1ffba63bdf7c6b7c6/KInstallerSetupexe.tmp

continue if {(size of it = 2631033 AND sha1 of it = “7682f46ad6cd1ffb66b877ada82a63bdf7c6b7c6”) of file “KInstallerSetupexe.tmp” of folder “__Download”}

extract KInstallerSetupexe.tmp

wait “__Download\kinstallersetup.exe -server=kbox.biology.duke.edu -display_mode=silent”

On the target system, this is what is posted to the log file:

At 19:27:23 -0400 -

ActionLogMessage: (action 145962 ) starting action

At 19:27:24 -0400 - actionsite (http://relay:52311/cgi-bin/bfgather.exe/actionsite)

Command succeeded (Using download manager collected file) download http://relay:52311/Uploads/7682f46ad6cd1ffb66b877ada82a63bdf7c6b7c6/KInstallerSetupexe.tmp (fixlet 145962)

At 19:27:26 -0400 - actionsite (http://relay:52311/cgi-bin/bfgather.exe/actionsite)

Command succeeded (evaluated true) continue if {(size of it = 2631033 AND sha1 of it = “7682f46ad6cd1ffb66b877ada82a63bdf7c6b7c6”) of file “KInstallerSetupexe.tmp” of folder “__Download”} (fixlet 145962)

Command succeeded extract KInstallerSetupexe.tmp (fixlet 145962)

At 19:27:27 -0400 - actionsite (http://relay:52311/cgi-bin/bfgather.exe/actionsite)

Command failed (Thread execution failed) wait “__Download\kinstallersetup.exe -server=kbox.biology.duke.edu -display_mode=silent” (fixlet 145962)

At 19:27:27 -0400 -

ActionLogMessage: (action 145962 ) ending action

The target is a VM running Windows XP, when I execute the command manually on the target it works great, any ideas??

(imported comment written by MattBoyd)

Try removing the quotes:

wait __Download\kinstallersetup.exe -server=kbox.biology.duke.edu -display_mode=silent

(imported comment written by davidfriend91)

I thought the quotes were put there because the command has spaces in it, is that not correct?

(imported comment written by MattBoyd)

Hey David,

You shouldn’t put quotes around the entire command. You only need to put quotes around the executable, and only if there are spaces in the name/path. For example:

wait “C:\my path with spaces\my application.exe” -argument1 -arg2

(imported comment written by SystemAdmin)

Just as a point of note, using the __Download directory to execute something can have problems. If using any form of “run” you could encounter problems where the executable might take a long time or crash and make the client unable to run another action during this time. Please move it to some temporary location first in this case.

(imported comment written by MrFixit)

Is that a new recommnedation? Much of the content that Bigfix provides runs out of __download. We have used or followed that example for much of our own custom content.

We also avoid creating or expanding any content into a __doanload folder, and clearly don’t expect anything to survive past the action’s completion.

What are the implications? Are there other parts of the folder structure that can cause issues?

‘Createfile until’ is another example where it is common to just move it within the folder that it was created and then use it and then remove when done.

-Gary

(imported comment written by MattBoyd)

I’d like to second Gary’s question. That suggestion seems counter-intuitive to what the Software Distribution Wizard does.

(imported comment written by SystemAdmin)

I clarified the statement, sorry for any concerns.

(imported comment written by MattBoyd)

Thanks Alan, that’s a good point.