.After productions is up. if you want to add any other app. just go through with below setup to avoid error: <class ‘PermissionError’>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560
===========================================
go to bench folder
sudo service supervisor stop
sudo service nginx stop
bench start
OPEN NEW SESSION
go to bench folder
bench get-app chat make sure bench is runing in other terminal
bench get-app https://github.com/libracore/woocommerceconnector.git make sure bench is runing in other terminal
bench get-app healthcare make sure bench is runing in other terminal
bench get-app hospitality make sure bench is runing in other terminal
bench --site site1.local install-app chat make sure bench is runing in other terminal
bench --site site1.local install-app woocommerceconnector make sure bench is runing in other terminal
bench --site site1.local install-app healthcare make sure bench is runing in other terminal
bench --site site1.local install-app hospitality make sure bench is runing in other terminal
bench use site1.local
bench migrate
sudo service supervisor start
sudo service nginx start
bench --site site1.local clear-website-cache
Dear @Usman_Ali
I have the same error after production setup as you pointed out when I use “bench restart”
error: <class ‘PermissionError’>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560
I have followed your steps but I still get the following error.
yarn run v1.22.19
$ node esbuild --production --apps idea_management --run-build-command
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
File Size
DONE Total Build Time: 367.425ms
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
Done in 3.81s.
$ supervisorctl restart frappe:
unix:///var/run/supervisor.sock no such file
ERROR:
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 127, in cli
bench_command()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 181, in new_app
new_app(app_name, no_git)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 541, in new_app
install_app(app, bench_path=bench_path)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 589, in install_app
bench.reload()
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 151, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py", line 304, in restart_supervisor_processes
bench.run(f"{sudo}supervisorctl restart {group}")
File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/__init__.py", line 155, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
Your solution may make things work but I think it is not security-wise as it gives permissions to any user to read and execute anything inside /home/frappe directory.