[chef] mysql recipe error on ubuntu 12.04


Chronological Thread 
  • From: S Ahmed < >
  • To:
  • Subject: [chef] mysql recipe error on ubuntu 12.04
  • Date: Sun, 11 Nov 2012 00:15:28 -0500

Just fired up an ec2 instance and ran chef-solo on ubuntu 12.04, I am seeing this error below.  I can't seem to understand what the reason is for the error?

[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:40+00:00] INFO: Processing package[mysql-client] action install (mysql::client line 40)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:50+00:00] INFO: Processing package[libmysqlclient-dev] action install (mysql::client line 40)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:53+00:00] INFO: Processing package[libmysql-ruby] action install (mysql::client line 48)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (mysql::server line 31)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: Processing execute[preseed mysql-server] action nothing (mysql::server line 38)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: Processing template[/var/cache/local/preseeding/mysql-server.seed] action create (mysql::server line 43)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] updated content
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] owner changed to 0
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] group changed to 0
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] mode changed to 600
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] sending run action to execute[preseed mysql-server] (immediate)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: Processing execute[preseed mysql-server] action run (mysql::server line 38)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: execute[preseed mysql-server] ran successfully
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: Processing template[/etc/mysql/debian.cnf] action create (mysql::server line 51)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/etc/mysql/debian.cnf] updated content
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/etc/mysql/debian.cnf] owner changed to 0
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/etc/mysql/debian.cnf] group changed to 0
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: template[/etc/mysql/debian.cnf] mode changed to 600
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:46:56+00:00] INFO: Processing package[mysql-server] action install (mysql::server line 60)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: Processing directory[/etc/mysql/mysql/conf.d] action create (mysql::server line 64)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: directory[/etc/mysql/mysql/conf.d] created directory /etc/mysql/mysql/conf.d
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: directory[/etc/mysql/mysql/conf.d] owner changed to 106
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: directory[/etc/mysql/mysql/conf.d] group changed to 112
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: Processing service[mysql] action nothing (mysql::server line 71)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: Processing template[/etc/mysql/my.cnf] action create (mysql::server line 91)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: template[/etc/mysql/my.cnf] backed up to /var/chef/backup/etc/mysql/my.cnf.chef-20121111044720
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: template[/etc/mysql/my.cnf] updated content
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: template[/etc/mysql/my.cnf] owner changed to 0
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: template[/etc/mysql/my.cnf] group changed to 0
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: template[/etc/mysql/my.cnf] mode changed to 644
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: template[/etc/mysql/my.cnf] sending restart action to service[mysql] (immediate)
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:20+00:00] INFO: Processing service[mysql] action restart (mysql::server line 71)
[ec2-removed.compute-1.amazonaws.com] out: ================================================================================
[ec2-removed.compute-1.amazonaws.com] out: Error executing action `restart` on resource 'service[mysql]'
[ec2-removed.compute-1.amazonaws.com] out: ================================================================================
[ec2-removed.compute-1.amazonaws.com] out: Mixlib::ShellOut::ShellCommandFailed
[ec2-removed.compute-1.amazonaws.com] out: ------------------------------------
[ec2-removed.compute-1.amazonaws.com] out: Expected process to exit with [0], but received '1'
[ec2-removed.compute-1.amazonaws.com] out: ---- Begin output of restart mysql ----
[ec2-removed.compute-1.amazonaws.com] out: STDERR: restart: Job failed to restart
[ec2-removed.compute-1.amazonaws.com] out: ---- End output of restart mysql ----
[ec2-removed.compute-1.amazonaws.com] out: Ran restart mysql returned 1
[ec2-removed.compute-1.amazonaws.com] out: Resource Declaration:
[ec2-removed.compute-1.amazonaws.com] out: ---------------------
[ec2-removed.compute-1.amazonaws.com] out: # In /home/ubuntu/chef/cookbooks/mysql/recipes/server.rb
[ec2-removed.compute-1.amazonaws.com] out:  71: service "mysql" do
[ec2-removed.compute-1.amazonaws.com] out:  72:   service_name node['mysql']['service_name']
[ec2-removed.compute-1.amazonaws.com] out:  73:   if (platform?("ubuntu") && node.platform_version.to_f >= 10.04)
[ec2-removed.compute-1.amazonaws.com] out:  74:     restart_command "restart mysql"
[ec2-removed.compute-1.amazonaws.com] out:  75:     stop_command "stop mysql"
[ec2-removed.compute-1.amazonaws.com] out:  76:     start_command "start mysql"
[ec2-removed.compute-1.amazonaws.com] out:  78:   supports :status => true, :restart => true, :reload => true
[ec2-removed.compute-1.amazonaws.com] out: Compiled Resource:
[ec2-removed.compute-1.amazonaws.com] out: ------------------
[ec2-removed.compute-1.amazonaws.com] out: # Declared in /home/ubuntu/chef/cookbooks/mysql/recipes/server.rb:71:in `from_file'
[ec2-removed.compute-1.amazonaws.com] out: service("mysql") do
[ec2-removed.compute-1.amazonaws.com] out:   retry_delay 2
[ec2-removed.compute-1.amazonaws.com] out:   action [:nothing]
[ec2-removed.compute-1.amazonaws.com] out:   recipe_name "server"
[ec2-removed.compute-1.amazonaws.com] out:   restart_command "restart mysql"
[ec2-removed.compute-1.amazonaws.com] out:   startup_type :automatic
[ec2-removed.compute-1.amazonaws.com] out:   cookbook_name :mysql
[ec2-removed.compute-1.amazonaws.com] out:   stop_command "stop mysql"
[ec2-removed.compute-1.amazonaws.com] out:   pattern "mysql"
[ec2-removed.compute-1.amazonaws.com] out:   service_name "mysql"
[ec2-removed.compute-1.amazonaws.com] out:   start_command "start mysql"
[ec2-removed.compute-1.amazonaws.com] out:   supports {:status=>true, :restart=>true, :reload=>true}
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:23+00:00] ERROR: Running exception handlers
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:23+00:00] ERROR: Exception handlers complete
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:23+00:00] FATAL: Stacktrace dumped to /home/ubuntu/chef/chef-stacktrace.out
[ec2-removed.compute-1.amazonaws.com] out: [2012-11-11T04:47:23+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: service[mysql] (mysql::server line 71) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
[ec2-removed.compute-1.amazonaws.com] out: ---- Begin output of restart mysql ----
[ec2-removed.compute-1.amazonaws.com] out: STDERR: restart: Job failed to restart
[ec2-removed.compute-1.amazonaws.com] out: ---- End output of restart mysql ----
[ec2-removed.compute-1.amazonaws.com] out: Ran restart mysql returned 1


Fatal error: run() received nonzero return code 1 while executing!




Archive powered by MHonArc 2.6.16.

§