Setup wizard fails ERPNext: v15.11.0 Frappe Framework: v15.12.0


(EDIT: I also raised an issue at GitHub)

In a fresh installation, the Setup Wizard gets stuck and I’m wondering if this error can be discarded and the application can be used.

This is an screenshot from the browser:

And the link provided before, shows this:

However if I just reload, there is no apparent errors. Accounts are loaded, at least.

Is it safe to use the ERPNext at this point?

You could try running a bench update --reset, and (theoretically) run the setup again after it finishes

Thanks for checking this.

Just tested, I’m getting this result:

frappe@d50e91cec24a:~/frappe-bench$ bench update --reset
ERROR: Command 'basename $(git symbolic-ref -q HEAD)' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 8, in <module>
  File "/usr/local/lib/python3.11/site-packages/bench/", line 132, in cli
  File "/usr/local/lib/python3.11/site-packages/click/", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/click/", line 1078, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.11/site-packages/click/", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.11/site-packages/click/", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.11/site-packages/click/", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/bench/commands/", line 59, in update
  File "/usr/local/lib/python3.11/site-packages/bench/utils/", line 442, in update
  File "/usr/local/lib/python3.11/site-packages/bench/utils/", line 629, in validate_branch
    branch = get_current_branch(app)
  File "/usr/local/lib/python3.11/site-packages/bench/utils/", line 175, in get_current_branch
    return get_cmd_output("basename $(git symbolic-ref -q HEAD)", cwd=repo_dir)
  File "/usr/local/lib/python3.11/site-packages/bench/utils/", line 228, in get_cmd_output
    output = subprocess.check_output(
  File "/usr/local/lib/python3.11/", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/lib/python3.11/", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'basename $(git symbolic-ref -q HEAD)' returned non-zero exit status 1.

You can try the instructions from this post by @smino…(he knows some stuff :slight_smile: )