[chef] Re: Re: mysql-0.23 cookbook fails on Lucid


Chronological Thread 
  • From: Dmitry V'yal < >
  • To:
  • Cc: " " < >
  • Subject: [chef] Re: Re: mysql-0.23 cookbook fails on Lucid
  • Date: Thu, 15 Jul 2010 20:13:39 +0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=WG0NXYcZFLOyDO1plPtjwbl9fXx3v+cJa6X8yC2S+HrAskokLn7D0G+1bXAwIbIKCl 7sJvN48p6Qe93iQfivRN9/I67Q3slf1dVZ/xJneTyuaLivJ0zSx9xMzkwenhehc6H5lO ToD0BZasDB3c2PYgdTMEKOt5jF9Q8aQUMhBLo=

On 15.07.2010 14:21, 

 wrote:
You do need build-essential, that will install gcc for you, I do not see
it in your run_list and just checked the mysql cookbooks for
server/client that is also pulled in by mysql::server and I didn't see
an include_recipe.

--sahil



well, probably I wasn't clear enough. It's included as part of nginx::passenger recipe.

Still for testing I've included it explicitly

% knife role show webserver
{
  "name": "webserver",
  "default_attributes": {

  },
  "json_class": "Chef::Role",
  "run_list": [
    "recipe[apt::default]",
    "recipe[build-essential::default]",
    "recipe[nginx::passenger]",
    "recipe[mysql::server]",
    "recipe[php-fpm::default]",
    "recipe[monit::default]",
    "recipe[bodhysite::default]",
    "recipe[mail-system::vdomains]"
  ],
  "description": "nginx with passenger and mysql",
  "chef_type": "role",
  "override_attributes": {
    "mysql": {
      "bind_address": [
        "localhost"
      ]
    }
  }
}

This gives the following(slightly truncated at top):

[Thu, 15 Jul 2010 16:00:11 +0000] DEBUG: Sending HTTP Request via GET to chef-server.vpn.bodhy.ru:4000/roles/webserver
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Applying attributes from json file
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Loading Recipe apt::default via include_recipe
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Found recipe default in cookbook apt
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Executing apt-get update
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: ---- Begin output of apt-get update ----
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: STDOUT: Hit http://security.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://us.archive.ubuntu.com lucid Release.gpg
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-updates Release
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security Release
Hit http://security.ubuntu.com lucid-updates/main Packages
Hit http://security.ubuntu.com lucid-updates/restricted Packages
Hit http://security.ubuntu.com lucid-updates/main Sources
Hit http://security.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://apt.opscode.com lucid Release.gpg
Hit http://apt.opscode.com lucid Release
Ign http://apt.opscode.com lucid/main Packages
Ign http://apt.opscode.com lucid/main Packages
Hit http://apt.opscode.com lucid/main Packages
Reading package lists...
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: STDERR:
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: ---- End output of apt-get update ----
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Ran apt-get update returned 0
[Thu, 15 Jul 2010 16:00:12 +0000] INFO: Ran execute[apt-get update] successfully
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Loading Recipe build-essential::default via include_recipe
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Found recipe default in cookbook build-essential
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Loading Recipe nginx::passenger via include_recipe
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Found recipe passenger in cookbook nginx
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Loading Recipe build-essential via include_recipe
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Found recipe default in cookbook build-essential
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Setting package[build-essential] to the state of the prior package[build-essential]
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Setting package[binutils-doc] to the state of the prior package[binutils-doc]
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Setting package[autoconf] to the state of the prior package[autoconf]
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Setting package[flex] to the state of the prior package[flex]
[Thu, 15 Jul 2010 16:00:12 +0000] DEBUG: Setting package[bison] to the state of the prior package[bison]
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Loading Recipe mysql::server via include_recipe
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Found recipe server in cookbook mysql
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Loading Recipe mysql::client via include_recipe
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Found recipe client in cookbook mysql
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Checking apt-cache policy for libmysqlclient-dev
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Current version is 5.1.41-3ubuntu12.3
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Current version is 5.1.41-3ubuntu12.3
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Checking apt-cache policy for mysql-client
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Current version is 5.1.41-3ubuntu12.3
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Current version is 5.1.41-3ubuntu12.3
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Checking apt-cache policy for ruby1.8-dev
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Current version is 1.8.7.249-2
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: Current version is 1.8.7.249-2
[Thu, 15 Jul 2010 16:00:13 +0000] DEBUG: No installed version found for mysql (>= 0, runtime)
[Thu, 15 Jul 2010 16:00:16 +0000] DEBUG: Found gem mysql version 2.8.1 for platform ruby from http://gems.rubyforge.org/
[Thu, 15 Jul 2010 16:00:16 +0000] INFO: Installing gem_package[mysql] version 2.8.1
Building native extensions.  This could take a while...
[Thu, 15 Jul 2010 16:00:17 +0000] ERROR: Running exception handlers
[Thu, 15 Jul 2010 16:00:17 +0000] ERROR: Exception handlers complete
[Thu, 15 Jul 2010 16:00:17 +0000] ERROR: Re-raising exception: Gem::Installer::ExtensionBuildError - ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***

Tests fail because gcc is not installed. Looks like the mysql cookbook gets executed just after apt.

Best wishes,
Dmitry




Archive powered by MHonArc 2.6.16.

§