Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 24th, 2012  |  syntax: None  |  size: 16.18 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [2012-09-24T13:38:18-04:00] INFO: Processing directory[/data/www] action create (website::default line 14)
  2. [2012-09-24T13:38:18-04:00] INFO: Processing application[invdb] action force_deploy (invdb::default line 12)
  3. [2012-09-24T13:38:18-04:00] INFO: Processing directory[/data/www/invdb] action create (/var/chef/cache/cookbooks/application/providers/default.rb line 75)
  4. [2012-09-24T13:38:18-04:00] INFO: Processing directory[/data/www/invdb/shared] action create (/var/chef/cache/cookbooks/application/providers/default.rb line 82)
  5. [2012-09-24T13:38:18-04:00] INFO: Processing ruby_block[invdb before_deploy] action create (/var/chef/cache/cookbooks/application/providers/default.rb line 107)
  6. [2012-09-24T13:38:18-04:00] DEBUG: Got callback before_deploy: nil
  7. [2012-09-24T13:38:18-04:00] INFO: ruby_block[invdb before_deploy] called
  8. [2012-09-24T13:38:18-04:00] INFO: Processing deploy_revision[invdb] action force_deploy (/var/chef/cache/cookbooks/application/providers/default.rb line 122)
  9. [2012-09-24T13:38:18-04:00] DEBUG: deploy_revision[invdb] finding current git revision
  10. 5730a0ec1b9a19148150d8628551a6fe795e80f5
  11. [2012-09-24T13:38:18-04:00] DEBUG: deploy_revision[invdb] resolving remote reference
  12. 5730a0ec1b9a19148150d8628551a6fe795e80f5        HEAD
  13. [2012-09-24T13:38:18-04:00] DEBUG: deploy_revision[invdb] not creating /data/www/invdb because it already exists
  14. [2012-09-24T13:38:18-04:00] DEBUG: deploy_revision[invdb] not creating /data/www/invdb/shared because it already exists
  15. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] running collected converge_actions before calling scm_provider
  16. [2012-09-24T13:38:18-04:00] INFO: Already deployed app at /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5, forcing.
  17. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] forcing deploy of already deployed app at /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5
  18. [2012-09-24T13:38:18-04:00] DEBUG: deploy_revision[invdb] finding current git revision
  19. 5730a0ec1b9a19148150d8628551a6fe795e80f5
  20. [2012-09-24T13:38:18-04:00] DEBUG: deploy_revision[invdb] finding current git revision
  21. 5730a0ec1b9a19148150d8628551a6fe795e80f5
  22. [2012-09-24T13:38:18-04:00] DEBUG: deploy_revision[invdb] current revision: 5730a0ec1b9a19148150d8628551a6fe795e80f5 target revision: 5730a0ec1b9a19148150d8628551a6fe795e80f5
  23. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] running callback before_migrate
  24. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] running callback before_symlink
  25. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] created directories before symlinking:
  26. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] updated symlinks
  27. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] running callback before_restart
  28. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] restarting app with embedded recipe
  29. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] running callback after_restart
  30. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] deployed to /data/www/invdb
  31. [2012-09-24T13:38:18-04:00] INFO: Already deployed app at /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5, forcing.
  32. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] forcing deploy of already deployed app at /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5
  33. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] set user to nobody
  34. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] set group to nobody
  35. [2012-09-24T13:38:18-04:00] DEBUG: Executing cp -RPp /data/www/invdb/shared/cached-copy/. /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5
  36. [2012-09-24T13:38:18-04:00] DEBUG: ---- Begin output of cp -RPp /data/www/invdb/shared/cached-copy/. /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5 ----
  37. [2012-09-24T13:38:18-04:00] DEBUG: STDOUT:
  38. [2012-09-24T13:38:18-04:00] DEBUG: STDERR:
  39. [2012-09-24T13:38:18-04:00] DEBUG: ---- End output of cp -RPp /data/www/invdb/shared/cached-copy/. /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5 ----
  40. [2012-09-24T13:38:18-04:00] DEBUG: Ran cp -RPp /data/www/invdb/shared/cached-copy/. /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5 returned 0
  41. [2012-09-24T13:38:18-04:00] INFO: deploy_revision[invdb] copied the cached checkout to /data/www/invdb/releases/5730a0ec1b9a19148150d8628551a6fe795e80f5
  42. [2012-09-24T13:38:19-04:00] INFO: deploy_revision[invdb] set user to nobody
  43. [2012-09-24T13:38:19-04:00] INFO: deploy_revision[invdb] set group to nobody
  44. [2012-09-24T13:38:19-04:00] DEBUG: Got callback before_migrate: nil
  45. [2012-09-24T13:38:19-04:00] INFO: deploy_revision[invdb] made pre-migration symlinks
  46. [2012-09-24T13:38:19-04:00] INFO: deploy_revision[invdb] set user to nobody
  47. [2012-09-24T13:38:19-04:00] INFO: deploy_revision[invdb] set group to nobody
  48. [2012-09-24T13:38:19-04:00] INFO: deploy_revision[invdb] migrating nobody with environment
  49. [2012-09-24T13:38:19-04:00] DEBUG: Executing
  50.  
  51. ================================================================================
  52. Error executing action `force_deploy` on resource 'deploy_revision[invdb]'
  53. ================================================================================
  54.  
  55. Errno::ENOENT
  56. -------------
  57. No such file or directory -
  58.  
  59. Resource Declaration:
  60. ---------------------
  61. # In /var/chef/cache/cookbooks/application/providers/default.rb
  62.  
  63. 122:   @deploy_resource = send(new_resource.strategy.to_sym, new_resource.name) do
  64. 123:     action force ? :force_deploy : :deploy
  65. 124:     scm_provider new_resource.scm_provider
  66. 125:     revision new_resource.revision
  67. 126:     repository new_resource.repository
  68. 127:     user new_resource.owner
  69. 128:     group new_resource.group
  70. 129:     deploy_to new_resource.path
  71. 130:     ssh_wrapper "#{new_resource.path}/deploy-ssh-wrapper" if new_resource.deploy_key
  72. 131:     shallow_clone true
  73. 132:     rollback_on_error new_resource.rollback_on_error
  74. 133:     all_environments = ([new_resource.environment]+new_resource.sub_resources.map{|res| res.environment}).inject({}){|acc, val| acc.merge(val)}
  75. 134:     environment all_environments
  76. 135:     migrate new_resource.migrate
  77. 136:     all_migration_commands = ([new_resource.migration_command]+new_resource.sub_resources.map{|res| res.migration_command}).select{|cmd| cmd && !cmd.empty?}
  78. 137:     migration_command all_migration_commands.join(' && ')
  79. 138:     restart_command do
  80. 139:       ([new_resource]+new_resource.sub_resources).each do |res|
  81. 140:         cmd = res.restart_command
  82. 141:         if cmd.is_a? Proc
  83. 142:           provider = Chef::Platform.provider_for_resource(res)
  84. 143:           provider.load_current_resource
  85. 144:           provider.instance_eval(&cmd)
  86. 145:         elsif cmd && !cmd.empty?
  87. 146:           execute cmd do
  88. 147:             user new_resource.owner
  89. 148:             group new_resource.group
  90. 149:             environment all_environments
  91. 150:           end
  92. 151:         end
  93. 152:       end
  94. 153:     end
  95. 154:     purge_before_symlink new_resource.purge_before_symlink
  96.  
  97. Compiled Resource:
  98. ------------------
  99. # Declared in /var/chef/cache/cookbooks/application/providers/default.rb:122:in `send'
  100.  
  101. deploy_revision("invdb") do
  102.   destination "/data/www/invdb/shared/cached-copy"
  103.   before_symlink #<Proc:0x00007fae2644deb0@/var/chef/cache/cookbooks/application/providers/default.rb:162>
  104.   restart_command #<Proc:0x00007fae26453dd8@/var/chef/cache/cookbooks/application/providers/default.rb:138>
  105.   shallow_clone true
  106.   repository_cache "cached-copy"
  107.   retries 0
  108.   migrate true
  109.   provider Chef::Provider::Deploy::Revision
  110.   keep_releases 5
  111.   before_migrate #<Proc:0x00007fae2644e630@/var/chef/cache/cookbooks/application/providers/default.rb:159>
  112.   user "nobody"
  113.   cookbook_name "invdb"
  114.   deploy_to "/data/www/invdb"
  115.   current_path "/data/www/invdb/current"
  116.   revision "HEAD"
  117.   after_restart #<Proc:0x00007fae2644b8e0@/var/chef/cache/cookbooks/application/providers/default.rb:168>
  118.   remote "origin"
  119.   environment {"LC_ALL"=>"C"}
  120.   action [:force_deploy]
  121.   shared_path "/data/www/invdb/shared"
  122.   before_restart #<Proc:0x00007fae2644cf88@/var/chef/cache/cookbooks/application/providers/default.rb:165>
  123.   group "nobody"
  124.   retry_delay 2
  125.   repo "git://git.add:81/opstools.git"
  126.   scm_provider Chef::Provider::Git
  127.   rollback_on_error true
  128. end
  129.  
  130. [2012-09-24T13:38:19-04:00] DEBUG: Re-raising exception: Errno::ENOENT - deploy_revision[invdb] (/var/chef/cache/cookbooks/application/providers/default.rb line 122) had an error: Errno::ENOENT: No such file or directory -
  131. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:105:in `exec'
  132.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:105:in `popen4'
  133.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:67:in `fork'
  134.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:67:in `popen4'
  135.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:104:in `output_of_command'
  136.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:93:in `chdir'
  137.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:93:in `output_of_command'
  138.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:72:in `run_command'
  139.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/provider/deploy.rb:208:in `migrate'
  140.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:63:in `call'
  141.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:63:in `converge!'
  142.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:61:in `each'
  143.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:61:in `converge!'
  144.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/provider.rb:136:in `converge'
  145.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/provider.rb:125:in `run_action'
  146.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource.rb:593:in `run_action'
  147.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:49:in `run_action'
  148.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:81:in `converge'
  149.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:81:in `each'
  150.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:81:in `converge'
  151.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
  152.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
  153.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
  154.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
  155.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
  156.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
  157.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
  158.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:80:in `converge'
  159.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/client.rb:378:in `converge'
  160.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/client.rb:420:in `do_run'
  161.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/client.rb:176:in `run'
  162.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application/client.rb:283:in `run_application'
  163.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application/client.rb:270:in `loop'
  164.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application/client.rb:270:in `run_application'
  165.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application.rb:70:in `run'
  166.   /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/chef-client:26
  167.   /usr/bin/chef-client:19:in `load'
  168.   /usr/bin/chef-client:19
  169. [2012-09-24T13:38:19-04:00] ERROR: Running exception handlers
  170. [2012-09-24T13:38:19-04:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
  171. [2012-09-24T13:38:19-04:00] ERROR: Exception handlers complete
  172. [2012-09-24T13:38:19-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  173. [2012-09-24T13:38:19-04:00] DEBUG: Errno::ENOENT: deploy_revision[invdb] (/var/chef/cache/cookbooks/application/providers/default.rb line 122) had an error: Errno::ENOENT: No such file or directory -
  174. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:105:in `exec'
  175. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:105:in `popen4'
  176. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:67:in `fork'
  177. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command/unix.rb:67:in `popen4'
  178. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:104:in `output_of_command'
  179. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:93:in `chdir'
  180. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:93:in `output_of_command'
  181. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/command.rb:72:in `run_command'
  182. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/provider/deploy.rb:208:in `migrate'
  183. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:63:in `call'
  184. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:63:in `converge!'
  185. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:61:in `each'
  186. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/mixin/why_run.rb:61:in `converge!'
  187. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/provider.rb:136:in `converge'
  188. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/provider.rb:125:in `run_action'
  189. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource.rb:593:in `run_action'
  190. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:49:in `run_action'
  191. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:81:in `converge'
  192. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:81:in `each'
  193. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:81:in `converge'
  194. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
  195. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
  196. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
  197. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
  198. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
  199. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
  200. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
  201. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/runner.rb:80:in `converge'
  202. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/client.rb:378:in `converge'
  203. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/client.rb:420:in `do_run'
  204. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/client.rb:176:in `run'
  205. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application/client.rb:283:in `run_application'
  206. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application/client.rb:270:in `loop'
  207. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application/client.rb:270:in `run_application'
  208. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/../lib/chef/application.rb:70:in `run'
  209. /usr/lib64/ruby/gems/1.8/gems/chef-10.14.3/bin/chef-client:26
  210. /usr/bin/chef-client:19:in `load'
  211. /usr/bin/chef-client:19
  212. [2012-09-24T13:38:19-04:00] FATAL: Errno::ENOENT: deploy_revision[invdb] (/var/chef/cache/cookbooks/application/providers/default.rb line 122) had an error: Errno::ENOENT: No such file or directory -