I’m trying to update all my chef-clients trough a chef recipe, I’m using a
modified recipe based on opscode’s chef cookbook,
What I’m trying to do is pretty simple:
I’m having problems on the first chef run, I use to login to the machine and
run chef-client as root, then the run hangs (chef does not get restarted)
and I get the following error:
Theres already a chef restart recipe in my cookbooks repository. Its
been tested and works perfectly with chef-solo. For restarting
chef-client im unsure how to tackle that. But would very much like to
see such capability incorporated into the recipe.
Hi,
I'm trying to update all my chef-clients trough a chef recipe, I'm using a
modified recipe based on opscode's chef cookbook,
What I'm trying to do is pretty simple: gist:2fd4fce806aa0c33edb0 · GitHub
I'm having problems on the first chef run, I use to login to the machine and
run chef-client as root, then the run hangs (chef does not get restarted)
and I get the following error:
[Mon, 20 Sep 2010 20:33:02 +0000] INFO: Installing gem_package[chef] version
0.9.8
[Mon, 20 Sep 2010 20:33:24 +0000] INFO: gem_package[chef] sending restart
action to service[chef-client] (immediate)
[Mon, 20 Sep 2010 20:33:24 +0000] FATAL: SIGTERM received, stopping
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Running exception handlers
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Exception handlers complete
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Re-raising exception: SystemExit -
exit
If I restart chef as delayed on the recipe I have the same problem but at
the end of the run.
I am looking some help on the debug or some (better) strategies on auto
updating chef through minor releases.
Thanks.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
Hi,
I'm trying to update all my chef-clients trough a chef recipe, I'm using a
modified recipe based on opscode's chef cookbook,
What I'm trying to do is pretty simple: gist:2fd4fce806aa0c33edb0 · GitHub
I'm having problems on the first chef run, I use to login to the machine and
run chef-client as root, then the run hangs (chef does not get restarted)
and I get the following error:
[Mon, 20 Sep 2010 20:33:02 +0000] INFO: Installing gem_package[chef] version
0.9.8
[Mon, 20 Sep 2010 20:33:24 +0000] INFO: gem_package[chef] sending restart
action to service[chef-client] (immediate)
[Mon, 20 Sep 2010 20:33:24 +0000] FATAL: SIGTERM received, stopping
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Running exception handlers
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Exception handlers complete
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Re-raising exception: SystemExit -
exit
If I restart chef as delayed on the recipe I have the same problem but at
the end of the run.
I am looking some help on the debug or some (better) strategies on auto
updating chef through minor releases.
Thanks.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com
Thanks for the answers, your help is quite appreciated.
I'm trying dreamcat4 restart recipe with just a little success.
I get this error:
/var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize': wrong number of arguments (3 for 2) (ArgumentError) from /var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize'
Hi,
I'm trying to update all my chef-clients trough a chef recipe, I'm using
a
modified recipe based on opscode's chef cookbook,
What I'm trying to do is pretty simple: gist:2fd4fce806aa0c33edb0 · GitHub
I'm having problems on the first chef run, I use to login to the machine
and
run chef-client as root, then the run hangs (chef does not get restarted)
and I get the following error:
[Mon, 20 Sep 2010 20:33:02 +0000] INFO: Installing gem_package[chef]
version
0.9.8
[Mon, 20 Sep 2010 20:33:24 +0000] INFO: gem_package[chef] sending restart
action to service[chef-client] (immediate)
[Mon, 20 Sep 2010 20:33:24 +0000] FATAL: SIGTERM received, stopping
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Running exception handlers
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Exception handlers complete
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Re-raising exception: SystemExit
exit
If I restart chef as delayed on the recipe I have the same problem but at
the end of the run.
I am looking some help on the debug or some (better) strategies on auto
updating chef through minor releases.
Thanks.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com
if you are using the 'init' method the chef-client init.d script have
an error up to 0.9.10: http://tickets.opscode.com/browse/CHEF-1584
-> will prevent the restart action of the chef-client service.
Thanks for the answers, your help is quite appreciated.
I'm trying dreamcat4 restart recipe with just a little success.
I get this error:
/var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize': wrong number of arguments (3 for 2) (ArgumentError) from /var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize'
I am just running:
restart "login_shell"
I'm using chef 0.9.0.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
On Tue, Sep 21, 2010 at 8:04 PM, Adam Jacob adam@opscode.com wrote:
This is off the top of my head, but the most brute-force way possible
would be this:
ruby_block "replace me with a new process" do
block do
exec($0 + ARGV)
end
end
And make sure it is the last thing.
We use something like runit, so when the daemon exits, it restarts
automatically, and a resource like this isn't required.
Hi,
I'm trying to update all my chef-clients trough a chef recipe, I'm using
a
modified recipe based on opscode's chef cookbook,
What I'm trying to do is pretty simple: gist:2fd4fce806aa0c33edb0 · GitHub
I'm having problems on the first chef run, I use to login to the machine
and
run chef-client as root, then the run hangs (chef does not get
restarted)
and I get the following error:
[Mon, 20 Sep 2010 20:33:02 +0000] INFO: Installing gem_package[chef]
version
0.9.8
[Mon, 20 Sep 2010 20:33:24 +0000] INFO: gem_package[chef] sending
restart
action to service[chef-client] (immediate)
[Mon, 20 Sep 2010 20:33:24 +0000] FATAL: SIGTERM received, stopping
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Running exception handlers
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Exception handlers complete
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Re-raising exception:
SystemExit -
exit
If I restart chef as delayed on the recipe I have the same problem but
at
the end of the run.
I am looking some help on the debug or some (better) strategies on auto
updating chef through minor releases.
Thanks.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com
Thanks for the answers, your help is quite appreciated.
I'm trying dreamcat4 restart recipe with just a little success.
I get this error:
/var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize': wrong number of arguments (3 for 2) (ArgumentError) from /var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize'
I am just running:
restart "login_shell"
I'm using chef 0.9.0.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
On Tue, Sep 21, 2010 at 8:04 PM, Adam Jacob adam@opscode.com wrote:
This is off the top of my head, but the most brute-force way possible
would be this:
ruby_block "replace me with a new process" do
block do
exec($0 + ARGV)
end
end
And make sure it is the last thing.
We use something like runit, so when the daemon exits, it restarts
automatically, and a resource like this isn't required.
Hi,
I'm trying to update all my chef-clients trough a chef recipe, I'm using
a
modified recipe based on opscode's chef cookbook,
What I'm trying to do is pretty simple: gist:2fd4fce806aa0c33edb0 · GitHub
I'm having problems on the first chef run, I use to login to the machine
and
run chef-client as root, then the run hangs (chef does not get
restarted)
and I get the following error:
[Mon, 20 Sep 2010 20:33:02 +0000] INFO: Installing gem_package[chef]
version
0.9.8
[Mon, 20 Sep 2010 20:33:24 +0000] INFO: gem_package[chef] sending
restart
action to service[chef-client] (immediate)
[Mon, 20 Sep 2010 20:33:24 +0000] FATAL: SIGTERM received, stopping
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Running exception handlers
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Exception handlers complete
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Re-raising exception:
SystemExit -
exit
If I restart chef as delayed on the recipe I have the same problem but
at
the end of the run.
I am looking some help on the debug or some (better) strategies on auto
updating chef through minor releases.
Thanks.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com
Thanks for the answers, your help is quite appreciated.
I'm trying dreamcat4 restart recipe with just a little success.
I get this error:
/var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize': wrong number of arguments (3 for 2) (ArgumentError) from /var/chef/cache/cookbooks/restart/libraries/restart.rb:54:in initialize'
I am just running:
restart "login_shell"
I'm using chef 0.9.0.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
On Tue, Sep 21, 2010 at 8:04 PM, Adam Jacob adam@opscode.com wrote:
This is off the top of my head, but the most brute-force way possible
would be this:
ruby_block "replace me with a new process" do
block do
exec($0 + ARGV)
end
end
And make sure it is the last thing.
We use something like runit, so when the daemon exits, it restarts
automatically, and a resource like this isn't required.
Hi,
I'm trying to update all my chef-clients trough a chef recipe, I'm
using
a
modified recipe based on opscode's chef cookbook,
What I'm trying to do is pretty simple: gist:2fd4fce806aa0c33edb0 · GitHub
I'm having problems on the first chef run, I use to login to the
machine
and
run chef-client as root, then the run hangs (chef does not get
restarted)
and I get the following error:
[Mon, 20 Sep 2010 20:33:02 +0000] INFO: Installing gem_package[chef]
version
0.9.8
[Mon, 20 Sep 2010 20:33:24 +0000] INFO: gem_package[chef] sending
restart
action to service[chef-client] (immediate)
[Mon, 20 Sep 2010 20:33:24 +0000] FATAL: SIGTERM received, stopping
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Running exception handlers
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Exception handlers complete
[Mon, 20 Sep 2010 20:33:24 +0000] ERROR: Re-raising exception:
SystemExit -
exit
If I restart chef as delayed on the recipe I have the same problem but
at
the end of the run.
I am looking some help on the debug or some (better) strategies on
auto
updating chef through minor releases.
Thanks.
Jacobo García López de Araujo
blog: http://robotplaysguitar.com http://workingwithrails.com/person/13395-jacobo-garc-a
--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com