- From: Andrey Brindeyev <
>
- To:
- Subject: [chef] Re: Re: What kind of limit am I hitting to?
- Date: Wed, 30 Jan 2013 13:07:20 -0800
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.