Created
March 29, 2012 00:49
-
-
Save daveray/2231948 to your computer and use it in GitHub Desktop.
chef mysql issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed, 28 Mar 2012 10:51:58 -0700] INFO: Processing gem_package[mysql] action install (mysql::client line 50) | |
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. | |
Gem.source_index called from /opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/provider/package/rubygems.rb:202. | |
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01. | |
Gem::SourceIndex#search called from /opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/provider/package/rubygems.rb:76. | |
and then fails with: | |
[Wed, 28 Mar 2012 10:52:02 -0700] FATAL: Chef::Exceptions::ShellCommandFailed: execute[mysql-install-privileges] (mysql::server line 136) had an error: Expected process to exit 0, but it exited with 1 | |
---- Begin output of /usr/bin/mysql -u root -p"B0MAn1h8e3LFoV_4iDzA" < /etc/mysql/grants.sql ---- | |
STDOUT: | |
STDERR: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) | |
---- End output of /usr/bin/mysql -u root -p"B0MAn1h8e3LFoV_4iDzA" < /etc/mysql/grants.sql ---- | |
Ran /usr/bin/mysql -u root -p"B0MAn1h8e3LFoV_4iDzA" < /etc/mysql/grants.sql returned 1 | |
that is, maybe mysql isn't up yet when it tries to set the root password. | |
there's a note about it here: | |
https://github.com/xforty/vagrant-drupal/issues/11 | |
there's a horrible fix here: | |
https://github.com/everm1nd/mysql/commit/ac54f071eddd5b73f651413b5f001444a374210d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment