New bench installation error

Hi,

While installing bench through easy install, I am getting stuck up at this stage. What should I do?

TASK [init bench] **************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/frappe/frappe-bench”, “–frappe-branch”, “master”], “delta”: “0:01:34.572883”, “end”: “2017-02-27 18:42:54.861853”, “failed”: true, “rc”: 1, “start”: “2017-02-27 18:41:20.288970”, “stderr”: “Command “git clone -q https://github.com/frappe/python-pdfkit.git /home/frappe/frappe-bench/env/src/pdfkit” failed with error code 128 in None\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 19, in init\n verbose=verbose, clone_from=clone_from)\n File “/home/frappe/.bench/bench/utils.py”, line 46, in init\n setup_env(bench_path=path)\n File “/home/frappe/.bench/bench/utils.py”, line 134, in setup_env\n exec_cmd(’./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit’, cwd=bench_path)\n File “/home/frappe/.bench/bench/utils.py”, line 127, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: ./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit”, “stdout”: “Already using interpreter /usr/bin/python\nfatal: unable to access ‘https://github.com/frappe/python-pdfkit.git/’: gnutls_handshake() failed: The TLS connection was non-properly terminated.”, “stdout_lines”: [“Already using interpreter /usr/bin/python”, “fatal: unable to access ‘https://github.com/frappe/python-pdfkit.git/’: gnutls_handshake() failed: The TLS connection was non-properly terminated.”], “warnings”: []}
to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=32 changed=15 unreachable=0 failed=1

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

Regards
Uma

Try the solution from here

1 Like

Thank you very much. I was able to install ERPNext after following the
instructions on this link. but am not able to open the site. When I type
https://localhost, I am getting Problem loading page. It is not even
connecting. It is a production site so I don’t have to start the bench,
right?

Regards
Uma

Hello @UmaG,

Hope Some environment are mission.
Can you try to run below commends.

bench setup socketio
bench setup redis
bench setup nginx
bench setup supervisor

then

bench setup production

Hope then you can run
https://localhost

Thanks.

1 Like

Thanks @mainul:slight_smile:

It worked…