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_userif userProcess.euid = uidProcess.uid = uidendendIt'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" docode "su -c 'cp -f #{xyz_filename} #{pickup_filename}' #{ node[:abcattr][:user] }"# user node[:abcattr][:user]# group node[:abcattr][:group]action :runendWorks like a charm!Andrey.
Archive powered by MHonArc 2.6.16.