On Windows Server 2008 & 2008R2 the following exception occurs:
================================================================================
Error executing action `install` on resource 'chef_gem[rubyzip]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of C:/opscode/chef/embedded/bin/gem install rubyzip -q --no-rdoc --no-ri -v "1.1.7" ----
STDOUT:
STDERR: [FATAL] failed to allocate memory
---- End output of C:/opscode/chef/embedded/bin/gem install rubyzip -q --no-rdoc --no-ri -v "1.1.7" ----
Ran C:/opscode/chef/embedded/bin/gem install rubyzip -q --no-rdoc --no-ri -v "1.1.7" returned 1
This does NOT happen on Windows Server 2012 & 2012 R2.
Adjusting the winrm settings did not fix the issue.
Rubyzip seems to be the issue with too many objects being allocated: http://blog.huangzhimin.com/2012/10/02/avoid-using-rubyzip/
Replacing the rubyzip implementation with powershell fixed the issue: https://stackoverflow.com/a/26843122/4548096