Error updating ERPNEXT - Unable to open homepage after update

My actual stack trace is as follows:

File “/home/bossfella/frappe-bench/apps/frappe/frappe/website/”, line 32, in render
data = render_page_by_language(path)
File “/home/bossfella/frappe-bench/apps/frappe/frappe/website/”, line 101, in render_page_by_language
return render_page(path)
File “/home/bossfella/frappe-bench/apps/frappe/frappe/website/”, line 117, in render_page
return build(path)
File “/home/bossfella/frappe-bench/apps/frappe/frappe/website/”, line 124, in build
return build_page(path)
File “/home/bossfella/frappe-bench/apps/frappe/frappe/website/”, line 137, in build_page
context = get_context(path)
File “/home/bossfella/frappe-bench/apps/frappe/frappe/website/”, line 14, in get_context
context = get_page_context(path)
File “/home/bossfella/frappe-bench/apps/frappe/frappe/website/”, line 21, in get_page_context
frappe.cache().hset(“page_context”, path, page_context_cache)
File “/home/bossfella/frappe-bench/apps/frappe/frappe/utils/”, line 125, in hset
super(redis.Redis, self).hset(self.make_key(name), key, pickle.dumps(value))
RuntimeError: maximum recursion depth exceeded in cmp

Try running bench update again. If that doesn’t work try bench clear-cache

Update and clear-cache fixed the problem. Now working fine.

Thanks very much for your help, Anand.