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. 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
Still getting this very frustrating error. But not getting solution.
Please help me. I stuck here.
Regards.