VMware Cloud Community
StoneLund
Contributor
Contributor

Stop-Vapp returns operation timed out.

Hi

I have a simple script that i want to power off a VAPP.

The script looks like this:

#Connect Vcenter
connect-viserver xx.xxx.xxx.xxx
Stop-VApp xxxx -confirm:$false

I executes and starts to shutdown the first three servers in the VAPP. However, before this task is done. It failes with the OperationTimeOut status.

These three servers however continues to shut down, but, the script does not move on to the next group in the VAPP. I have a 20 secund wait before it shall move on and continue to shut down the rest.

I have changed the timeout value in the virtual center server (Administration, vCenter server settings and timout to 600 seconds for normal and 1200 seconds for long. It dit not make any difference.

The full error is: (xxxxx is where the resgroup and vAPP names are).

Stop-VApp : 2012-04-25 15:59:13    Stop-VApp        The operation for the entit

y VirtualApp-resgroup-xxxxxxx failed with the following message: "Operation timed

out."

At line:1 char:10

+ Stop-VApp <<<<  xxxxxx -confirm:$false

    + CategoryInfo          : NotSpecified: (:) [Stop-VApp], Timedout

    + FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpda

   tes_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Commands.StopVApp

Anyone know what could be wrong?

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

Does the Stop-vApp times out after 15 minutes ?

Perhaps try the solution in KB1017253.

Is there any more info in the $error variable after the timeout ?

Do a

$error[0]

$error[0].Exception

Did you check the vCenter log for additional info ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
StoneLund
Contributor
Contributor

I get the time out error after like 30 seconds or something after it has started the shutdown of the first group of machines in the VAPP. I will check more logfiles tomorrow!

Sent from Lotus Traveler

LucD --- New message: "Stop-Vapp returns operation timed out." ---

Från: "LucD" <communities-emailer@vmware.com>

Till andreas.stenlund@boliden.com

Datum: ons, 25 apr 2012 18:13

Ämne New message: "Stop-Vapp returns operation timed out."

Reply
0 Kudos
StoneLund
Contributor
Contributor

This is some error logs i got from vcenter. Typing $error[0]

$error[0].Exception in the powercli did not return any data. Maybe there is some variable that sets the timeout to 50000ms somewhere??

2012-04-26T07:58:39.617+02:00 [04652 verbose 'Default'] Timed out reading between HTTP requests. : Read timeout after approximately 50000ms. Closing stream SSL(TCPStreamWin32(socket=TCP(fd=4328) local=127.0.0.1:8089,  peer=127.0.0.1:50251))

2012-04-26T07:59:42.035+02:00 [05552 warning 'Default' opID=f58b1661] [VpxdMoVAppPowerOp] Got exception during vApp start/stop: vim.fault.Timedout

2012-04-26T07:59:42.035+02:00 [03712 error 'Default' opID=f58b1661-4c] [VpxLRO] Unexpected Exception: vim.fault.Timedout

2012-04-26T07:59:42.035+02:00 [03712 info 'Default' opID=f58b1661-4c] [VpxLRO] -- FINISH task-1664 -- vm-146 -- VirtualMachine.powerOff --

2012-04-26T07:59:42.035+02:00 [03712 info 'Default' opID=f58b1661-4c] [VpxLRO] -- ERROR task-1664 -- vm-146 -- VirtualMachine.powerOff: vim.fault.Timedout:

--> Result:

--> (vim.fault.Timedout) {

-->    dynamicType = <unset>,

-->    faultCause = (vmodl.MethodFault) null,

-->    msg = "",

--> }

--> Args:

-->

2012-04-26T07:59:42.035+02:00 [05552 error 'Default' opID=f58b1661] (Log recursion level 2) vim.fault.Timedout

Reply
0 Kudos