Bench start and bench build gives following error

Hi folks,
Hope everyone is doing fine during the lockdown at home. Stay Strong & Stay Safe.

Before posting on this issue, I went through the other posts in the forum.

bench update

gives the following error. Please help me to overcome it.
I am using erpnextv12, frappev12, bench 5.0.0

bench --site localsite list-apps

/home/user001/dddd/env/bin/python: No module named frappe.utils.bench_helper

user001@comp-erpnext-003:~/dist$ bench update
fatal: unable to access ‘https://gitlab.com/dist_erpnext_compleycompv12/frappe.git/’: Could not resolve host: gitlab.com
Traceback (most recent call last):
File “/home/user001/.local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/user001/bench/bench/cli.py”, line 41, in cli
bench_command()
File “/home/user001/.local/lib/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/user001/.local/lib/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/user001/.local/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/user001/.local/lib/python2.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/user001/.local/lib/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/user001/bench/bench/commands/update.py”, line 25, in update
update(pull=pull, patch=patch, build=build, requirements=requirements, restart_supervisor=restart_supervisor, restart_systemd=restart_systemd, backup=not no_backup, force=force, reset=reset)
File “/home/user001/bench/bench/utils.py”, line 176, in update
version_upgrade = is_version_upgrade()
File “/home/user001/bench/bench/app.py”, line 280, in is_version_upgrade
upstream_version = get_upstream_version(app=app, branch=branch, bench_path=bench_path)
File “/home/user001/bench/bench/app.py”, line 346, in get_upstream_version
contents = subprocess.check_output([‘git’, ‘show’, ‘upstream/{branch}:{app}/init.py’.format(branch=branch, app=app)], cwd=repo_dir, stderr=subprocess.STDOUT)
File “/usr/lib/python2.7/subprocess.py”, line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ‘[‘git’, ‘show’, ‘upstream/develop:frappe/init.py’]’ returned non-zero exit status 128

Any help is appreciated.
Thanks in advance!

The lockdown is going well, gaining some knowledge on customising ERPNEXT. On your issue, Isn’t that a DNS issue? Try solve that 1st error which is a resolution issue…

  • Check DNS,
  • Check access to that repo manually