Hello,
lately I have been getting an error during a script execution in a guest. Linux servers as well as Windows is affected.
I am using the package to change the root\admin password as a day-2 operation after provisioning a system with vRA. The script simply executes "passwd root" or "net user administrator [paqssword]" on the new server.
The error is under Linux:
"A general system error occurred: Failed to generate url (Workflow:Copy file from guest to vCO / Scriptable task (item1)#9)"
the vCenter Event Log report "Guest operation authentication failed for operation Create Temporary Directory on Virtual machine [vmname]"
The nested workflow that is throwing the error is the "Copy file from guest to vCO" workflow, the code line that the error is pointing to is:
var ftInfo = fileManager.initiateFileTransferFromGuest(vm , guestAuth ,guestFilePath);
The guestFilePath value is imported from the attribute scriptOutputFile = /tmp/vmware-root/vmware160/vco_vmware185
Under Windows:
A general system error occurred: Failed to generate URL (Workflow:Copy file from vCO to guest / Scriptable task (item1)#11)
This time the "Copy file from vCO to guest"
var uri = fileManager.initiateFileTransferToGuest(vm , guestAuth ,guestFilePath, attr, srcFile.length, overwrite);
The value for guestFilePath is coming from cmdAnsiGuestPath = C:\Users\[username]\AppData\Local\Temp\vmware20\cmdANSI.exe
Could anyone please help me troubleshoot this?