Advertisement
cosjef

mysql_chef problem

Aug 31st, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.11 KB | None | 0 0
  1. KNIFE COMMAND
  2. knife ec2 server create -r 'role[Virima_EM2]' --image ami-06ad526f --flavor m1.small --identity-file ec2_ssh_keypair -G default -x ubuntu -S ec2_ssh_keypair -Z us-east-1b
  3.  
  4.  
  5. ERROR
  6. ec2-184-73-110-25.compute-1.amazonaws.com /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:239:in `run_application'
  7. ec2-184-73-110-25.compute-1.amazonaws.com /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:in `loop'
  8. ec2-184-73-110-25.compute-1.amazonaws.com /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:in `run_application'
  9. ec2-184-73-110-25.compute-1.amazonaws.com /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run'
  10. ec2-184-73-110-25.compute-1.amazonaws.com /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-client:26
  11. ec2-184-73-110-25.compute-1.amazonaws.com /usr/bin/chef-client:19:in `load'
  12. ec2-184-73-110-25.compute-1.amazonaws.com /usr/bin/chef-client:19
  13. ec2-184-73-110-25.compute-1.amazonaws.com [Wed, 31 Aug 2011 23:45:31 +0000] ERROR: Running exception handlers
  14. ec2-184-73-110-25.compute-1.amazonaws.com [Wed, 31 Aug 2011 23:45:31 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
  15. ec2-184-73-110-25.compute-1.amazonaws.com [Wed, 31 Aug 2011 23:45:31 +0000] ERROR: Exception handlers complete
  16. ec2-184-73-110-25.compute-1.amazonaws.com [Wed, 31 Aug 2011 23:45:31 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  17. ec2-184-73-110-25.compute-1.amazonaws.com [Wed, 31 Aug 2011 23:45:31 +0000] FATAL: Chef::Exceptions::ShellCommandFailed: execute[install-mysql] (mysql::server_ec2 line 27) had an error: Expected process to exit with [0], but received '1'
  18. ec2-184-73-110-25.compute-1.amazonaws.com ---- Begin output of mv /var/lib/mysql /mnt/mysql ----
  19. ec2-184-73-110-25.compute-1.amazonaws.com STDOUT:
  20. ec2-184-73-110-25.compute-1.amazonaws.com STDERR: mv: cannot stat `/var/lib/mysql': No such file or directory
  21. ec2-184-73-110-25.compute-1.amazonaws.com ---- End output of mv /var/lib/mysql /mnt/mysql ----
  22. ec2-184-73-110-25.compute-1.amazonaws.com Ran mv /var/lib/mysql /mnt/mysql returned 1
  23.  
  24. Instance ID: i-72d93912
  25. Flavor: m1.small
  26. Image: ami-06ad526f
  27. Availability Zone: us-east-1b
  28. Security Groups: sg-4fb1ec26, default, sg-4fb1ec26, default
  29. Public DNS Name: ec2-184-73-110-25.compute-1.amazonaws.com
  30. Public IP Address: 184.73.110.25
  31. Private DNS Name: domU-12-31-39-00-7C-C3.compute-1.internal
  32. SSH Key: ec2_ssh_keypair
  33. Private IP Address: 10.254.131.49
  34. Root Device Type: ebs
  35. Root Volume ID: vol-aef54ec4
  36. Root Device Name: /dev/sda1
  37. Root Device Delete on Terminate: true
  38. Environment: _default
  39. Run List: role[Virima_EM2]
  40.  
  41. LOGIN, VERIFYING /MNT DIRECTORY
  42. ssh -i ec2_ssh_keypair ubuntu@ec2-184-73-110-25.compute-1.amazonaws.comWelcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-virtual i686)
  43.  
  44. * Documentation: https://help.ubuntu.com/
  45.  
  46. System information as of Wed Aug 31 23:48:09 UTC 2011
  47.  
  48. System load: 0.07 Processes: 59
  49. Usage of /: 10.1% of 7.87GB Users logged in: 0
  50. Memory usage: 9% IP address for eth0: 10.254.131.49
  51. Swap usage: 0%
  52.  
  53. Graph this data and manage this system at https://landscape.canonical.com/
  54. ---------------------------------------------------------------------
  55. At the moment, only the core of the system is installed. To tune the
  56. system to your needs, you can choose to install one or more
  57. predefined collections of software by running the following
  58. command:
  59.  
  60. sudo tasksel --section server
  61. ---------------------------------------------------------------------
  62. Last login: Wed Aug 31 23:41:32 2011 from adsl-068-209-118-112.sip.asm.bellsouth.net
  63. ubuntu@domU-12-31-39-00-7C-C3:~$ df -h
  64. Filesystem Size Used Avail Use% Mounted on
  65. /dev/xvda1 7.9G 817M 6.7G 11% /
  66. none 828M 116K 828M 1% /dev
  67. none 833M 0 833M 0% /dev/shm
  68. none 833M 40K 833M 1% /var/run
  69. none 833M 0 833M 0% /var/lock
  70. /dev/xvda2 147G 188M 140G 1% /mnt
  71. ubuntu@domU-12-31-39-00-7C-C3:~$
  72.  
  73.  
  74. STACKTRACE.OUT FILE
  75. Generated at Wed Aug 31 23:45:31 +0000 2011
  76. Chef::Exceptions::ShellCommandFailed: execute[install-mysql] (mysql::server_ec2 line 27) had an error: Expected process to exit with [0], but received '1'
  77. ---- Begin output of mv /var/lib/mysql /mnt/mysql ----
  78. STDOUT:
  79. STDERR: mv: cannot stat `/var/lib/mysql': No such file or directory
  80. ---- End output of mv /var/lib/mysql /mnt/mysql ----
  81. Ran mv /var/lib/mysql /mnt/mysql returned 1
  82. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/shell_out.rb:207:in `invalid!'
  83. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/shell_out.rb:193:in `error!'
  84. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/shell_out.rb:36:in `shell_out!'
  85. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider/execute.rb:58:in `action_run'
  86. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `send'
  87. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `run_action'
  88. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:45:in `run_action'
  89. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge'
  90. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `each'
  91. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge'
  92. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
  93. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
  94. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
  95. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
  96. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
  97. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
  98. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
  99. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:76:in `converge'
  100. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:312:in `converge'
  101. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:160:in `run'
  102. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:239:in `run_application'
  103. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:in `loop'
  104. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:in `run_application'
  105. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run'
  106. /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-client:26
  107. /usr/bin/chef-client:19:in `load'
  108. /usr/bin/chef-client:19
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement