Frappe: ERROR (no such group)

HI Experts,

I was trying to create module, but getting below error:

vagrant@frappe:~/frappe-bench$ bench new-app dbss                      
App Title [Dbss]: 
App Description: DBSS
App Publisher: DBSS
App Email: nbanik@gmail.com
App License (agpl-3.0, apache-2.0, bsd-2-clause, bsd-3-clause, bsl-1.0, cc0-1.0, epl-2.0, gpl-2.0, gpl-3.0, lgpl-2.1, mit, mpl-2.0, unlicense) [mit]: 
Create GitHub Workflow action for unittests [y/N]: n
'dbss' created at /home/vagrant/frappe-bench/apps/dbss
Installing dbss
$ /home/vagrant/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/vagrant/frappe-bench/apps/dbss 
$ bench build --app dbss
✔ Application Assets Linked                                                                                                                


yarn run v1.22.21
$ node esbuild --apps dbss --run-build-command
File                                                        Size

DONE  Total Build Time: 192.536ms

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 1.18s.
$ 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 <module>
  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/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 177, in new_app
  new_app(app_name, no_git)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 524, in new_app
  install_app(app, bench_path=bench_path)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 567, in install_app
  bench.reload()
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 309, 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

I use vagrant user and it has sudo. I edited file /etc/supervisor/supervisord.conf

; supervisor config file

[unix_http_server]
chown=vagrant:vagrant
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0700                       ; sockef file mode (default 0700)
chown=vagrant:vagrant

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket

; The [include] section can just contain the "files" setting.  This
; setting can list multiple files (separated by whitespace or
; newlines).  It can also contain wildcards.  The filenames are
; interpreted as relative to this file.  Included files *cannot*
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf

Please help me. :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear:
I stuck here for 2 days.

Regards.

These commands help you

bench setup socketio

bench setup supervisor

bench setup redis

sudo supervisorctl reload

@mohsininspire Thanks for helping.
I’ve followed the above steps. But getting the same error:

vagrant@frappe:~/frappe-bench$ bench version
dbss 0.0.1
frappe 15.x.x-develop
spms 0.0.1
vagrant@frappe:~/frappe-bench$ bench setup socketio
vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ bench setup supervisor
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
vagrant@frappe:~/frappe-bench$ bench setup redis
vagrant@frappe:~/frappe-bench$ sudo supervisorctl reload
Restarted supervisord
vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ bench new-app dbss       
App Title [Dbss]: DBSS
App Description: DBSS
App Publisher: nbanik@gmail.com
App Email: nbanik@gmail.com
App License (agpl-3.0, apache-2.0, bsd-2-clause, bsd-3-clause, bsl-1.0, cc0-1.0, epl-2.0, gpl-2.0, gpl-3.0, lgpl-2.1, mit, mpl-2.0, unlicense) [mit]: 
Create GitHub Workflow action for unittests [y/N]: n
'dbss' created at /home/vagrant/frappe-bench/apps/dbss
Installing dbss
$ /home/vagrant/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/vagrant/frappe-bench/apps/dbss 
$ bench build --app dbss
✔ Application Assets Linked                                                                                                                                                                                                      


yarn run v1.22.21
$ node esbuild --apps dbss --run-build-command
File                                                        Size

 DONE  Total Build Time: 199.748ms

 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 1.18s.
$ 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 <module>
    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/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 177, in new_app
    new_app(app_name, no_git)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 524, in new_app
    install_app(app, bench_path=bench_path)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 567, in install_app
    bench.reload()
  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 309, 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
vagrant@frappe:~/frappe-bench$ 

Please helpp :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear:

It is chmod=760

Changed accordingly:

; supervisor config file

[unix_http_server]
chown=vagrant:vagrant
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0700                       ; sockef file mode (default 0700)
chown=vagrant:vagrant

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket

; The [include] section can just contain the "files" setting.  This
; setting can list multiple files (separated by whitespace or
; newlines).  It can also contain wildcards.  The filenames are
; interpreted as relative to this file.  Included files *cannot*
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf

Getting same error:

vagrant@frappe:~/frappe-bench$ bench new-app dbss
App Title [Dbss]: 
App Description: DBSS
App Publisher: DBSS
App Email: nbanik@gmail.com
App License (agpl-3.0, apache-2.0, bsd-2-clause, bsd-3-clause, bsl-1.0, cc0-1.0, epl-2.0, gpl-2.0, gpl-3.0, lgpl-2.1, mit, mpl-2.0, unlicense) [mit]: 
Create GitHub Workflow action for unittests [y/N]: n
'dbss' created at /home/vagrant/frappe-bench/apps/dbss
Installing dbss
$ /home/vagrant/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/vagrant/frappe-bench/apps/dbss 
$ bench build --app dbss
✔ Application Assets Linked                                                                                                                                                                                                      


