Try ERPNext Buy Support Partners Foundation

Sudo: bench command not found while setup Supervisor

I’m running CentOS8 and everythings is fine now.
Tutorial for who need help:
Install ERPNext on CentOS 8

But when I type:
bench setup supervisor

WARN: superuser privileges required for this command`

then i type:
sudo bench setup supervisor

Sudo: bench command not found

last i using root command:
su
(root password)
bench setup supervisor

Traceback (most recent call last):
File "/home/dtben/.local/bin/bench", line 7, in <module>
from bench.cli import cli
ModuleNotFoundError: No module named 'bench'`

I can not start bench automatically after reboot. Please help me.

1 Like

Try this

sudo <full_path_to_bench> setup supervisor

sudo “/home/dtben/.local/bin/bench” bench setup supervisor

Traceback (most recent call last):
File “/home/dtben/.local/bin/bench”, line 7, in
from bench.cli import cli
ModuleNotFoundError: No module named ‘bench’`

run this

sudo /home/dtben/.local/bin/bench setup supervisor

The same errors
sudo /home/dtben/.local/bin/bench setup supervisor

Traceback (most recent call last):
File “/home/dtben/.local/bin/bench”, line 7, in
from bench.cli import cli
ModuleNotFoundError: No module named ‘bench’`

you should run on user shell and not in the root login.

you should run on user shell and not in the root login.

Yes, I know but can’t. Noway to add Bench start to Supervisor

WARN: superuser privileges required for this command`

sudo: bench command not found

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.