Install bench manager error

hello erpnext friends

I would like you to help me, I am trying to install the bench maanager to be able to manage new sites on a server and I have the following error they could give me a hand; The erpnext was installed directly in production mode

frappe@erpnext:~$ bench setup manager
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/setup.py", line 182, in setup_manager
    if 'bench-manager.local' in os.listdir('sites'):
OSError: [Errno 2] No such file or directory: 'sites'

Are you running this from directory where sites exists e.g. frappe-bench, the error shown in stack trace relates to bench not being able to find sites sub-directory. I suggest running this from directory that has both apps and sites sub-directories

2 Likes

I’m using this tutorial to install erpnext

Now I’m trying to install the bench-manager and I get that error

frappe@vmi266276:~/frappe-bench/sites$ bench setup manager
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/setup.py", line 182, in setup_manager
    if 'bench-manager.local' in os.listdir('sites'):
OSError: [Errno 2] No such file or directory: 'sites'
frappe@vmi266276:~/frappe-bench/sites$ ls
apps.txt  assets  common_site_config.json  currentsite.txt  site1.local

I do not understand what may be happening, you can help me

He meant that you need to run it from the ~/frappe-bench directory.

BKM

1 Like

@arael25 all bench commands must be run in the frappe-bench directory.