~$ bench update
This update will replace ERPNext's Redis configuration files to fix a major secu rity 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 <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 722, in __ca ll__
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 inv oke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invo ke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invo ke
return callback(*args, **kwargs)
File "/home/frappe/.bench/bench/commands/update.py", line 31, 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 exec ute
generate_config(bench_path)
File "/home/frappe/.bench/bench/config/redis.py", line 10, in generate_config
ports[key] = urlparse.urlparse(config[key]).port
KeyError: 'redis_cache'
The command bench setup config seems to run, it doesn’t give any messages.
On the update now it shows another error. I tried to run with sudo, as root, same error.
$ bench update
INFO:bench.utils:updating bench
error: cannot open .git/FETCH_HEAD: Permission denied
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 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 35, in update
update_bench()
File "/home/frappe/.bench/bench/utils.py", line 227, in update_bench
exec_cmd("git pull", cwd=cwd)
File "/home/frappe/.bench/bench/utils.py", line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull
Hi, the bench update worked after some changes and commands we did, i rebooted the server after and genereated a new quote, but the email link is still not working, error below.