Advertisement
Guest User

init bench failing

a guest
Dec 7th, 2016
116
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. | | | | `-- [email protected]
  50. Wrote ./assets/js/print_format_v3.min.js - 18k
  51. Wrote ./assets/js/frappe-web.min.js - 132k
  52. Wrote ./assets/js/form.min.js - 138k
  53. Wrote ./assets/js/report.min.js - 159k
  54. Wrote ./assets/css/list.min.css - 6k
  55. Wrote ./assets/js/d3.min.js - 343k
  56. Wrote ./assets/css/report.min.css - 8k
  57. Wrote ./assets/css/frappe-web.css - 54k
  58. Wrote ./assets/js/list.min.js - 106k
  59. Wrote ./assets/js/dialog.min.js - 61k
  60. Wrote ./assets/js/desk.min.js - 247k
  61. Wrote ./assets/css/form.min.css - 4k
  62. Wrote ./assets/js/editor.min.js - 27k
  63. Wrote ./assets/js/libs.min.js - 886k
  64. Wrote ./assets/css/desk.min.css - 265k
  65. Wrote ./assets/css/module.min.css - 2k
  66. installing frappe", "stdout_lines": ["Already using interpreter /usr/bin/python", "/home/frappe/frappe-bench", "+-- [email protected] ", "| +-- [email protected] ", "| | +-- [email protected] ", "| | | `-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| | +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| | +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| | +-- [email protected] ", "| | `-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| `-- [email protected] ", "+-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| `-- [email protected] ", "+-- [email protected] ", "| +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| | +-- [email protected] ", "| | +-- [email protected] ", "| | | `-- [email protected] ", "| | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | `-- [email protected] ", "| | `-- [email protected] ", "| | +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| +-- [email protected] ", "| | `-- [email protected] ", "| | `-- [email protected] ", "| +-- [email protected] ", "| | +-- [email protected] ", "| | +-- [email protected] ", "| | +-- [email protected] ", "| | +-- [email protected] ", "| | | `-- [email protected] ", "| | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | | `-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | +-- [email protected] ", "| | | `-- [email protected] ", "| | +-- [email protected] ", "| | +-- [email protected] ", "| | +-- [email protected] ", "| | | `-- [email protected] ", "| | | `-- [email protected] ", "| | `-- [email protected] ", "| `-- [email protected] ", "| +-- [email protected] ", "| `-- [email protected] ", "`-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " | +-- [email protected] ", " | `-- [email protected] ", " | `-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " `-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " +-- [email protected] ", " `-- [email protected] ", "", "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": []}
  67. to retry, use: --limit @production/install.retry
  68.  
  69. PLAY RECAP *********************************************************************
  70. localhost : ok=34 changed=20 unreachable=0 failed=1
  71.  
  72. Traceback (most recent call last):
  73. File "install.py", line 351, in <module>
  74. install_bench(args)
  75. File "install.py", line 111, in install_bench
  76. run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
  77. File "install.py", line 301, in run_playbook
  78. success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  79. File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
  80. raise CalledProcessError(retcode, cmd)
  81. 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