Version 7.0.42 to Version 8 - Upgrade Error

Hi everyone,

I am trying to update from version 7.0.42 to version 8, but am having some issues.

I ran:
cd apps/frappe
git reset --hard

cd apps/erpnext
git reset --hard

Then:
bench update
bench update --upgrade

This is the traceback:

INFO:bench.utils:find . -name "*.pyc" -delete INFO:bench.app:pulling erpnext Traceback (most recent call last): File "/usr/local/bin/bench", line 11, in <module> load_entry_point('bench', 'console_scripts', 'bench')() File "/home/frappe/bench-repo/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-repo/bench/commands/update.py", line 62, in update _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force, reset=reset) File "/home/frappe/bench-repo/bench/commands/update.py", line 79, in _update pull_all_apps(bench_path=bench_path, reset=reset) File "/home/frappe/bench-repo/bench/app.py", line 170, in pull_all_apps remote=remote, branch=get_current_branch(app, bench_path=bench_path)), cwd=app_dir) File "/home/frappe/bench-repo/bench/app.py", line 201, in get_current_branch return get_cmd_output("basename $(git symbolic-ref -q HEAD)", cwd=repo_dir) File "/home/frappe/bench-repo/bench/utils.py", line 344, in get_cmd_output return subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=open(os.devnull, 'wb')).strip() File "/usr/lib/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command 'basename $(git symbolic-ref -q HEAD)' returned non-zero exit status 1

I haven’t found any threads with this sort of error… Does anyone have an idea what’s the cause/ how to fix?

Any help would be much much appreciated!

Thank you

Hi @p_gokul its not the same i tried you have to reset git pull in /home/frappe/frappe-bench/.bench and retry again update with --upgrade after that reset ur browser cache .

Regards

Hi @SOLOSOFT, i tried git reset --hard and git pull in /.bench folder but still not working. I’m still having the error above. Any ideas? thanks! :smiley: