Update not working

I’m trying to update to Frappe 12.13.0 and to ERPNext 12.15.0 by running
sudo bench update
At some stage I get the following:

Building erpnext assets…

:heavy_check_mark: Built js/erpnext-web.min.js
:heavy_check_mark: Built css/marketplace.css
:heavy_check_mark: Built css/erpnext.css
:heavy_check_mark: Built js/item-dashboard.min.js
:heavy_check_mark: Built js/erpnext.min.js
:heavy_check_mark: Built css/erpnext-web.css
:heavy_check_mark: Built js/marketplace.min.js
:sparkles: Done in 5.974s
Done in 26.93s.
[sudo] password for erpnext:

I don’t know what password to enter. My system user’s password (a sudoer) doesn’t work.
After 3 wrong attempts I get the following:

sudo: 3 incorrect password attempts
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/bench-repo/bench/cli.py”, line 41, in cli
File “/usr/lib/python3/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/opt/bench/bench-repo/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 “/opt/bench/bench-repo/bench/utils.py”, line 213, in update
File “/opt/bench/bench-repo/bench/utils.py”, line 519, in restart_supervisor_processes
supervisor_status = subprocess.check_output([‘sudo’, ‘supervisorctl’, ‘status’], cwd=bench_path)
File “/usr/lib/python3.8/subprocess.py”, line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.8/subprocess.py”, line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘sudo’, ‘supervisorctl’, ‘status’]’ returned non-zero exit status 1.

Now the site is showing the message: “Your system is being updated. Please refresh again after a few moments” and I have no idea what to do.
I’m running Ubuntu 20.04.1 LTS

I figured out what was needed!
It’s silly but I have forgotten that I had created a user erpnext during the installation.
That was the one I had to use for the password.

I have to admit that for someone with no familiarity with Python and Frappe, things seem a bit confusing.

Positive point? ERPNext will make me learn Python!

I’m having this issue… where do I enter the password? I haven’t been promoted for one

Provide your steps and your error log please so we can help.

In many cases it might seem the same issue at first but it not might be the case everytime.

I was getting a long error message when using bench run but I’ve somehow fixed it and got it all working

Appreciate your response :slight_smile: