Erpnex 10 Update Broken


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/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/”, line 30, in update‘.’)
File “/home/frappe/.bench/bench/patches/”, line 21, in run
result = execute(bench_path)
File “/home/frappe/.bench/bench/patches/v3/”, line 10, in execute
File “/home/frappe/.bench/bench/config/”, 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?


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…