[chef] Re: Re: Re: EC2 AMI with chef-server installed


Chronological Thread 
  • From: Mike Bailey < >
  • To:
  • Subject: [chef] Re: Re: Re: EC2 AMI with chef-server installed
  • Date: Wed, 14 Apr 2010 01:09:57 +1000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=lU41PTpJcAMOiFuXIIuvwagzeyM5ER6XgdYPzNNUL3H9T9f/nfCdNFPP6fAjtX7sWF w+2WlsPdJXbjfCYPTL0IUtxX27EluSDnKeSoOS+qNq4K5NZNpcLlkP+IayEUm4hrXrSR rcOTshE6tlnbHwAdkIKRskegBGFn/y5dA+QjM=

I'm using John's script to install chef-server on Ubuntu 9.10:

curl -O failmode.com/install_chef_server.sh && sh install_chef_server.sh

Thanks Ringo, I've replaced the reboot with your restart commands.

- Mike

On Wed, Apr 14, 2010 at 12:00 AM, Ringo De Smet < "> > wrote:
John,

Thank you for posting your script. This saved me considerable time.

However, I do want to post the issues I still encountered:

1) when running chef-solo, I got this error:

[Tue, 13 Apr 2010 15:00:27 +0200] INFO:
template[/etc/sv/chef-solr/run] sending restart action to
service[chef-solr] (delayed)
[Tue, 13 Apr 2010 15:00:27 +0200] INFO:
template[/etc/sv/chef-solr/log/run] sending restart action to
service[chef-solr] (delayed)
/usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/mixin/command.rb:179:in
`handle_command_failures': /etc/init.d/chef-solr restart returned 1,
expected 0 (Chef::Exceptions::Exec)
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/mixin/command.rb:122:in
`run_command'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/provider/service/init.rb:53:in
`restart_service'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/provider/service.rb:87:in
`action_restart'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/runner.rb:60:in
`send'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/runner.rb:60:in
`run_action'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/runner.rb:126:in
`converge'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/runner.rb:123:in
`each'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/runner.rb:123:in
`converge'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:319:in
`converge'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:110:in
`run_solo'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:198:in
`run_application'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in
`loop'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in
`run_application'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application.rb:57:in
`run'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/chef-solo:26
       from /usr/bin/chef-solo:19:in `load'
       from /usr/bin/chef-solo:19

Running "/etc/init.d/chef-solr restart" manually did work, so I
restarted the chef-solo process. It now ended with success.

2) After that, I did a restart of 2 chef processes to workaround the
initial login problem:

/etc/init.d/chef-server restart
/etc/init.d/chef-server-webui restart

Login is now possible with the admin password listed in /etc/chef/server.rb.

That was it for me.

Ringo





Archive powered by MHonArc 2.6.16.

§