View this on browser not working

Hi, when we send a quote by email, the link to see on browser is not working, it display the error below.

ps. the link is with the correct hostname (http://my.domain.name/Quotation/QTN-00002?format=Standard&key=db971df8a5918282081f35269d473b25771fe83405435ec51a5f4cfe)

Please check by pulling latest updates.

bench update

Did this, but i got an error:

~$ 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'

Seems like your config files are not updated

run

bench setup config
bench update

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.

Update: we resolved this issue by reinstalling everything again, now it’s working as it should.