ERP Next Install Ubuntu 22.04 - Bench 5.19 - Supervisor no such group

Here below are

  1. my VPS environmnet | 2. adjusted /etc/supervisor/supervisord.conf | 3. Error Message when running bench get-app payments

Hello All, i am new to this. any good suggestion to fix?

  1. Environment
    Distributor ID: Ubuntu
    Description: Ubuntu 22.04.3 LTS
    Release: 22.04
    Codename: jammy
    node 16.15.0
    mariadb mariadb Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
    redis-server Redis server v=6.0.16 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=a3fdef44459b3ad6
    bench 5.19.0

  2. conf file

Blockquote

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

[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

Blockquote

  1. Error Message

Blockquote
frappe@srv452898:~/frappe-bench$ bench get-app payments
A directory for the application ‘payments’ already exists. Do you want to continue and overwrite it? [y/N]: y
INFO: App moved from apps/payments to archived/apps/payments-2023-12-24_4
Getting payments
$ git clone GitHub - frappe/payments: A payments app for frappe --branch develop --depth 1 --origin upstream
Cloning into ‘payments’…
remote: Enumerating objects: 109, done.
remote: Counting objects: 100% (109/109), done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 109 (delta 19), reused 56 (delta 13), pack-reused 0
Receiving objects: 100% (109/109), 60.90 KiB | 1.35 MiB/s, done.
Resolving deltas: 100% (19/19), done.
Ignoring dependencies of payments. To install dependencies use --resolve-deps
Installing payments
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/payments
$ bench build --app payments
:heavy_check_mark: Application Assets Linked

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

DONE Total Build Time: 866.151ms

clean: postcss.plugin was deprecated. Migration guide:

clean: postcss.plugin was deprecated. Migration guide:

Done in 1.49s.
$ supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
WARN: restarting supervisor failed. Use bench restart to retry.

Blockquote

Did you restart the actual supervisor subsystem after you made adjustments to its config?
Something like…
sudo systemctl restart supervisor

yes, i did but following persists
$ supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)

Hi,

A working frappe instance here has the following /etc/supervisor/supervisord.conf

; supervisor config file

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

[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

Note the differences. Try: bench setup supervisor

1 Like

you can try :

sudo apt install supervisor

Hi Smino,

Many Thanks for your inputs and followed your version of /etc/supervisor/supervisord.conf.
I think we made a progress. Now the error shows as following:

$ supervisorctl restart frappe:
unix:///var/run/supervisor.sock no such file
WARN: restarting supervisor failed. Use bench restart to retry.

when i run sudo systemctl status supervisor, got following response.

● supervisor.service - Supervisor process control system for UNIX
Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2023-12-26 05:57:54 UTC; 21s ago
Docs: http://supervisord.org
Process: 20781 ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf (code=exited, status=2)
Main PID: 20781 (code=exited, status=2)
CPU: 176ms

Please kindly share further suggestions. Thanks.

Thanks, Gembira_IT_Tech, confirmed installed already
when i run sudo systemctl status supervisor, got following response.

● supervisor.service - Supervisor process control system for UNIX
Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2023-12-26 05:57:54 UTC; 21s ago
Docs: http://supervisord.org
Process: 20781 ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf (code=exited, status=2)
Main PID: 20781 (code=exited, status=2)
CPU: 176ms

Please kindly share further insights. Thanks.

See if: sudo journalctl -u supervisord.service yields any additional clues.

It may also help to say what instructions were followed to install frappe-bench.

2 Likes

Noted with many thanks, Smino.