[chef] Re: Re: Re: What kind of limit am I hitting to?


Chronological Thread 
  • From: Jesse Nelson < >
  • To: chef < >
  • Subject: [chef] Re: Re: Re: What kind of limit am I hitting to?
  • Date: Wed, 30 Jan 2013 13:17:52 -0800

this seems like a bug to me. Its prob worth making a ticket so someone can investigate. 


On Wed, Jan 30, 2013 at 1:07 PM, Andrey Brindeyev < " target="_blank"> > wrote:
On Wed, Jan 30, 2013 at 12:52 PM, Jesse Nelson < " target="_blank"> > wrote:
Have you tried running the block outside of chef?  The error EAGAIN is a blocking error. Can you try to capture your process count in your actual recipe ? 

This Stackoverflow article hints that it could be something in Mixlib::ShellOut. Probably worth looking  at it. 

Jesse,

I'm getting error on following block in Mixlib::ShellOut:

      def set_user
        if user
          Process.euid = uid
          Process.uid = uid
        end
      end

It's not a fork, it's actually after fork.

Same command outside chef recipe works fine.

I actually found a workaround yesterday:

bash "copy-to-pickup" do
    code "su -c 'cp -f #{xyz_filename} #{pickup_filename}' #{ node[:abcattr][:user] }"
#    user node[:abcattr][:user]
#    group node[:abcattr][:group]
    action :run
end

Works like a charm!

Andrey.




Archive powered by MHonArc 2.6.16.

§