Erpnex 10 Update Broken

Hi

I was just performing an update and it broke, and now my production is not working, please see below.

bench update

This update will replace ERPNext’s Redis configuration files to fix a major security issue.
If you don’t know what this means, type Y

Do you want to continue? [y/N]: y
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
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 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/frappe/.bench/bench/commands/update.py”, line 30, in update
patches.run(bench_path=’.’)
File “/home/frappe/.bench/bench/patches/init.py”, line 21, in run
result = execute(bench_path)
File “/home/frappe/.bench/bench/patches/v3/redis_bind_ip.py”, line 10, in execute
generate_config(bench_path)
File “/home/frappe/.bench/bench/config/redis.py”, line 15, in generate_config
ports[key] = urlparse(config[key]).port
KeyError: ‘redis_cache’

What clould be the thing

Hi @deepak727,

the corresponding change dates back ~1 year (see [Important] Redis Configuration Security Vulnerability). From which version are you updating? Does the error persist if you repeat bench update?

Hi

I using Version 10 and Upgrading was in 10 only, till now I have found from the logs that there is now redis_cache.conf file is not present, in fact whole conf directory is empty, don’t know how…