Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Component/s: None
-
Labels:None
-
Environment:
Ubuntu 8.04, Chef 0.7.0
Description
When running the mysql::server recipe to install the packages, it fails to start the server after installs the apt pkg.
Below is a log of the output.
####
[Mon, 15 Jun 2009 13:26:36 -0400] INFO: Installing package[mysql-server] version 5.0.51a-3ubuntu5.4
[Mon, 15 Jun 2009 13:26:36 -0400] DEBUG: Executing apt-get -q -y install mysql-server=5.0.51a-3ubuntu5.4
[Mon, 15 Jun 2009 13:27:08 -0400] DEBUG: ---- Begin output of apt-get -q -y install mysql-server=5.0.51a-3ubuntu5.4 ----
[Mon, 15 Jun 2009 13:27:08 -0400] DEBUG: STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
mysql-server mysql-server-5.0
Suggested packages:
mysql-doc-5.0 tinyca
Recommended packages:
libhtml-template-perl mailx
The following NEW packages will be installed:
mysql-server mysql-server-5.0
Preconfiguring packages ...
0 upgraded, 2 newly installed, 0 to remove and 11 not upgraded.
Need to get 0B/28.1MB of archives.
After this operation, 89.3MB of additional disk space will be used.
Selecting previously deselected package mysql-server-5.0.
(Reading database ... 35530 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.0.51a-3ubuntu5.4_amd64.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.0.51a-3ubuntu5.4_all.deb) ...
Setting up mysql-server-5.0 (5.0.51a-3ubuntu5.4) ...
- Stopping MySQL database server mysqld
...done.
ls: cannot access /sys/module/apparmor: No such file or directory
ls: cannot access /sys/module/apparmor: No such file or directory
ls: cannot access /sys/module/apparmor: No such file or directory
$Loading AppArmor module: Failed.
invoke-rc.d: initscript apparmor, action "force-reload" failed. - Starting MySQL database server mysqld
...fail!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.0
mysql-server
[Mon, 15 Jun 2009 13:27:08 -0400] DEBUG: STDERR: E: Sub-process /usr/bin/dpkg returned an error code (1)
[Mon, 15 Jun 2009 13:27:08 -0400] DEBUG: ---- End output of apt-get -q -y install mysql-server=5.0.51a-3ubuntu5.4 ----
[Mon, 15 Jun 2009 13:27:08 -0400] ERROR: package[mysql-server] (/srv/chef/cache/cookbooks/mysql/recipes/server.rb line 40) had an error:
apt-get -q -y install mysql-server=5.0.51a-3ubuntu5.4 returned 100, expected 0
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/mixin/command.rb:157:in `run_command'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/mixin/command.rb:133:in `chdir'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/mixin/command.rb:133:in `run_command'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/provider/package/apt.rb:68:in `install_package'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/provider/package.rb:60:in `action_install'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:87:in `send'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:87:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:85:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:85:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/resource_collection.rb:58:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/resource_collection.rb:57:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:63:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:373:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:81:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26/usr/bin/chef-client:19:in `load'/usr/bin/chef-client:19
[Mon, 15 Jun 2009 13:27:08 -0400] ERROR: Chef::Exceptions::Exec
[Mon, 15 Ju
n 2009 13:27:08 -0400] FATAL: apt-get -q -y install mysql-server=5.0.51a-3ubuntu5.4 returned 100, expected 0
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/mixin/command.rb:157:in `run_command'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/mixin/command.rb:133:in `chdir'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/mixin/command.rb:133:in `run_command'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/provider/package/apt.rb:68:in `install_package'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/provider/package.rb:60:in `action_install'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:87:in `send'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:87:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:85:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:85:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/resource_collection.rb:58:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/resource_collection.rb:57:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/runner.rb:63:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:373:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/client.rb:81:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:163:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application/client.rb:161:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/lib/chef/application.rb:53:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.7.0/bin/chef-client:26
/usr/bin/chef-client:19:in `load'
/usr/bin/chef-client:19
Just checked the syslogd and found this...
Jun 15 14:00:18 staging mysqld[6805]: 090615 12:00:18 [ERROR] /usr/sbin/mysqld: unknown option '--skip-federated'