frappe-v14@vmi980264:~/frappe-bench$ bench restart
$ supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
ERROR:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 121, in cli
raise e
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 111, in cli
bench_command()
File “/usr/local/lib/python3.10/dist-packages/click/core.py”, line 1130, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/click/core.py”, line 1055, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.10/dist-packages/click/core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.10/dist-packages/click/core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.10/dist-packages/click/core.py”, line 760, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/commands/utils.py”, line 29, in restart
Bench(“.”).reload(web, supervisor, systemd)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 110, 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 286, in restart_supervisor_processes
bench.run(f"{sudo}supervisorctl restart {group}")
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 47, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 153, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
In terminal enter below command to edit supervisor.conf
sudo nano /etc/supervisor/supervisord.conf
Below [unix_http_server] enter this
chown=your_erp_user:your_erp_user
sve and close the file
after that restart supervisor with below command
sudo service supervisor restart
in your bench folder run command
bench setup supervisor
Thank you, i did that but no thing change
Try this
sudo nano /etc/supervisor/supervisord.conf
(Add these lines under [unix_http_server])
chmod=0760
chown=frappe:frappe
or
sudo apt update
sudo apt upgrade -y
sudo usermod -a -G sudo "username"
We have same issue also here and we have edited etc/supervisor/supervisord.conf to have following:
[unix_http_server]
file = /var/run/supervisor.sock ; (the path to the socket file)
chmod = 0760
chown = ouruser:ouruser
chown = frappe:frappe
chown = rapuser:root ; (username:group)
[supervisord] - -
But this is not helping since it still complains when making bench restart like this:
bench restart
$ supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
ERROR:
Traceback (most recent call last): - -
Please check your Bench version
bench --version
If its above 5.12.0 then please downgrade your version to 5.12.0 using following command
sudo pip3 install frappe-bench==5.12.0
There is something causing issues with latest version of bench. So as long that is not fixed you can use the old version.
I hope this helps.
This is something with
sudo bench setup sudoers $(whoami)
https://frappeframework.com/docs/v14/user/en/bench/guides/setup-production
Hi I tried to downgrade but am getting the following error any ideas
root@vmi934288:/home/calmh/myfrappe# bench --version
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 5, in
from bench.cli import cli
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 13, in
from bench.bench import Bench
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 36, in
from bench.utils.app import get_current_version
File “/usr/local/lib/python3.10/dist-packages/bench/utils/app.py”, line 11, in
from bench.app import get_repo_dir
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 18, in
from git import Repo
File “/usr/local/lib/python3.10/dist-packages/git/init.py”, line 38, in
from git.exc import * # @NoMove @IgnorePep8
File “/usr/local/lib/python3.10/dist-packages/git/exc.py”, line 9, in
from git.compat import UnicodeMixin, safe_decode, string_types
File “/usr/local/lib/python3.10/dist-packages/git/compat.py”, line 21, in
from gitdb.utils.encoding import (
ImportError: cannot import name ‘string_types’ from ‘gitdb.utils.encoding’ (/usr/local/lib/python3.10/dist-packages/gitdb/utils/encoding.py)
if you find any solution could you tell me please
sudo bench setup production [frappe-user]
bench setup nginx
sudo bench setup production [frappe-user]
sudo chmod -R o+rx /home/[frappe-user]
sudo nano /etc/supervisor/supervisord.conf
chmod=0760
chown=frappe:frappe
sudo -A systemctl restart supervisor
What about the content in this previous post…
Check it out, it might be useful in your case.
chmod -R o+rx /home/frappe
and :
sudo nano /etc/supervisor/supervisord.conf
(Add these lines under [unix_http_server])
chmod=0760
chown=frappe:frappe
**restart supervisor
sudo -A systemctl restart supervisor