[chef] Re: MySQL cookbook fails on Ubuntu Lucid 10.04


Chronological Thread 
  • From: Joshua Timberman < >
  • To:
  • Subject: [chef] Re: MySQL cookbook fails on Ubuntu Lucid 10.04
  • Date: Sun, 16 May 2010 00:35:26 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is actually an issue with RubyGems 1.3.7. They changed the output formatting of gem list, which Chef uses to determine what Gem versions are available from the remote server to install.

I have tested that the mysql cookbook works on Ubuntu 10.04 with:

- - Ruby and Ruby1.8 from Ubuntu packages
- - RubygGems:
  - 1.3.6 installed from source
  - 1.3.5 installed from package
- - Chef 0.8.16 installed from RubyGems or Packages


On May 16, 2010, at 12:13 AM, consiliens wrote:

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?

- --
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.334.RUBY E: 


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkvvki4ACgkQO97WSdVpzT0MlwCeOKsCFhKdkMtXqD48biPZsb+t
dJwAmgLWHn35F9BIlTIGJ+GZTgXKNylM
=gYYF
-----END PGP SIGNATURE-----



Archive powered by MHonArc 2.6.16.

§