linux - Chef: Error executing action `start` on resource 'service[mysql-foo]' and undefined method -


could me resolve problem "error executing action start on resource 'service[mysql-foo]' , "undefined method `[]' nil:nilclass". installed last version cookbook "mysql" official site , created simple recipe how can see below in detailed log.

thank attention matter.

creating new client app-srv creating new node app-srv connecting 127.0.0.1 127.0.0.1 -----> existing chef installation detected 127.0.0.1 starting first chef client run... 127.0.0.1 starting chef client, version 12.15.19 127.0.0.1 resolving cookbooks run list: ["mysql"] 127.0.0.1 synchronizing cookbooks: 127.0.0.1   - mysql (8.1.1) 127.0.0.1 installing cookbook gems: 127.0.0.1 compiling cookbooks... 127.0.0.1 converging 1 resources 127.0.0.1 recipe: mysql::default 127.0.0.1   * mysql_service[foo] action create 127.0.0.1     * mysql_server_installation_package[foo] action install 127.0.0.1       * apt_package[mysql-server-5.5] action install (up date) 127.0.0.1       * apt_package[perl-sys-hostname-long] action nothing (skipped due action :nothing) 127.0.0.1       * execute[initial db setup script] action nothing (skipped due action :nothing) 127.0.0.1        (up date) 127.0.0.1     * mysql_service_manager_upstart[foo] action create 127.0.0.1       * group[mysql] action create (up date) 127.0.0.1       * linux_user[mysql] action create (up date) 127.0.0.1       * service[mysql] action stop (up date) 127.0.0.1       * service[mysql] action disable (up date) 127.0.0.1       * file[/etc/mysql/my.cnf] action delete (up date) 127.0.0.1       * file[/etc/my.cnf] action delete (up date) 127.0.0.1       * link[/usr/share/my-default.cnf] action create (skipped due not_if) 127.0.0.1       * directory[/etc/mysql-foo] action create (up date) 127.0.0.1       * directory[/etc/mysql-foo/conf.d] action create (up date) 127.0.0.1       * directory[/run/mysql-foo] action create (up date) 127.0.0.1       * directory[/var/log/mysql-foo] action create (up date) 127.0.0.1       * directory[/var/lib/mysql-foo] action create (up date) 127.0.0.1       * template[/etc/mysql-foo/my.cnf] action create (up date) 127.0.0.1       * apt_package[apparmor] action install (up date) 127.0.0.1       * directory[/etc/apparmor.d/local/mysql] action create (up date) 127.0.0.1       * template[/etc/apparmor.d/local/usr.sbin.mysqld] action create (up date) 127.0.0.1       * template[/etc/apparmor.d/usr.sbin.mysqld] action create (up date) 127.0.0.1       * template[/etc/apparmor.d/local/mysql/foo] action create (up date) 127.0.0.1       * service[foo apparmor] action nothing (skipped due action :nothing) 127.0.0.1       * bash[foo initial records] action run 127.0.0.1         - execute "bash"  "/tmp/chef-script20161110-4682-2n48bo" 127.0.0.1 127.0.0.1 127.0.0.1   * mysql_service[foo] action start 127.0.0.1     * mysql_service_manager_upstart[foo] action start 127.0.0.1       * template[/usr/sbin/mysql-foo-wait-ready] action create (up date) 127.0.0.1       * template[/etc/init/mysql-foo.conf] action create (up date) 127.0.0.1       * service[mysql-foo] action start 127.0.0.1 127.0.0.1         ================================================================================ 127.0.0.1         error executing action `start` on resource 'service[mysql-foo]' 127.0.0.1         ================================================================================ 127.0.0.1 127.0.0.1         nomethoderror 127.0.0.1         ------------- 127.0.0.1         undefined method `[]' nil:nilclass 127.0.0.1 127.0.0.1         resource declaration: 127.0.0.1         --------------------- 127.0.0.1         # in /var/chef/cache/cookbooks/mysql/libraries/mysql_service_manager_upstart.rb 127.0.0.1 127.0.0.1          42:       service mysql_name 127.0.0.1          43:         provider chef::provider::service::upstart 127.0.0.1          44:         supports status: true 127.0.0.1          45:         action [:start] 127.0.0.1          46:       end 127.0.0.1          47:     end 127.0.0.1 127.0.0.1         compiled resource: 127.0.0.1         ------------------ 127.0.0.1         # declared in /var/chef/cache/cookbooks/mysql/libraries/mysql_service_manager_upstart.rb:42:in `block in <class:mysqlservicemanagerupstart>' 127.0.0.1 127.0.0.1         service("mysql-foo") 127.0.0.1           provider chef::provider::service::upstart 127.0.0.1           action [:start] 127.0.0.1           supports {:status=>true} 127.0.0.1           retries 0 127.0.0.1           retry_delay 2 127.0.0.1           default_guard_interpreter :default 127.0.0.1           service_name "mysql-foo" 127.0.0.1           pattern "mysql-foo" 127.0.0.1           declared_type :service 127.0.0.1           cookbook_name "mysql" 127.0.0.1         end 127.0.0.1 127.0.0.1         platform: 127.0.0.1         --------- 127.0.0.1         i686-linux 127.0.0.1 127.0.0.1 127.0.0.1       ================================================================================ 127.0.0.1       error executing action `start` on resource 'mysql_service_manager_upstart[foo]' 127.0.0.1       ================================================================================ 127.0.0.1 127.0.0.1       nomethoderror 127.0.0.1       ------------- 127.0.0.1       service[mysql-foo] (/var/chef/cache/cookbooks/mysql/libraries/mysql_service_manager_upstart.rb line 42) had error: nomethoderror: undefined method `[]' nil:nilclass 127.0.0.1 127.0.0.1       resource declaration: 127.0.0.1       --------------------- 127.0.0.1       # in /var/chef/cache/cookbooks/mysql/libraries/mysql_service.rb 127.0.0.1 127.0.0.1        50:           svc = mysql_service_manager(name, &block) 127.0.0.1        51:         when 'sysvinit' 127.0.0.1 127.0.0.1       compiled resource: 127.0.0.1       ------------------ 127.0.0.1       # declared in /var/chef/cache/cookbooks/mysql/libraries/mysql_service.rb:50:in `svc_manager' 127.0.0.1 127.0.0.1       mysql_service_manager_upstart("foo") 127.0.0.1         action [:start] 127.0.0.1         retries 0 127.0.0.1         retry_delay 2 127.0.0.1         default_guard_interpreter :default 127.0.0.1         declared_type :mysql_service_manager 127.0.0.1         cookbook_name "mysql" 127.0.0.1         version "5.5" 127.0.0.1         initial_root_password "vagrant" 127.0.0.1         port "3306" 127.0.0.1         instance "foo" 127.0.0.1         run_user "mysql" 127.0.0.1         run_group "mysql" 127.0.0.1         socket "/run/mysql-foo/mysqld.sock" 127.0.0.1       end 127.0.0.1 127.0.0.1       platform: 127.0.0.1       --------- 127.0.0.1       i686-linux 127.0.0.1 127.0.0.1 127.0.0.1     ================================================================================ 127.0.0.1     error executing action `start` on resource 'mysql_service[foo]' 127.0.0.1     ================================================================================ 127.0.0.1 127.0.0.1     nomethoderror 127.0.0.1     ------------- 127.0.0.1     mysql_service_manager_upstart[foo] (/var/chef/cache/cookbooks/mysql/libraries/mysql_service.rb line 50) ha d error: nomethoderror: service[mysql-foo] (/var/chef/cache/cookbooks/mysql/libraries/mysql_service_manager_upstart.r b line 42) had error: nomethoderror: undefined method `[]' nil:nilclass 127.0.0.1 127.0.0.1     resource declaration: 127.0.0.1     --------------------- 127.0.0.1     # in /var/chef/cache/cookbooks/mysql/recipes/default.rb 127.0.0.1 127.0.0.1       1: mysql_service 'foo' 127.0.0.1       2:   version '5.5' 127.0.0.1       3:   port '3306' 127.0.0.1       4:   initial_root_password 'vagrant' 127.0.0.1       5:   action [:create, :start] 127.0.0.1       6: end 127.0.0.1       127.0.0.1 127.0.0.1     compiled resource: 127.0.0.1     ------------------ 127.0.0.1     # declared in /var/chef/cache/cookbooks/mysql/recipes/default.rb:1:in `from_file' 127.0.0.1 127.0.0.1     mysql_service("foo") 127.0.0.1       action [:create, :start] 127.0.0.1       updated true 127.0.0.1       retries 0 127.0.0.1       retry_delay 2 127.0.0.1       default_guard_interpreter :default 127.0.0.1       declared_type :mysql_service 127.0.0.1       cookbook_name "mysql" 127.0.0.1       recipe_name "default" 127.0.0.1       version "5.5" 127.0.0.1       port "3306" 127.0.0.1       initial_root_password "vagrant" 127.0.0.1       install_method "auto" 127.0.0.1       service_manager "auto" 127.0.0.1     end 127.0.0.1 127.0.0.1     platform: 127.0.0.1     --------- 127.0.0.1     i686-linux 127.0.0.1 127.0.0.1 127.0.0.1 running handlers: 127.0.0.1 [2016-11-10t11:04:52+03:00] error: running exception handlers 127.0.0.1 running handlers complete 127.0.0.1 [2016-11-10t11:04:52+03:00] error: exception handlers complete 127.0.0.1 chef client failed. 3 resources updated in 41 seconds 127.0.0.1 [2016-11-10t11:04:53+03:00] fatal: stacktrace dumped /var/chef/cache/chef-stacktrace.out 127.0.0.1 [2016-11-10t11:04:53+03:00] fatal: please provide contents of stacktrace.out file if file bug re port 127.0.0.1 [2016-11-10t11:04:53+03:00] error: mysql_service[foo] (mysql::default line 1) had error: nomethoderror: mys ql_service_manager_upstart[foo] (/var/chef/cache/cookbooks/mysql/libraries/mysql_service.rb line 50) had error: nomet hoderror: service[mysql-foo] (/var/chef/cache/cookbooks/mysql/libraries/mysql_service_manager_upstart.rb line 42) had  error: nomethoderror: undefined method `[]' nil:nilclass 127.0.0.1 [2016-11-10t11:04:54+03:00] fatal: chef::exceptions::childconvergeerror: chef run process exited unsuccessfull y (exit code 1) 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -