Advertisement
Guest User

Untitled

a guest
Aug 28th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. =============
  2. Error executing action `create` on resource 'mysql_database[my_company]'
  3. ================================================================================
  4.  
  5. Mysql2::Error
  6. -------------
  7. Can't connect to MySQL server on '127.0.0.1' (111)
  8.  
  9. Cookbook Trace:
  10. ---------------
  11. /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:105:in `new'
  12. /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:105:in `test_client'
  13. /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:37:in `block in <class:Mysql>'
  14.  
  15. Resource Declaration:
  16. ---------------------
  17. # In /tmp/kitchen/cache/cookbooks/lamp/recipes/database.rb
  18.  
  19. 49: mysql_database node['lamp']['database']['dbname'] do
  20. 50: connection mysql_connection_info
  21. 51: action :create
  22. 52: end
  23. 53:
  24.  
  25. Compiled Resource:
  26. ------------------
  27. # Declared in /tmp/kitchen/cache/cookbooks/lamp/recipes/database.rb:49:in `from_file'
  28.  
  29. mysql_database("my_company") do
  30. provider Chef::Provider::Database::Mysql
  31. action [:create]
  32. default_guard_interpreter :default
  33. database_name "my_company"
  34. declared_type :mysql_database
  35. cookbook_name "lamp"
  36. recipe_name "database"
  37. connection {:host=>"127.0.0.1", :username=>"root", :password=>"fakerootpassword"}
  38. end
  39.  
  40. System Info:
  41. ------------
  42. chef_version=13.3.42
  43. platform=ubuntu
  44. platform_version=14.04
  45. ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
  46. program_name=chef-client worker: ppid=4016;start=20:07:26;
  47. executable=/opt/chef/bin/chef-client
  48.  
  49.  
  50. Running handlers:
  51. [2017-08-28T20:08:10+00:00] ERROR: Running exception handlers
  52. [2017-08-28T20:08:10+00:00] ERROR: Running exception handlers
  53. Running handlers complete
  54. [2017-08-28T20:08:10+00:00] ERROR: Exception handlers complete
  55. [2017-08-28T20:08:10+00:00] ERROR: Exception handlers complete
  56. Chef Client failed. 3 resources updated in 44 seconds
  57. [2017-08-28T20:08:10+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
  58. [2017-08-28T20:08:10+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
  59. [2017-08-28T20:08:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
  60. [2017-08-28T20:08:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
  61. [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)
  62. [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)
  63. [2017-08-28T20:08:10+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  64. [2017-08-28T20:08:10+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  65. >>>>>> ------Exception-------
  66. >>>>>> Class: Kitchen::ActionFailed
  67. >>>>>> Message: 1 actions failed.
  68. >>>>>> Converge failed on instance <default-ubuntu-1404>. Please see .kitchen/logs/default-ubuntu-1404.log for more details
  69. >>>>>> ----------------------
  70. >>>>>> Please see .kitchen/logs/kitchen.log for more details
  71. >>>>>> Also try running `kitchen diagnose --all` for configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement