Error on bench Update to version 8.0.43 for frappe

Hi there,
I am performing bench update and received the following error:
Don’t know what seems to be the issue.

user@User-ThinkPad-T400:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
remote: Counting objects: 141, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 141 (delta 108), reused 103 (delta 103), pack-reused 24
Receiving objects: 100% (141/141), 27.10 KiB | 26.00 KiB/s, done.
Resolving deltas: 100% (109/109), completed with 66 local objects.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
4e80f58…2b8a12d master → upstream/master
4e80f58…5c6483d develop → upstream/develop
a6b4ca1…47321e4 hotfix → upstream/hotfix

Error reading /home/user/.nano_history: Permission denied

Press Enter to continue starting nano.
Merge made by the ‘recursive’ strategy.
frappe/email/doctype/contact/contact.js | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)
INFO:bench.utils:find . -name “*.pyc” -delete erpnext
INFO:bench.utils:git pull upstream master
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

  • branch master → FETCH_HEAD
    0d0d3ba…154385d master → upstream/master
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete
    Updating Python libraries…
    INFO:bench.utils:./env/bin/pip install --upgrade pip
    /home/user/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.2.0 documentation.
    /home/user/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see Advanced Usage - urllib3 2.2.0 documentation.
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    INFO:bench.utils:./env/bin/pip install -q -r /home/user/bench-repo/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
    Backing up sites…
    Patching sites…
    Updating DocTypes for frappe : [========================================]
    Updating DocTypes for erpnext : [========================================]
    Syncing help database…
    Wrote ./assets/js/report.min.js - 165k
    Wrote ./assets/js/erpnext-web.min.js - 2k
    Wrote ./assets/css/frappe-web.css - 65k
    Wrote ./assets/css/web_form.css - 24k
    Wrote ./assets/css/desk.min.css - 282k
    Wrote ./assets/js/frappe-web.min.js - 131k
    Wrote ./assets/css/list.min.css - 16k
    Wrote ./assets/css/report.min.css - 8k
    Wrote ./assets/js/list.min.js - 118k
    Wrote ./assets/css/erpnext.css - 7k
    Wrote ./assets/js/form.min.js - 150k
    Wrote ./assets/js/web_form.min.js - 166k
    Wrote ./assets/js/dialog.min.js - 69k
    Wrote ./assets/js/desk.min.js - 299k
    Wrote ./assets/js/libs.min.js - 730k
    Wrote ./assets/css/frappe-rtl.css - 32k
    Wrote ./assets/css/module.min.css - 2k
    Wrote ./assets/js/print_format_v3.min.js - 18k
    Wrote ./assets/js/erpnext.min.js - 95k
    Wrote ./assets/js/item-dashboard.min.js - 6k
    Wrote ./assets/js/d3.min.js - 343k
    Wrote ./assets/css/form.min.css - 4k
    [sudo] password for user:
    INFO:bench.utils:sudo supervisorctl restart frappe:
    error: <class ‘xmlrpclib.Fault’>, <Fault 10: ‘BAD_NAME: frappe’>: file: /usr/lib/python2.7/ line: 794
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==4.1.0’, ‘console_scripts’, ‘bench’)()
    File “/home/user/bench-repo/bench/”, line 40, in cli
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/user/bench-repo/bench/commands/”, line 62, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force, reset=reset)
    File “/home/user/bench-repo/bench/commands/”, line 103, in _update
    File “/home/user/bench-repo/bench/”, line 360, in restart_supervisor_processes
    exec_cmd(‘sudo supervisorctl restart {group}’.format(group=group), cwd=bench_path)
    File “/home/user/bench-repo/bench/”, line 130, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: sudo supervisorctl restart frappe:

Wrong sudo password?

Password provided is correct

Moreover doing the same using root user
And still it asks for sudo password.
Still provided the password and got the same error.

I have installed frappe-bench for my user and not for frappe user.
May be that’s the reason it is failing?

as it is trying to restart supervisorctl for frappe user.