Skip to content

Mixlib::ShellOut commands keep dying with out of memory errors #17

@docwhat

Description

@docwhat

Whenever Mixlib::ShellOut (e.g. the execute command in a recipe) is used, the executed process runs out of memory.

The cookbooks I'm using have only done chef-service-manager and gem (from 'chef-sugar') and both are ruby commands. So I don't know if it is a ruby-specific problem or not.

It's very odd because the commands run fine by hand as Administrator.

Ciao!

Example:

================================================================================
       Error executing action `run` on resource 'execute[register-chef-service]'
       ================================================================================

       Mixlib::ShellOut::ShellCommandFailed
       ------------------------------------
       Expected process to exit with [0], but received '1'
       ---- Begin output of chef-service-manager -a install ----
       STDOUT:
       STDERR: C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': failed to allocate memory (NoMemoryError)
        from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.6-x86-mingw32/lib/chef/provider/service/windows.rb:24:in `<top (required)>'
        from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.6-x86-mingw32/lib/chef/providers.rb:85:in `<top (required)>'
        from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.6-x86-mingw32/lib/chef.rb:25:in `<top (required)>'
        from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.6-x86-mingw32/bin/chef-service-manager:23:in `<top (required)>'
        from C:/opscode/chef/bin/chef-service-manager:23:in `load'
        from C:/opscode/chef/bin/chef-service-manager:23:in `<main>'
       ---- End output of chef-service-manager -a install ----
       Ran chef-service-manager -a install returned 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions