[chef] MySQL cookbook fails on Ubuntu Lucid 10.04


Chronological Thread 
  • From: consiliens < >
  • To:
  • Subject: [chef] MySQL cookbook fails on Ubuntu Lucid 10.04
  • Date: Sun, 16 May 2010 00:13:17 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=ajnNVSrXoR0pNViYNTRiuxnkBagNC1syBzM58M3lK1vmtODfUg8FjRHUtX+thEPt69 9P6ybonJf9ECR0HRgpUbEBM1TeWJVeFyGNze5EZfWbF2FBFp7GakpjYsFMRSzm17ZnUj c6G9ue4GBw3tZAEhd3qnFc4ostEGaJWJ5YylY=

The mysql::server recipe doesn't work on 10.04. I cloned from the cookbook repository and encountered errors.

WARN: Missing gem 'mysql'
INFO: Installing gem_package[mysql] version 2.8.1 ruby x86-mingw32 x86-mswin32
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/command.rb:181:in `handle_command_failures': gem install mysql -q --no-rdoc --no-ri -v "2.8.1 ruby x86-mingw32 x86-mswin32" returned 1, expected 0 (Chef::Exceptions::Exec)

$ sudo gem install mysql -q --no-rdoc --no-ri -v "2.8.1 ruby x86-mingw32 x86-mswin32"
ERROR:  While executing gem ... (ArgumentError)
    Illformed requirement ["2.8.1 ruby x86-mingw32 x86-mswin32"]

Manually installing the mysql gem uncovers another error.
$ sudo gem install mysql

INFO: Backing up template[/etc/mysql/grants.sql] to /etc/mysql/grants.sql.chef-20100515233421
[Sat, 15 May 2010 23:34:21 -0600] ERROR: ruby_block[save node data] (/home/vbox/share_vbox/chef-solo/cookbooks/mysql/recipes/server.rb line 88) had an error:
undefined method `closed?' for nil:NilClass
/usr/local/lib/ruby/1.8/net/http.rb:1060:in `request'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/rest/rest_request.rb:58:in `call'

Is the MySQL cookbook working on 10.04 for anyone?



Archive powered by MHonArc 2.6.16.

§