yarn run v1.22.21
$ node esbuild --apps dbss --run-build-command
File                                                        Size

 DONE  Total Build Time: 233.59ms

Done in 1.39s.
$ 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 <module>
    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/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 177, in new_app
    new_app(app_name, no_git)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 524, in new_app
    install_app(app, bench_path=bench_path)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 567, in install_app
    bench.reload()
  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 309, 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
vagrant@frappe:~/frappe-bench$ cat /etc/supervisor/supervisord.conf 
; supervisor config file

[unix_http_server]
chown=vagrant:vagrant
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0700                       ; sockef file mode (default 0700)
chown=vagrant:vagrant

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket

; The [include] section can just contain the "files" setting.  This
; setting can list multiple files (separated by whitespace or
; newlines).  It can also contain wildcards.  The filenames are
; interpreted as relative to this file.  Included files *cannot*
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf
vagrant@frappe:~/frappe-bench$ 

It is too frustrating… I’m fully stuck.
:smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear:

chmod=760

Changed accordingly:

; supervisor config file

[unix_http_server]
chown=vagrant:vagrant
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=760                       ; sockef file mode (default 0700)
chown=vagrant:vagrant

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket

; The [include] section can just contain the "files" setting.  This
; setting can list multiple files (separated by whitespace or
; newlines).  It can also contain wildcards.  The filenames are
; interpreted as relative to this file.  Included files *cannot*
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf

But got the same error again and again, why it is looking for frappe group?

Error:

vagrant@frappe:~/frappe-bench$ bench new-app dbss
App Title [Dbss]: 
App Description: DBSS
App Publisher: DBSS
App Email: nbanik@gmail.com
App License (agpl-3.0, apache-2.0, bsd-2-clause, bsd-3-clause, bsl-1.0, cc0-1.0, epl-2.0, gpl-2.0, gpl-3.0, lgpl-2.1, mit, mpl-2.0, unlicense) [mit]: 
Create GitHub Workflow action for unittests [y/N]: n
'dbss' created at /home/vagrant/frappe-bench/apps/dbss
Installing dbss
$ /home/vagrant/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/vagrant/frappe-bench/apps/dbss 
$ bench build --app dbss
✔ Application Assets Linked                                                                                                                                                                                                      


yarn run v1.22.21
$ node esbuild --apps dbss --run-build-command
File                                                        Size

 DONE  Total Build Time: 203.268ms

Done in 1.28s.
$ 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 <module>
    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/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 177, in new_app
    new_app(app_name, no_git)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 524, in new_app
    install_app(app, bench_path=bench_path)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 567, in install_app
    bench.reload()
  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 309, 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

Use this command now.

Tried:

vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ bench setup socketio
vagrant@frappe:~/frappe-bench$ bench setup supervisor
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
vagrant@frappe:~/frappe-bench$ bench setup redis
vagrant@frappe:~/frappe-bench$ sudo supervisorctl reload
Restarted supervisord
vagrant@frappe:~/frappe-bench$ 
vagrant@frappe:~/frappe-bench$ 

After that:

vagrant@frappe:~/frappe-bench$ bench --site  ericsson-dbss.com list-apps

frappe 15.x.x-develop () develop
spms   0.0.1             main

vagrant@frappe:~/frappe-bench$ bench new-app dbss                       
App Title [Dbss]:    
App Description: DBSS
App Publisher: DBSS
App Email: nbanik@gmail.com
App License (agpl-3.0, apache-2.0, bsd-2-clause, bsd-3-clause, bsl-1.0, cc0-1.0, epl-2.0, gpl-2.0, gpl-3.0, lgpl-2.1, mit, mpl-2.0, unlicense) [mit]: 
Create GitHub Workflow action for unittests [y/N]: n
'dbss' created at /home/vagrant/frappe-bench/apps/dbss
Installing dbss
$ /home/vagrant/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/vagrant/frappe-bench/apps/dbss 
$ bench build --app dbss
✔ Application Assets Linked                                                                                                                                                                                                      


yarn run v1.22.21
$ node esbuild --apps dbss --run-build-command
File                                                        Size

 DONE  Total Build Time: 206.281ms

Done in 1.26s.
$ 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 <module>
    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/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 177, in new_app
    new_app(app_name, no_git)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 524, in new_app
    install_app(app, bench_path=bench_path)
  File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 567, in install_app
    bench.reload()
  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 309, 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
vagrant@frappe:~/frappe-bench$ 

Same error…

solution in:
Very Common Error - Frappe Framework - Frappe Forum