SovLabs Support

Submit a Ticket My Tickets
Welcome
Login

Life Cycle Toolkit Batch scripts failing to execute

Problem 

Affects Life Cycle Toolkit custom scripts configured to run a batch script (.bat).  The batch script is copied to the intended host, but fails to execute.


Cause

The script attempts to execute in the guest OS but never completes. The result of this behavior is increased builds times (around 30 minutes) while the workflow waits for the script to execute in the guest OS.


Symptoms

In the Debug Logs on the "SovLabs_LC_EBS_MachineProvsioned_PRE_#_workflow" will have the following code block repeated


"Waiting for the process to finish running. (C:\Windows\Temp\sovlabs.script.#.bat)"

Eventually the workflow appears to be completed  successfully but the script fails to execute and the output is


"Result:{"exitCode":1,"stdOut":"","stdErr":""". 


In the Guest OS the batch script is copied to C:\Windows\Temp\sovlabs.script.#.bat.

In the Guest OS a command prompt is running using the Service Account used for the LCT script configuration. (see image below)



Affected Versions

  • All SovLabs versions previous to 2019.18.0.


Solution

Upgrade to the current SovLabs plugin (2019.18.0 or later) if currently on an older version of the plugin.  There is no other workaround for this issue.


Plugin Upgrade Process

  1. Create a Support Request at: https://support.sovlabs.com.
  2. Follow the standard plugin upgrade process using the latest version provided by SovLabs Support.




Additional information

Follow the standard plugin upgrade process here: http://docs.sovlabs.com/latest/vRA/7.6/getting-started/sovlabs-plugin/upgrade.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.