New Installation Ubuntu 14

TASK [bench : Create a new site] ***************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “new-site”, “site1.local”, “–admin-password”, “admin”, “–mariadb-root-password”, “root”], “delta”: “0:00:05.601164”, “end”: “2018-03-15 07:07:59.793380”, “failed”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-03-15 07:07:54.192216”, “stderr”: “INFO:bench.utils:creating new site site1.local\nINFO:bench.utils:/home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin\n/bin/sh: 1: /home/frappe/frappe-bench/env/bin/frappe: not found\nTraceback (most recent call last):\n File "/usr/local/bin/bench", line 11, in \n load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()\n File "/home/frappe/.bench/bench/cli.py", line 40, in cli\n bench_command()\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in call\n return self.main(*args, **kwargs)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main\n rv = self.invoke(ctx)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke\n return callback(*args, **kwargs)\n File "/home/frappe/.bench/bench/commands/make.py", line 64, in new_site\n new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)\n File "/home/frappe/.bench/bench/utils.py", line 195, in new_site\n ), cwd=os.path.join(bench_path, ‘sites’))\n File "/home/frappe/.bench/bench/utils.py", line 145, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: /home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin”, “stderr_lines”: [“INFO:bench.utils:creating new site site1.local”, “INFO:bench.utils:/home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin”, “/bin/sh: 1: /home/frappe/frappe-bench/env/bin/frappe: not found”, “Traceback (most recent call last):”, " File "/usr/local/bin/bench", line 11, in “, " load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()”, " File "/home/frappe/.bench/bench/cli.py", line 40, in cli", " bench_command()“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in call”, " return self.main(*args, **kwargs)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main”, " rv = self.invoke(ctx)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke”, " return _process_result(sub_ctx.command.invoke(sub_ctx))“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke”, " return ctx.invoke(self.callback, **ctx.params)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke”, " return callback(*args, **kwargs)“, " File "/home/frappe/.bench/bench/commands/make.py", line 64, in new_site”, " new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)“, " File "/home/frappe/.bench/bench/utils.py", line 195, in new_site”, " ), cwd=os.path.join(bench_path, ‘sites’))“, " File "/home/frappe/.bench/bench/utils.py", line 145, in exec_cmd”, " raise CommandFailedError(cmd)", “bench.utils.CommandFailedError: /home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin”], “stdout”: “frappe app is not installed. Run the following command to install frappe\nbench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”, “stdout_lines”: [“frappe app is not installed. Run the following command to install frappe”, “bench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=76 changed=21 unreachable=0 failed=1

mysql password is correct already check

Hi ,
Did you use easy installation method ?

Yes Easy i

Is it aws ec2 ? Did u open port number 80 ?

already open

Can you reproduce the exact steps u used for installation ?

yes already i try

Welcome to nginx! display

Try this two command

apt-get install git
git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps benc-repo

After run the production command again

after this still same issue

Can you paste the complete trace ?

TASK [bench : Create a new site] ***************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “new-site”, “site1.local”, “–admin-password”, “admin”, “–mariadb-root-password”, “root”], “delta”: “0:00:04.895354”, “end”: “2018-03-15 07:54:03.054772”, “failed”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-03-15 07:53:58.159418”, “stderr”: “INFO:bench.utils:creating new site site1.local\nINFO:bench.utils:/home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin\n/bin/sh: 1: /home/frappe/frappe-bench/env/bin/frappe: not found\nTraceback (most recent call last):\n File "/usr/local/bin/bench", line 11, in \n load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()\n File "/home/frappe/.bench/bench/cli.py", line 40, in cli\n bench_command()\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in call\n return self.main(*args, **kwargs)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main\n rv = self.invoke(ctx)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke\n return callback(*args, **kwargs)\n File "/home/frappe/.bench/bench/commands/make.py", line 64, in new_site\n new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)\n File "/home/frappe/.bench/bench/utils.py", line 195, in new_site\n ), cwd=os.path.join(bench_path, ‘sites’))\n File "/home/frappe/.bench/bench/utils.py", line 145, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: /home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin”, “stderr_lines”: [“INFO:bench.utils:creating new site site1.local”, “INFO:bench.utils:/home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin”, “/bin/sh: 1: /home/frappe/frappe-bench/env/bin/frappe: not found”, “Traceback (most recent call last):”, " File "/usr/local/bin/bench", line 11, in “, " load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()”, " File "/home/frappe/.bench/bench/cli.py", line 40, in cli", " bench_command()“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in call”, " return self.main(*args, **kwargs)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main”, " rv = self.invoke(ctx)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke”, " return _process_result(sub_ctx.command.invoke(sub_ctx))“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke”, " return ctx.invoke(self.callback, **ctx.params)“, " File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke”, " return callback(*args, **kwargs)“, " File "/home/frappe/.bench/bench/commands/make.py", line 64, in new_site”, " new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)“, " File "/home/frappe/.bench/bench/utils.py", line 195, in new_site”, " ), cwd=os.path.join(bench_path, ‘sites’))“, " File "/home/frappe/.bench/bench/utils.py", line 145, in exec_cmd”, " raise CommandFailedError(cmd)", “bench.utils.CommandFailedError: /home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password root --admin_password admin”], “stdout”: “frappe app is not installed. Run the following command to install frappe\nbench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”, “stdout_lines”: [“frappe app is not installed. Run the following command to install frappe”, “bench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=75 changed=13 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 387, in
install_bench(args)
File “install.py”, line 109, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 325, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2
You have new mail in /var/mail/root

Refer this

using Ubuntu 14 Version

resolved here Another Ubuntu 16 Version Try - #6 by trentmu

1 Like