Logging in error message

Hey guys,

I’m getting this error when attempting to log in:

Traceback (innermost last):

File “/home/erpuser/frappe-bench/apps/frappe/frappe/app.py”, line 76, in application
response = frappe.website.render.render(request.path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 54, in render
data = render_page(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 124, in render_page
return build(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 133, in build
return build_method(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 149, in build_page
context = get_context(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/context.py”, line 29, in get_context
context = build_context(context)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/context.py”, line 75, in build_context
ret = module.get_context(context)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/templates/pages/error.py”, line 11, in get_context
print frappe.get_traceback()
IOError: [Errno 32] Broken pipe

This error occurs on all accounts except administrator.

Never seen this one before. Could be an issue with your deployment settings. Maybe one of your redis servers is not running? Is this the full trace?

This is the full trace as far as I know. Or at least, it’s the full trace displayed to me at time of login

We restarted our server, now getting a different error message:

Traceback (innermost last):
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 24, in render
data = render_page(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 124, in render_page
return build(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 133, in build
return build_method(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/render.py”, line 149, in build_page
context = get_context(path)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/context.py”, line 29, in get_context
context = build_context(context)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/website/context.py”, line 75, in build_context
ret = module.get_context(context)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/templates/pages/desk.py”, line 21, in get_context
boot = frappe.sessions.get()
File “/home/erpuser/frappe-bench/apps/frappe/frappe/sessions.py”, line 104, in get
bootinfo = get_bootinfo()
File “/home/erpuser/frappe-bench/apps/frappe/frappe/boot.py”, line 49, in get_bootinfo
add_home_page(bootinfo, doclist)
File “/home/erpuser/frappe-bench/apps/frappe/frappe/boot.py”, line 145, in add_home_page
frappe.message_log.pop()
IndexError: pop from empty list

-Also, it allows me to log in, but gives the error when trying to go to the desk.

I deleted the old user accounts, and created some new ones. The new ones can log in normally now.

Seems very strange.

You can add an if condition to pop only if there is a message in line 145 of frappe/boot.py

if frappe.message_log:
  frappe.message_log.pop()

It turns out to be something related to the role permissions. We ended up reinstalling ERPnext. Thanks!

I have added this in the product too. Never seen it break earlier.