Advertisement
Guest User

init bench failing

a guest
Dec 7th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.80 KB | None | 0 0
  1. TASK [init bench] **************************************************************
  2. task path: /tmp/.bench/playbooks/develop/includes/setup_bench.yml:25
  3. ESTABLISH LOCAL CONNECTION FOR USER: root
  4. 127.0.0.1 EXEC /bin/sh -c '( umask 22 && mkdir -p "` echo /tmp/ansible-tmp-1481146270.31-23306283367400 `" && echo "` echo /tmp/ansible-tmp-1481146270.31-23306283367400 `" )'
  5. 127.0.0.1 PUT /tmp/tmpYhrcyZ TO /tmp/ansible-tmp-1481146270.31-23306283367400/command
  6. 127.0.0.1 EXEC /bin/sh -c 'chmod a+r /tmp/ansible-tmp-1481146270.31-23306283367400/command'
  7. 127.0.0.1 EXEC /bin/sh -c 'sudo -H -S -n -u frappe /bin/sh -c '"'"'echo BECOME-SUCCESS-tjamezswdztpsgpocclmrivnyiayupio; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /tmp/ansible-tmp-1481146270.31-23306283367400/command'"'"''
  8. 127.0.0.1 EXEC /bin/sh -c 'rm -f -r /tmp/ansible-tmp-1481146270.31-23306283367400/ > /dev/null 2>&1'
  9. fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["bench", "init", "/home/frappe/frappe-bench", "--frappe-branch", "master"], "delta": "0:01:19.653008", "end": "2016-12-07 21:32:30.037486", "failed": true, "invocation": {"module_args": {"_raw_params": "bench init /home/frappe/frappe-bench --frappe-branch master", "_uses_shell": false, "chdir": null, "creates": "/home/frappe/frappe-bench", "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 1, "start": "2016-12-07 21:31:10.384478", "stderr": "INFO:bench.app:getting app frappe
  10. Cloning into 'frappe'...
  11. INFO:bench.app:installing frappe
  12. npm WARN enoent ENOENT: no such file or directory, open '/home/frappe/frappe-bench/package.json'
  13. npm WARN frappe-bench No description
  14. npm WARN frappe-bench No repository field.
  15. npm WARN frappe-bench No README data
  16. npm WARN frappe-bench No license field.
  17. INFO:bench.utils:setting up backups
  18. Traceback (most recent call last):
  19. File \"/usr/local/bin/bench\", line 11, in <module>
  20. load_entry_point('bench', 'console_scripts', 'bench')()
  21. File \"/home/frappe/.bench/bench/cli.py\", line 40, in cli
  22. bench_command()
  23. File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 716, in __call__
  24. return self.main(*args, **kwargs)
  25. File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 696, in main
  26. rv = self.invoke(ctx)
  27. File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 1060, in invoke
  28. return _process_result(sub_ctx.command.invoke(sub_ctx))
  29. File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 889, in invoke
  30. return ctx.invoke(self.callback, **ctx.params)
  31. File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 534, in invoke
  32. return callback(*args, **kwargs)
  33. File \"/home/frappe/.bench/bench/commands/make.py\", line 19, in init
  34. verbose=verbose, clone_from=clone_from)
  35. File \"/home/frappe/.bench/bench/utils.py\", line 73, in init
  36. setup_backups(bench_path=path)
  37. File \"/home/frappe/.bench/bench/utils.py\", line 202, in setup_backups
  38. logfile=os.path.join(get_bench_dir(bench_path=bench_path), 'logs', 'backup.log')))
  39. File \"/home/frappe/.bench/bench/utils.py\", line 205, in add_to_crontab
  40. current_crontab = read_crontab()
  41. File \"/home/frappe/.bench/bench/utils.py\", line 216, in read_crontab
  42. s = subprocess.Popen([\"crontab\", \"-l\"], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
  43. File \"/usr/lib/python2.7/subprocess.py\", line 710, in __init__
  44. errread, errwrite)
  45. File \"/usr/lib/python2.7/subprocess.py\", line 1335, in _execute_child
  46. raise child_exception
  47. OSError: [Errno 2] No such file or directory", "stdout": "Already using interpreter /usr/bin/python
  48. /home/frappe/frappe-bench
  49. +-- express@4.14.0
  50. | +-- accepts@1.3.3
  51. | | +-- mime-types@2.1.13
  52. | | | `-- mime-db@1.25.0
  53. | | `-- negotiator@0.6.1
  54. | +-- array-flatten@1.1.1
  55. | +-- content-disposition@0.5.1
  56. | +-- content-type@1.0.2
  57. | +-- cookie@0.3.1
  58. | +-- cookie-signature@1.0.6
  59. | +-- debug@2.2.0
  60. | | `-- ms@0.7.1
  61. | +-- depd@1.1.0
  62. | +-- encodeurl@1.0.1
  63. | +-- escape-html@1.0.3
  64. | +-- etag@1.7.0
  65. | +-- finalhandler@0.5.0
  66. | | +-- statuses@1.3.1
  67. | | `-- unpipe@1.0.0
  68. | +-- fresh@0.3.0
  69. | +-- merge-descriptors@1.0.1
  70. | +-- methods@1.1.2
  71. | +-- on-finished@2.3.0
  72. | | `-- ee-first@1.1.1
  73. | +-- parseurl@1.3.1
  74. | +-- path-to-regexp@0.1.7
  75. | +-- proxy-addr@1.1.2
  76. | | +-- forwarded@0.1.0
  77. | | `-- ipaddr.js@1.1.1
  78. | +-- qs@6.2.0
  79. | +-- range-parser@1.2.0
  80. | +-- send@0.14.1
  81. | | +-- destroy@1.0.4
  82. | | `-- http-errors@1.5.1
  83. | | `-- setprototypeof@1.0.2
  84. | +-- serve-static@1.11.1
  85. | +-- type-is@1.6.14
  86. | | `-- media-typer@0.3.0
  87. | +-- utils-merge@1.0.0
  88. | `-- vary@1.1.0
  89. +-- redis@2.6.3
  90. | +-- double-ended-queue@2.1.0-0
  91. | +-- redis-commands@1.3.0
  92. | `-- redis-parser@2.3.0
  93. +-- socket.io@1.7.1
  94. | +-- debug@2.3.3
  95. | | `-- ms@0.7.2
  96. | +-- engine.io@1.8.1
  97. | | +-- base64id@0.1.0
  98. | | +-- debug@2.3.3
  99. | | | `-- ms@0.7.2
  100. | | +-- engine.io-parser@1.3.1
  101. | | | +-- after@0.8.1
  102. | | | +-- arraybuffer.slice@0.0.6
  103. | | | +-- base64-arraybuffer@0.1.5
  104. | | | +-- blob@0.0.4
  105. | | | +-- has-binary@0.1.6
  106. | | | `-- wtf-8@1.0.0
  107. | | `-- ws@1.1.1
  108. | | +-- options@0.0.6
  109. | | `-- ultron@1.0.2
  110. | +-- has-binary@0.1.7
  111. | | `-- isarray@0.0.1
  112. | +-- object-assign@4.1.0
  113. | +-- socket.io-adapter@0.5.0
  114. | | `-- debug@2.3.3
  115. | | `-- ms@0.7.2
  116. | +-- socket.io-client@1.7.1
  117. | | +-- backo2@1.0.2
  118. | | +-- component-bind@1.0.0
  119. | | +-- component-emitter@1.2.1
  120. | | +-- debug@2.3.3
  121. | | | `-- ms@0.7.2
  122. | | +-- engine.io-client@1.8.1
  123. | | | +-- component-emitter@1.2.1
  124. | | | +-- component-inherit@0.0.3
  125. | | | +-- debug@2.3.3
  126. | | | | `-- ms@0.7.2
  127. | | | +-- has-cors@1.1.0
  128. | | | +-- parsejson@0.0.3
  129. | | | +-- parseqs@0.0.5
  130. | | | +-- xmlhttprequest-ssl@1.5.3
  131. | | | `-- yeast@0.1.2
  132. | | +-- indexof@0.0.1
  133. | | +-- object-component@0.0.3
  134. | | +-- parseuri@0.0.5
  135. | | | `-- better-assert@1.0.2
  136. | | | `-- callsite@1.0.0
  137. | | `-- to-array@0.1.4
  138. | `-- socket.io-parser@2.3.1
  139. | +-- component-emitter@1.1.2
  140. | `-- json3@3.3.2
  141. `-- superagent@3.1.0
  142. +-- component-emitter@1.2.1
  143. +-- cookiejar@2.1.0
  144. +-- extend@3.0.0
  145. +-- form-data@2.1.2
  146. | +-- asynckit@0.4.0
  147. | `-- combined-stream@1.0.5
  148. | `-- delayed-stream@1.0.0
  149. +-- formidable@1.0.17
  150. +-- mime@1.3.4
  151. `-- readable-stream@2.2.2
  152. +-- buffer-shims@1.0.0
  153. +-- core-util-is@1.0.2
  154. +-- inherits@2.0.3
  155. +-- isarray@1.0.0
  156. +-- process-nextick-args@1.0.7
  157. +-- string_decoder@0.10.31
  158. `-- util-deprecate@1.0.2
  159. Wrote ./assets/js/print_format_v3.min.js - 18k
  160. Wrote ./assets/js/frappe-web.min.js - 132k
  161. Wrote ./assets/js/form.min.js - 138k
  162. Wrote ./assets/js/report.min.js - 159k
  163. Wrote ./assets/css/list.min.css - 6k
  164. Wrote ./assets/js/d3.min.js - 343k
  165. Wrote ./assets/css/report.min.css - 8k
  166. Wrote ./assets/css/frappe-web.css - 54k
  167. Wrote ./assets/js/list.min.js - 106k
  168. Wrote ./assets/js/dialog.min.js - 61k
  169. Wrote ./assets/js/desk.min.js - 247k
  170. Wrote ./assets/css/form.min.css - 4k
  171. Wrote ./assets/js/editor.min.js - 27k
  172. Wrote ./assets/js/libs.min.js - 886k
  173. Wrote ./assets/css/desk.min.css - 265k
  174. Wrote ./assets/css/module.min.css - 2k
  175. installing frappe", "stdout_lines": ["Already using interpreter /usr/bin/python", "/home/frappe/frappe-bench", "+-- express@4.14.0 ", "| +-- accepts@1.3.3 ", "| | +-- mime-types@2.1.13 ", "| | | `-- mime-db@1.25.0 ", "| | `-- negotiator@0.6.1 ", "| +-- array-flatten@1.1.1 ", "| +-- content-disposition@0.5.1 ", "| +-- content-type@1.0.2 ", "| +-- cookie@0.3.1 ", "| +-- cookie-signature@1.0.6 ", "| +-- debug@2.2.0 ", "| | `-- ms@0.7.1 ", "| +-- depd@1.1.0 ", "| +-- encodeurl@1.0.1 ", "| +-- escape-html@1.0.3 ", "| +-- etag@1.7.0 ", "| +-- finalhandler@0.5.0 ", "| | +-- statuses@1.3.1 ", "| | `-- unpipe@1.0.0 ", "| +-- fresh@0.3.0 ", "| +-- merge-descriptors@1.0.1 ", "| +-- methods@1.1.2 ", "| +-- on-finished@2.3.0 ", "| | `-- ee-first@1.1.1 ", "| +-- parseurl@1.3.1 ", "| +-- path-to-regexp@0.1.7 ", "| +-- proxy-addr@1.1.2 ", "| | +-- forwarded@0.1.0 ", "| | `-- ipaddr.js@1.1.1 ", "| +-- qs@6.2.0 ", "| +-- range-parser@1.2.0 ", "| +-- send@0.14.1 ", "| | +-- destroy@1.0.4 ", "| | `-- http-errors@1.5.1 ", "| | `-- setprototypeof@1.0.2 ", "| +-- serve-static@1.11.1 ", "| +-- type-is@1.6.14 ", "| | `-- media-typer@0.3.0 ", "| +-- utils-merge@1.0.0 ", "| `-- vary@1.1.0 ", "+-- redis@2.6.3 ", "| +-- double-ended-queue@2.1.0-0 ", "| +-- redis-commands@1.3.0 ", "| `-- redis-parser@2.3.0 ", "+-- socket.io@1.7.1 ", "| +-- debug@2.3.3 ", "| | `-- ms@0.7.2 ", "| +-- engine.io@1.8.1 ", "| | +-- base64id@0.1.0 ", "| | +-- debug@2.3.3 ", "| | | `-- ms@0.7.2 ", "| | +-- engine.io-parser@1.3.1 ", "| | | +-- after@0.8.1 ", "| | | +-- arraybuffer.slice@0.0.6 ", "| | | +-- base64-arraybuffer@0.1.5 ", "| | | +-- blob@0.0.4 ", "| | | +-- has-binary@0.1.6 ", "| | | `-- wtf-8@1.0.0 ", "| | `-- ws@1.1.1 ", "| | +-- options@0.0.6 ", "| | `-- ultron@1.0.2 ", "| +-- has-binary@0.1.7 ", "| | `-- isarray@0.0.1 ", "| +-- object-assign@4.1.0 ", "| +-- socket.io-adapter@0.5.0 ", "| | `-- debug@2.3.3 ", "| | `-- ms@0.7.2 ", "| +-- socket.io-client@1.7.1 ", "| | +-- backo2@1.0.2 ", "| | +-- component-bind@1.0.0 ", "| | +-- component-emitter@1.2.1 ", "| | +-- debug@2.3.3 ", "| | | `-- ms@0.7.2 ", "| | +-- engine.io-client@1.8.1 ", "| | | +-- component-emitter@1.2.1 ", "| | | +-- component-inherit@0.0.3 ", "| | | +-- debug@2.3.3 ", "| | | | `-- ms@0.7.2 ", "| | | +-- has-cors@1.1.0 ", "| | | +-- parsejson@0.0.3 ", "| | | +-- parseqs@0.0.5 ", "| | | +-- xmlhttprequest-ssl@1.5.3 ", "| | | `-- yeast@0.1.2 ", "| | +-- indexof@0.0.1 ", "| | +-- object-component@0.0.3 ", "| | +-- parseuri@0.0.5 ", "| | | `-- better-assert@1.0.2 ", "| | | `-- callsite@1.0.0 ", "| | `-- to-array@0.1.4 ", "| `-- socket.io-parser@2.3.1 ", "| +-- component-emitter@1.1.2 ", "| `-- json3@3.3.2 ", "`-- superagent@3.1.0 ", " +-- component-emitter@1.2.1 ", " +-- cookiejar@2.1.0 ", " +-- extend@3.0.0 ", " +-- form-data@2.1.2 ", " | +-- asynckit@0.4.0 ", " | `-- combined-stream@1.0.5 ", " | `-- delayed-stream@1.0.0 ", " +-- formidable@1.0.17 ", " +-- mime@1.3.4 ", " `-- readable-stream@2.2.2 ", " +-- buffer-shims@1.0.0 ", " +-- core-util-is@1.0.2 ", " +-- inherits@2.0.3 ", " +-- isarray@1.0.0 ", " +-- process-nextick-args@1.0.7 ", " +-- string_decoder@0.10.31 ", " `-- util-deprecate@1.0.2 ", "", "Wrote ./assets/js/print_format_v3.min.js - 18k", "Wrote ./assets/js/frappe-web.min.js - 132k", "Wrote ./assets/js/form.min.js - 138k", "Wrote ./assets/js/report.min.js - 159k", "Wrote ./assets/css/list.min.css - 6k", "Wrote ./assets/js/d3.min.js - 343k", "Wrote ./assets/css/report.min.css - 8k", "Wrote ./assets/css/frappe-web.css - 54k", "Wrote ./assets/js/list.min.js - 106k", "Wrote ./assets/js/dialog.min.js - 61k", "Wrote ./assets/js/desk.min.js - 247k", "Wrote ./assets/css/form.min.css - 4k", "Wrote ./assets/js/editor.min.js - 27k", "Wrote ./assets/js/libs.min.js - 886k", "Wrote ./assets/css/desk.min.css - 265k", "Wrote ./assets/css/module.min.css - 2k", "installing frappe"], "warnings": []}
  176. to retry, use: --limit @production/install.retry
  177.  
  178. PLAY RECAP *********************************************************************
  179. localhost : ok=34 changed=20 unreachable=0 failed=1
  180.  
  181. Traceback (most recent call last):
  182. File "install.py", line 351, in <module>
  183. install_bench(args)
  184. File "install.py", line 111, in install_bench
  185. run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
  186. File "install.py", line 301, in run_playbook
  187. success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  188. File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
  189. raise CalledProcessError(retcode, cmd)
  190. subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'production/install.yml', '-e', '@/tmp/extra_vars.json', '-vvvv', '--become', '--become-user=frappe']' returned non-zero exit status 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement