ERPNext.com Frappe Cloud Documentation Partners Frappe School Public Chat

Upgrade from 3.17.0 to 3.18.0 Failed

Hi all,

Am trying to upgrade erpnext ubuntu 20.04.3 getting following error, kindly help

Building frappe assets…

Built js/checkout.min.js
Built js/dialog.min.js
Built js/web_form.min.js
Built js/user_profile_controller.min.js
Built js/list.min.js
Built js/bootstrap-4-web.min.js
Built js/barcode_scanner.min.js
Built js/frappe-recorder.min.js
Built js/frappe-web.min.js
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Browserslist: caniuse-lite is outdated. Please run next command yarn upgrade caniuse-lite browserslist
Built css/report.min.css
Built css-rtl/report.min.css
Built js/data_import_tools.min.js
Built js/report.min.js
Built css/web_form.css
Built css-rtl/web_form.css
Built css/printview.css
Built css/email.css
Built css/login.css
Built js/desk.min.js
Built css/frappe-web-b4.css
Built css/desk.min.css
Built js/control.min.js
Built css-rtl/printview.css
Built css-rtl/email.css
Built css-rtl/login.css
Built css-rtl/frappe-web-b4.css
Built css-rtl/desk.min.css
Built js/form.min.js
Done in 56.136s
Done in 57.75s.
$ supervisorctl restart frappe:
error: <class ‘PermissionError’>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560
ERROR:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.8/dist-packages/bench/cli.py”, line 117, in cli
raise e
File “/usr/local/lib/python3.8/dist-packages/bench/cli.py”, line 107, in cli
bench_command()
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 “/usr/local/lib/python3.8/dist-packages/bench/commands/update.py”, line 23, in update
update(pull=pull, apps=apps, patch=patch, build=build, requirements=requirements, restart_supervisor=restart_supervisor, restart_systemd=restart_systemd, backup=not no_backup, compile=not no_compile, force=force, reset=reset)
File “/usr/local/lib/python3.8/dist-packages/bench/utils/bench.py”, line 397, in update
bench.setup.requirements()
File “/usr/local/lib/python3.8/dist-packages/bench/utils/render.py”, line 95, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.8/dist-packages/bench/bench.py”, line 337, in requirements
App(app, bench=self.bench, to_clone=False).install()
File “/usr/local/lib/python3.8/dist-packages/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.8/dist-packages/bench/app.py”, line 188, in install
install_app(
File “/usr/local/lib/python3.8/dist-packages/bench/app.py”, line 423, in install_app
restart_supervisor_processes(bench_path=bench_path)
File “/usr/local/lib/python3.8/dist-packages/bench/utils/bench.py”, line 267, in restart_supervisor_processes
bench.run(f"supervisorctl restart {group}")
File “/usr/local/lib/python3.8/dist-packages/bench/bench.py”, line 43, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File “/usr/local/lib/python3.8/dist-packages/bench/utils/init.py”, line 126, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError

thanks

1 Like

@nb.com Can you provide some more information? What software is failing on 3.17 to 3.18? Those surely aren’t Frappe/ERPNext versions?

This seems to be supervisor sock file permission issue.
I recommend you setup supervisor first using sudo bench setup supervisor