aws / opsworks-cookbooks

Chef Cookbooks for the AWS OpsWorks Service
Other
1.05k stars 1.23k forks source link

Rails MySQL Error: action `create` on resource 'template[mysql configuration]' #326

Open pducks32 opened 9 years ago

pducks32 commented 9 years ago

Hi I keep getting this error when I try to launch a new instance on opsworks for my rails app. I didn't know how much output is helpful so I put the ending of the log file in a gist:

https://gist.github.com/pducks32/23b3cb0746447ce66719#file-output-log

Thanks.

yoshida commented 9 years ago

Do you use custom cookbooks and berkshelf?

If you use berkshelf, check the this file existing after deploy: /opt/aws/opsworks/current/berkshelf-cookbooks/mysql/templates/default/my.cnf.erb

If this template file is newer version than opsworks default cookbooks, create the mysql/templates/default/my.cnf.erb file in your custom cookbooks and copy from https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/mysql/templates/default/my.cnf.erb.