Windows powershell hanging


#1

Hey all,

Has anyone ever seen a case where chef-client running non-interactively
hangs when using include_recipe “powershell” on windows systems?

This has got me all sorts of boggled right now.

Thanks,
John


#2

Did you try turning it off and then back on again?

Cheers,

AJ

On 5 May 2013 16:21, John E. Vincent (lusis)
lusis.org+chef-list@gmail.com wrote:

Hey all,

Has anyone ever seen a case where chef-client running non-interactively
hangs when using include_recipe “powershell” on windows systems?

This has got me all sorts of boggled right now.

Thanks,
John


#3

When you say hangs, do you know based on packages being downloaded or installed where in the default recipe it is getting to?

Also dumb question but your box can get to the microsoft download site if it’s trying to get the powershell bits?

Those are the first things that come to mind.

From: “John E. Vincent (lusis)” <lusis.org+chef-list@gmail.commailto:lusis.org+chef-list@gmail.com>
Reply-To: "lusis.org+chef-list@gmail.commailto:lusis.org+chef-list@gmail.com" <lusis.org+chef-list@gmail.commailto:lusis.org+chef-list@gmail.com>
Date: Saturday, May 4, 2013 9:21 PM
To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] windows powershell hanging

Hey all,

Has anyone ever seen a case where chef-client running non-interactively hangs when using include_recipe “powershell” on windows systems?

This has got me all sorts of boggled right now.

Thanks,
John


#4

Sorry for not responding sooner on this. Not long after I sent this, I had
a few distractions come up.

I think I was able to track this down to chef running too early in the boot
process of the system. It would seem to also be triggered if I RDP’d in too
soon after the system came up.

For now we worked around the issue by staging the chef run:

  • bootstrap-only recipe that adds a reboot task for chef-client run
  • drop the bootstrap recipe from the runlist and add the “real” runlist/role
  • reboot the system using the reboot handler

On Sun, May 5, 2013 at 9:01 PM, Moser, Kevin Kevin.Moser@nordstrom.comwrote:

When you say hangs, do you know based on packages being downloaded or
installed where in the default recipe it is getting to?

Also dumb question but your box can get to the microsoft download site if
it’s trying to get the powershell bits?

Those are the first things that come to mind.

From: “John E. Vincent (lusis)” <lusis.org+chef-list@gmail.com<mailto:
lusis.org+chef-list@gmail.com>>
Reply-To: "lusis.org+chef-list@gmail.com<mailto:
lusis.org+chef-list@gmail.com>" <lusis.org+chef-list@gmail.com<mailto:
lusis.org+chef-list@gmail.com>>
Date: Saturday, May 4, 2013 9:21 PM
To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <
chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] windows powershell hanging

Hey all,

Has anyone ever seen a case where chef-client running non-interactively
hangs when using include_recipe “powershell” on windows systems?

This has got me all sorts of boggled right now.

Thanks,
John