sous-chefs / mysql

Development repository for the mysql cookbook
https://supermarket.chef.io/cookbooks/mysql
Apache License 2.0
338 stars 690 forks source link

service install hangs when installing mysql 5.6 #496

Closed lavamarc closed 7 years ago

lavamarc commented 7 years ago

Cookbook version

8.2.0

Chef-client version

12.16.42

Platform Details

VMWare machine running CentOS 7.2 minimal install

Scenario:

Attempting to install a mysql 5.6 server using the mysql_service resource causes the chef-client run to hang forever

Steps to Reproduce:

just create a new mysql_service resource with version 5.6 (requires the yum-mysql-community cookbook of course!)

Expected Result:

A complete run!

Actual Result:

Chef-client hangs

Possible solution

I poked around in the library file and found the following command is being executed (after varaible interpolation of course): mysqld_safe --defaults-file=/etc/mysql-default/my.cnf --init-file=/tmp/mysql-default/my.sql --explicit_defaults_for_timestamp & I strongly suspect the '&' is the issue, if I run that command manually as is my shell prompt does not return until I hit enter, but removing the ampersand works just fine. Will test with 5.7 (which has a different behavior for db_init) and see if I can reproduce (doubtfull) and update this issue

lavamarc commented 7 years ago

I've tested my solution, simply removing line 327 of mysql/libraries/helper.rb causes the recipe to deploy correctly.

edit Ignore me :P not only was my test skewed, but this is also a duplicate of https://github.com/chef-cookbooks/mysql/issues/368

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.