Unable to create new bench on CentOS 7

Getting below mentioned error while creating a new bench on CentOS 7


Command “/usr/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-ZjFwla/psutil/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-uyZhCd-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-ZjFwla/psutil/

What version of python are you running?

[root@erp ~]# python
Python 2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

@prasad_mailbox

Please try installing psutil using sudo pip install psutil and then proceed to create a new bench.

Tried using sudo pip install psutil. Getting below error

Command “/usr/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-bgZQLj/psutil/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-wNVb_E-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-bgZQLj/psutil/

Try to update your python more recent version python@2.7.12

Everything is installed as per instructions, but while starting the bench getting below error.

[prasad@erp ~]$ bench start
2016-11-22 10:05:15 [5946] [ERROR] Procfile does not exist or is not a file

@prasad_mailbox

Execute bench setup procfile and then do bench start

Now getting below error

[prasad@erp ~]$ bench start
14:17:51 system | redis_socketio.1 started (pid=24767)
14:17:51 redis_socketio.1 | [24767] 22 Nov 14:17:51.804 # Fatal error, can’t open config file ‘config/redis_socketio.conf’
14:17:51 system | redis_socketio.1 stopped (rc=1)
14:17:51 system | worker_long.1 started (pid=24774)
14:17:51 system | watch.1 started (pid=24770)
14:17:51 system | redis_queue.1 started (pid=24776)
14:17:51 system | worker_default.1 started (pid=24780)
14:17:51 system | schedule.1 started (pid=24779)
14:17:51 system | web.1 started (pid=24782)
14:17:51 redis_queue.1 | [24776] 22 Nov 14:17:51.841 # Fatal error, can’t open config file ‘config/redis_queue.conf’
14:17:51 system | socketio.1 started (pid=24783)
14:17:51 system | redis_cache.1 started (pid=24786)
14:17:51 system | redis_queue.1 stopped (rc=1)
14:17:51 system | worker_short.1 started (pid=24792)
14:17:51 system | sending SIGTERM to worker_long.1 (pid 24774)
14:17:51 system | sending SIGTERM to watch.1 (pid 24770)
14:17:51 system | sending SIGTERM to web.1 (pid 24782)
14:17:51 system | sending SIGTERM to schedule.1 (pid 24779)
14:17:51 system | sending SIGTERM to worker_default.1 (pid 24780)
14:17:51 system | sending SIGTERM to socketio.1 (pid 24783)
14:17:51 system | sending SIGTERM to redis_cache.1 (pid 24786)
14:17:51 system | sending SIGTERM to worker_short.1 (pid 24792)
14:17:51 system | socketio.1 stopped (rc=-15)
14:17:51 system | watch.1 stopped (rc=-15)
14:17:51 system | web.1 stopped (rc=-15)
14:17:51 system | worker_short.1 stopped (rc=-15)
14:17:51 system | schedule.1 stopped (rc=-15)
14:17:51 system | redis_cache.1 stopped (rc=-15)
14:17:51 system | worker_long.1 stopped (rc=-15)
14:17:51 system | worker_default.1 stopped (rc=-15)

bench setup redis

[prasad@erp ~]$ bench setup redis
Traceback (most recent call last):
File “/usr/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/prasad/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/prasad/bench-repo/bench/commands/setup.py”, line 41, in setup_redis
generate_config(‘.’)
File “/home/prasad/bench-repo/bench/config/redis.py”, line 10, in generate_config
ports[key] = urlparse.urlparse(config[key]).port
KeyError: ‘redis_cache’

This command needs to be executed from frappe-bench you are trying to execute from your Home. :expressionless: