Cloud service deployment/instance startup abort timeout

%3CLINGO-SUB%20id%3D%22lingo-sub-2708336%22%20slang%3D%22en-US%22%3ECloud%20service%20deployment%2Finstance%20startup%20abort%20timeout%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2708336%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20deploying%20or%20restarting%20a%20worker%20role%20instance%20in%20a%20cloud%20service%2C%20if%20there%20is%20a%20problem%20in%20the%20startup%20code%20-%20the%20role%20instance%20seems%20to%20go%20through%20roughly%204%20hours%20of%20restart%20attempts%20before%20finally%20timing%20out%20and%20giving%20up.%20I'm%20not%20sure%20if%20this%20is%20dependent%20on%20the%20type%20of%20failure%20occurring%2C%20but%20it's%20surely%20not%20a%20sensible%20timeout...%204%20hours%26nbsp%3B%20-%20the%20issue%20is%20that%20the%20cloud%20service%20is%20blocked%20for%20this%20period%2C%20it%20doesn't%20seem%20possible%20to%20do%20anything%20else%20such%20as%20abort%20the%20startup%20etc.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20has%20just%20cost%20me%20a%20day%2C%20in%20my%20case%20the%20worker%20role%20was%20setting%20up%20an%20OWIN%20self%20hosted%20service%20that%20depended%20on%20an%20identity%20server%20which%20was%20unreachable%20-%20code%20running%20within%20the%20OnStart%20event%20was%20failing%20and%20I%20was%20stuck%20for%20hours.%20I%20tried%20pretty%20much%20everything%20from%20azure%20portal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuestions%20-%20can%20we%20set%20the%20timeout%3F%20can%20we%20abort%20an%20instance%20startup%3F%20(perhaps%20some%20stuff%20that%20can%20be%20done%20via%20the%20CLI%20that%20isn't%20available%20via%20the%20portal%3F)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

When deploying or restarting a worker role instance in a cloud service, if there is a problem in the startup code - the role instance seems to go through roughly 4 hours of restart attempts before finally timing out and giving up. I'm not sure if this is dependent on the type of failure occurring, but it's surely not a sensible timeout... 4 hours  - the issue is that the cloud service is blocked for this period, it doesn't seem possible to do anything else such as abort the startup etc. 

 

This has just cost me a day, in my case the worker role was setting up an OWIN self hosted service that depended on an identity server which was unreachable - code running within the OnStart event was failing and I was stuck for hours. I tried pretty much everything from azure portal.

 

Questions - can we set the timeout? can we abort an instance startup? (perhaps some stuff that can be done via the CLI that isn't available via the portal?)

 

thanks

 

0 Replies