How to solve this problem? /bin/sh: 1: redis-server: not found

/bin/sh: 1: redis-server: not found
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/amol/workspace/amol/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/amol/workspace/amol/bench-repo/bench/commands/make.py”, line 30, in init
python = python)
File “/home/amol/workspace/amol/bench-repo/bench/utils.py”, line 89, in init
redis.generate_config(path)
File “/home/amol/workspace/amol/bench-repo/bench/config/redis.py”, line 39, in generate_config
“redis_version”: get_redis_version(),
File “/home/amol/workspace/amol/bench-repo/bench/config/redis.py”, line 59, in get_redis_version
version_string = subprocess.check_output(‘redis-server --version’, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 574, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ‘redis-server --version’ returned non-zero exit status 127

When i use bench init frappe-bench && cd frappe-bench get an error…
so tell me how to resolve it

if you have not installed redis then install redis-server

sudo apt-get install redis-server

3 Likes

thanks a lot for always helping me thank you so much… finally it works