popularity question answers views user  
0
Powershell - Script Execution Hangs

i’ve been working with Chef 0.10.8. I’ve tired using the stock powershell cookbook (default. recipe) on Windows Server 2008 Enterprise R2 x64, Windows Server 2003 Enterprise R2 x64, and Windows Server 2003 Enterprise R2 32-bit. I’ve used powershell 1.0.1 and 1.0.2. On the first pass of chef-client all os’s and powershell version install powershell. all attempt to run chef-client afterwords, hang on executing ps1 files.

Here is some of the debug output from chef-client Windows 2003 32-bit Powershell 1.0.1

[Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Synchronizing cookbook powershell [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/recipes/default.rb, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/recipes/olddefault.rb, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/libraries/core.rb, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/libraries/helper.rb, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/attributes/default.rb, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/README.md, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/metadata.rb, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Not storing cookbooks/powershell/metadata.json, as the cache is up to date. [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Loading cookbook powershell’s library file: c:/etc/chef/cache/cookbooks/powershell/libraries/core.rb [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Loading cookbook powershell’s library file: c:/etc/chef/cache/cookbooks/powershell/libraries/helper.rb [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Node vc-bc9ecc6329ef.vci.local loading cookbook powershell’s attribute file c:/etc/chef/cache/cookbooks/powershell/attributes/default.rb [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Loading Recipe powershell via include_recipe [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: Found recipe default in cookbook powershell [Thu, 26 Jan 2012 13:49:51 -0800] DEBUG: sh(powershell.exe -Command “& {Get-Host}”)

Name : ConsoleHost Version : 2.0 InstanceId : e09784ac-63d9-428d-bf85-d26c8f3508be UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-US CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace

——— It hangs here.

Any thoughts,

WP

more →
1 717