Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =============
- Error executing action `create` on resource 'mysql_database[my_company]'
- ================================================================================
- Mysql2::Error
- -------------
- Can't connect to MySQL server on '127.0.0.1' (111)
- Cookbook Trace:
- ---------------
- /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:105:in `new'
- /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:105:in `test_client'
- /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:37:in `block in <class:Mysql>'
- Resource Declaration:
- ---------------------
- # In /tmp/kitchen/cache/cookbooks/lamp/recipes/database.rb
- 49: mysql_database node['lamp']['database']['dbname'] do
- 50: connection mysql_connection_info
- 51: action :create
- 52: end
- 53:
- Compiled Resource:
- ------------------
- # Declared in /tmp/kitchen/cache/cookbooks/lamp/recipes/database.rb:49:in `from_file'
- mysql_database("my_company") do
- provider Chef::Provider::Database::Mysql
- action [:create]
- default_guard_interpreter :default
- database_name "my_company"
- declared_type :mysql_database
- cookbook_name "lamp"
- recipe_name "database"
- connection {:host=>"127.0.0.1", :username=>"root", :password=>"fakerootpassword"}
- end
- System Info:
- ------------
- chef_version=13.3.42
- platform=ubuntu
- platform_version=14.04
- ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
- program_name=chef-client worker: ppid=4016;start=20:07:26;
- executable=/opt/chef/bin/chef-client
- Running handlers:
- [2017-08-28T20:08:10+00:00] ERROR: Running exception handlers
- [2017-08-28T20:08:10+00:00] ERROR: Running exception handlers
- Running handlers complete
- [2017-08-28T20:08:10+00:00] ERROR: Exception handlers complete
- [2017-08-28T20:08:10+00:00] ERROR: Exception handlers complete
- Chef Client failed. 3 resources updated in 44 seconds
- [2017-08-28T20:08:10+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
- [2017-08-28T20:08:10+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
- [2017-08-28T20:08:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
- [2017-08-28T20:08:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
- [2017-08-28T20:08:10+00:00] ERROR: mysql_database[my_company] (lamp::database line 49) had an error: Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (111)
- [2017-08-28T20:08:10+00:00] ERROR: mysql_database[my_company] (lamp::database line 49) had an error: Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (111)
- [2017-08-28T20:08:10+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
- [2017-08-28T20:08:10+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
- >>>>>> ------Exception-------
- >>>>>> Class: Kitchen::ActionFailed
- >>>>>> Message: 1 actions failed.
- >>>>>> Converge failed on instance <default-ubuntu-1404>. Please see .kitchen/logs/default-ubuntu-1404.log for more details
- >>>>>> ----------------------
- >>>>>> Please see .kitchen/logs/kitchen.log for more details
- >>>>>> Also try running `kitchen diagnose --all` for configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement