Skip to content

Instantly share code, notes, and snippets.

@faraazkhan
Created October 13, 2014 06:44
Show Gist options
  • Save faraazkhan/680c3e79c7524be355ca to your computer and use it in GitHub Desktop.
Save faraazkhan/680c3e79c7524be355ca to your computer and use it in GitHub Desktop.
chef-solo-mysql-output
==> default: Installing Chef cookbooks with Librarian-Chef...
==> default: Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/libraries/rvm_chef_user_environment.rb:49: warning: class variable access from toplevel
[2014-10-13T06:43:05+00:00] INFO: Forking chef instance to converge...
[2014-10-13T06:43:05+00:00] INFO: *** Chef 11.8.0 ***
[2014-10-13T06:43:05+00:00] INFO: Chef-client pid: 9158
[2014-10-13T06:43:05+00:00] INFO: Setting the run_list to ["recipe[mysql::server]", "recipe[mysql::client]", "recipe[rvm::vagrant]", "recipe[rvm::user]", "recipe[redis]"] from JSON
[2014-10-13T06:43:05+00:00] INFO: Run List is [recipe[mysql::server], recipe[mysql::client], recipe[rvm::vagrant], recipe[rvm::user], recipe[redis]]
[2014-10-13T06:43:05+00:00] INFO: Run List expands to [mysql::server, mysql::client, rvm::vagrant, rvm::user, redis]
[2014-10-13T06:43:05+00:00] INFO: Starting Chef Run for localhost
[2014-10-13T06:43:05+00:00] INFO: Running start handlers
[2014-10-13T06:43:05+00:00] INFO: Start handlers complete.
[2014-10-13T06:43:06+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-10-13T06:43:06+00:00] ERROR: Running exception handlers
[2014-10-13T06:43:06+00:00] ERROR: Exception handlers complete
[2014-10-13T06:43:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-10-13T06:43:06+00:00] ERROR: mysql_service[default] (mysql::server line 20) had an error: NoMethodError: undefined method `sensitive' for Chef::Resource::Template
================================================================================
Error executing action `create` on resource 'mysql_service[default]'
================================================================================
NoMethodError
-------------
undefined method `sensitive' for Chef::Resource::Template
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/libraries/provider_mysql_service_rhel.rb:73:in `block (2 levels) in <class:Rhel>'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/libraries/provider_mysql_service_rhel.rb:72:in `block in <class:Rhel>'
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb
20: mysql_service node['mysql']['service_name'] do
21: version node['mysql']['version']
22: port node['mysql']['port']
23: data_dir node['mysql']['data_dir']
24: server_root_password node['mysql']['server_root_password']
25: server_debian_password node['mysql']['server_debian_password']
26: server_repl_password node['mysql']['server_repl_password']
27: allow_remote_root node['mysql']['allow_remote_root']
28: remove_anonymous_users node['mysql']['remove_anonymous_users']
29: remove_test_database node['mysql']['remove_test_database']
30: root_network_acl node['mysql']['root_network_acl']
31: package_version node['mysql']['server_package_version']
32: package_action node['mysql']['server_package_action']
33: action :create
34: end
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb:20:in `from_file'
mysql_service("default") do
action [:create]
retries 0
retry_delay 2
cookbook_name :mysql
recipe_name "server"
port "3306"
data_dir "/var/lib/mysql"
server_debian_password "gnuslashlinux4ev4r"
allow_remote_root true
remove_anonymous_users true
remove_test_database true
package_action "install"
end
[2014-10-13T06:43:05+00:00] INFO: Forking chef instance to converge...
[2014-10-13T06:43:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
@DrMerlin
Copy link

I am getting the same error in 5.5.4. I bumped back to 5.5.3 and it is not having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment