Supervisor restart [No such Group] error still exist

frappe@frappe:~/frappe-bench$ bench restart
$ supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
ERROR: supervisorctl restart frappe:
subprocess.CalledProcessError: Command ‘supervisorctl restart frappe:’ returned non-zero exit status 2.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
^^^^^
File “/usr/local/lib/python3.11/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.11/dist-packages/bench/commands/utils.py”, line 41, in restart
Bench(“.”).reload(web, supervisor, systemd)
File “/usr/local/lib/python3.11/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/bench/bench.py”, line 152, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web, _raise=_raise)
File “/usr/local/lib/python3.11/dist-packages/bench/utils/bench.py”, line 321, in restart_supervisor_processes
failure = bench.run(f"{sudo}supervisorctl restart {group}", _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/bench/utils/init.py”, line 158, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: supervisorctl restart frappe:

This is a permissions/ownership error. Most of the modern installation guides include a section on changing/setting this to the correct values.
I can’t remember the commands off-hand, but it’s something like

  # # Change the ownership to your "${erpnextuser}" user for supervisor service. Otherwise it will fail to restart whenever you are doing an update.
  # OR
  # # to prevent/fix the Error: <class ‘PermissionError’>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560 
    # sudo groupadd supervisor;
  # OR
    # sudo perl -pe "s/^(chmod=0700.*?)$/;\$1\nchmod=0760\nchown=${erpnextuser}:${erpnextuser}/gi" -i /etc/supervisor/supervisord.conf;
  # OR
sudo usermod -a "${erpnextuser}" -G supervisor;
sudo perl -pe "s/^(chmod=0700.*?)$/;\$1\nchmod=0760\nchown=${erpnextuser}:supervisor/gi" -i /etc/supervisor/supervisord.conf;
sudo perl -pe "s/^chmod=0770$/chmod=0760/gi" -i /etc/supervisor/supervisord.conf;