Advertisement
vishvas

Untitled

Aug 31st, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.61 KB | None | 0 0
  1. sudo chef-client --local-mode -j ~/runlists/default.json
  2. [2017-08-31T12:16:06-07:00] WARN: No config file found or specified on command line, using command line options.
  3. [2017-08-31T12:16:06-07:00] FATAL: Cannot load configuration from /home/vvasuki/runlists/default.json
  4. [2017-08-31T12:16:06-07:00] FATAL: Cannot load configuration from /home/vvasuki/runlists/default.json
  5. [vedavaapi-chef] 12:16:06$ sudo chef-client --local-mode -j ~/vedavaapi-chef/runlists/default.json
  6. [2017-08-31T12:16:39-07:00] WARN: No config file found or specified on command line, using command line options.
  7. Starting Chef Client, version 13.2.20
  8. resolving cookbooks for run list: ["vedavaapi::couchdb"]
  9. Synchronizing Cookbooks:
  10. - vedavaapi (0.1.0)
  11. - couchdb (3.0.1)
  12. - build-essential (8.0.3)
  13. - erlang (5.1.0)
  14. - compat_resource (12.19.0)
  15. - yum-epel (2.1.2)
  16. - poise-python (1.6.0)
  17. - seven_zip (2.0.2)
  18. - maven (5.0.1)
  19. - yum-erlang_solutions (1.0.3)
  20. - mingw (2.0.1)
  21. - poise (2.8.1)
  22. - poise-languages (2.1.1)
  23. - apt (6.1.3)
  24. - java (1.50.0)
  25. - homebrew (4.2.0)
  26. - windows (3.1.2)
  27. - ohai (5.2.0)
  28. - poise-archive (1.5.0)
  29. - ark (3.1.0)
  30. Installing Cookbook Gems:
  31. Compiling Cookbooks...
  32. Converging 2 resources
  33. Recipe: vedavaapi::couchdb
  34. * directory[/var/lib/couchdb] action delete
  35. - delete existing directory /var/lib/couchdb
  36. * couchdb_node[couchdb] action create
  37. Recipe: couchdb::prereq
  38. * group[couchdb] action create (up to date)
  39. * linux_user[couchdb] action create (up to date)
  40. * linux_user[couchdb] action lock (up to date)
  41. * directory[/var/lib/couchdb] action create
  42. - create new directory /var/lib/couchdb
  43. - change mode from '' to '0775'
  44. - change owner from '' to 'couchdb'
  45. - change group from '' to 'couchdb'
  46. * directory[/var/log/couchdb] action create (up to date)
  47. * apt_package[adduser, curl, libicu-dev, libmozjs185-dev, procps, python, python-requests, python-progressbar] action install (up to date)
  48. * apt_package[init-system-helpers] action install (up to date)
  49. Recipe: build-essential::default
  50. * build_essential[install_packages] action install
  51. * apt_package[autoconf, binutils-doc, bison, build-essential, flex, gettext, ncurses-dev] action install (up to date)
  52. (up to date)
  53. Recipe: erlang::esl
  54. * apt_package[apt-transport-https] action install (up to date)
  55. * apt_repository[erlang_solutions_repo] action add
  56. * remote_file[/home/vvasuki/.chef/local-mode-cache/cache/https___packages_erlang-solutions_com_debian_erlang_solutions_asc] action create (up to date)
  57. * execute[apt-key add /home/vvasuki/.chef/local-mode-cache/cache/https___packages_erlang-solutions_com_debian_erlang_solutions_asc] action run (skipped due to not_if)
  58. * execute[apt-cache gencaches] action nothing (skipped due to action :nothing)
  59. * apt_update[erlang_solutions_repo] action nothing (skipped due to action :nothing)
  60. * file[/etc/apt/sources.list.d/erlang_solutions_repo.list] action create (up to date)
  61. (up to date)
  62. * apt_package[esl-erlang] action install (up to date)
  63. Recipe: couchdb::prereq
  64. * bash[remove_erlang_manpage_symlink] action run
  65.  
  66. ================================================================================
  67. Error executing action `run` on resource 'bash[remove_erlang_manpage_symlink]'
  68. ================================================================================
  69.  
  70. Mixlib::ShellOut::ShellCommandFailed
  71. ------------------------------------
  72. Expected process to exit with [0], but received '1'
  73. ---- Begin output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  74. STDOUT:
  75. STDERR: rm: cannot remove '/usr/lib/erlang/man': No such file or directory
  76. ---- End output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  77. Ran "bash" "/tmp/chef-script20170831-25348-4530s0" returned 1
  78.  
  79. Resource Declaration:
  80. ---------------------
  81. # In /home/vvasuki/.chef/local-mode-cache/cache/cookbooks/couchdb/recipes/prereq.rb
  82.  
  83. 75: bash 'remove_erlang_manpage_symlink' do
  84. 76: code <<-EOH
  85. 77: rm /usr/lib/erlang/man
  86. 78: EOH
  87. 79: only_if { node['platform'] == 'ubuntu' && node['platform_version'].to_f >= 16.00 }
  88. 80: end
  89. 81:
  90.  
  91. Compiled Resource:
  92. ------------------
  93. # Declared in /home/vvasuki/.chef/local-mode-cache/cache/cookbooks/couchdb/recipes/prereq.rb:75:in `from_file'
  94.  
  95. bash("remove_erlang_manpage_symlink") do
  96. action [:run]
  97. default_guard_interpreter :default
  98. command nil
  99. backup 5
  100. returns 0
  101. user nil
  102. interpreter "bash"
  103. declared_type :bash
  104. cookbook_name "couchdb"
  105. recipe_name "prereq"
  106. code " rm /usr/lib/erlang/man\n"
  107. domain nil
  108. only_if { #code block }
  109. end
  110.  
  111. System Info:
  112. ------------
  113. chef_version=13.2.20
  114. platform=ubuntu
  115. platform_version=17.04
  116. ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
  117. program_name=chef-client worker: ppid=25286;start=12:16:39;
  118. executable=/opt/chefdk/bin/chef-client
  119.  
  120.  
  121. ================================================================================
  122. Error executing action `create` on resource 'couchdb_node[couchdb]'
  123. ================================================================================
  124.  
  125. Mixlib::ShellOut::ShellCommandFailed
  126. ------------------------------------
  127. bash[remove_erlang_manpage_symlink] (couchdb::prereq line 75) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
  128. ---- Begin output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  129. STDOUT:
  130. STDERR: rm: cannot remove '/usr/lib/erlang/man': No such file or directory
  131. ---- End output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  132. Ran "bash" "/tmp/chef-script20170831-25348-4530s0" returned 1
  133.  
  134. Resource Declaration:
  135. ---------------------
  136. # In /home/vvasuki/.chef/local-mode-cache/cache/cookbooks/vedavaapi/recipes/couchdb.rb
  137.  
  138. 7: couchdb_node 'couchdb' do
  139. 8: admin_username 'vvasuki'
  140. 9: admin_password '-pbkdf2-6a46ef557bef4d04516f5e7115a4bdaa3e059caa,c3a387281af00a9f68260b1993483709,10'
  141. 10: fulltext true
  142. 11: type 'standalone'
  143. 12: end
  144.  
  145. Compiled Resource:
  146. ------------------
  147. # Declared in /home/vvasuki/.chef/local-mode-cache/cache/cookbooks/vedavaapi/recipes/couchdb.rb:7:in `from_file'
  148.  
  149. couchdb_node("couchdb") do
  150. action [:create]
  151. updated true
  152. updated_by_last_action true
  153. default_guard_interpreter :default
  154. declared_type :couchdb_node
  155. cookbook_name "vedavaapi"
  156. recipe_name "couchdb"
  157. admin_username "vvasuki"
  158. admin_password "-pbkdf2-6a46ef557bef4d04516f5e7115a4bdaa3e059caa,c3a387281af00a9f68260b1993483709,10"
  159. fulltext true
  160. type "standalone"
  161. uuid "6c51cd835a3343b9a7af78b7f2875fb7"
  162. end
  163.  
  164. System Info:
  165. ------------
  166. chef_version=13.2.20
  167. platform=ubuntu
  168. platform_version=17.04
  169. ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
  170. program_name=chef-client worker: ppid=25286;start=12:16:39;
  171. executable=/opt/chefdk/bin/chef-client
  172.  
  173.  
  174. Running handlers:
  175. [2017-08-31T12:17:09-07:00] ERROR: Running exception handlers
  176. [2017-08-31T12:17:09-07:00] ERROR: Running exception handlers
  177. Running handlers complete
  178. [2017-08-31T12:17:09-07:00] ERROR: Exception handlers complete
  179. [2017-08-31T12:17:09-07:00] ERROR: Exception handlers complete
  180. Chef Client failed. 2 resources updated in 30 seconds
  181. [2017-08-31T12:17:09-07:00] FATAL: Stacktrace dumped to /home/vvasuki/.chef/local-mode-cache/cache/chef-stacktrace.out
  182. [2017-08-31T12:17:09-07:00] FATAL: Stacktrace dumped to /home/vvasuki/.chef/local-mode-cache/cache/chef-stacktrace.out
  183. [2017-08-31T12:17:09-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
  184. [2017-08-31T12:17:09-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
  185. [2017-08-31T12:17:09-07:00] ERROR: couchdb_node[couchdb] (vedavaapi::couchdb line 7) had an error: Mixlib::ShellOut::ShellCommandFailed: bash[remove_erlang_manpage_symlink] (couchdb::prereq line 75) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
  186. ---- Begin output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  187. STDOUT:
  188. STDERR: rm: cannot remove '/usr/lib/erlang/man': No such file or directory
  189. ---- End output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  190. Ran "bash" "/tmp/chef-script20170831-25348-4530s0" returned 1
  191. [2017-08-31T12:17:09-07:00] ERROR: couchdb_node[couchdb] (vedavaapi::couchdb line 7) had an error: Mixlib::ShellOut::ShellCommandFailed: bash[remove_erlang_manpage_symlink] (couchdb::prereq line 75) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
  192. ---- Begin output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  193. STDOUT:
  194. STDERR: rm: cannot remove '/usr/lib/erlang/man': No such file or directory
  195. ---- End output of "bash" "/tmp/chef-script20170831-25348-4530s0" ----
  196. Ran "bash" "/tmp/chef-script20170831-25348-4530s0" returned 1
  197. [2017-08-31T12:17:09-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  198. [2017-08-31T12:17:09-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement