- From: Raphael Bauduin <
>
- To:
- Subject: [chef] cron gives a broken pipe
- Date: Tue, 15 Feb 2011 14:06:24 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BJF4lXwAQRQTIoYasDAFiwypE+QHThXbqOo7XQcvaggOuuybkVWTLZwmPp0mClemBG o8IJRaExY5tPrvh1GBf9erLmzujFmuzVQNLTTUg3BomvIcjfK2abWbDrWPRNPR7zeGyL jxFuqp+p8BhHx+8pR75p/UaBWi/IVsHUlMuvQ=
Hi,
I get a broken pipe error when creating a cron tasks. The cron file is
empty when the recipe is run.
Here's the error message:
[Mon, 14 Feb 2011 07:39:36 +0000] DEBUG: Cron empty for 'deploy'
[Mon, 14 Feb 2011 07:39:36 +0000] ERROR: cron[Add scout cron task]
(/root/scalarium-agent/site-cookbooks/scout/recipes/install.rb line
23) had an error:
Broken pipe
/root/scalarium-agent/bin/../vendor/gems/gems/naked-chef-0.8.1/bin/../lib/chef/provider/cron.rb:147:in
`write'
Line 23 of the recipe is
cron "Add scout cron task" do
action :create
command "/usr/local/bin/scout #{MYID]}"
user "deploy"
end
line 147 of cron.rb is:
status = popen4("crontab -u
-",
:waitlast => true) do |pid, stdin, stdout, stderr|
crontab.each { |line| stdin.puts "#{line}" }
end
I've seen I'm not the only one to get this problem (look at the bottom
of this page:
https://github.com/gcao/chef) but I have not found any
explanations or solutions to this. Any hint?
Thanks
Raph
--
Web database:
http://www.myowndb.com
Free Software Developers Meeting:
http://www.fosdem.org
- [chef] cron gives a broken pipe, Raphael Bauduin, 02/15/2011
Archive powered by MHonArc 2.6.16.