All of a sudden I have started getting server error 500

Today all of a sudden I have started getting server 500 error.

Below is the output log that is shown when I try to access Login.

Traceback (most recent call last):
  File "apps/frappe/frappe/www/app.py", line 26, in get_context
    boot = frappe.sessions.get()
  File "apps/frappe/frappe/sessions.py", line 161, in get
    bootinfo = get_bootinfo()
  File "apps/frappe/frappe/boot.py", line 69, in get_bootinfo
    bootinfo.notification_settings = get_notification_settings()
  File "apps/frappe/frappe/boot.py", line 391, in get_notification_settings
    return frappe.get_cached_doc("Notification Settings", frappe.session.user)
  File "apps/frappe/frappe/__init__.py", line 1083, in get_cached_doc
    doc = get_doc(*args, **kwargs)
  File "apps/frappe/frappe/__init__.py", line 1172, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 73, in get_doc
    return controller(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 105, in __init__
    self.load_from_db()
  File "apps/frappe/frappe/model/document.py", line 147, in load_from_db
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 523, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 491, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 443, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Notification Settings Administrator not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/website/serve.py", line 18, in get_response
    response = renderer_instance.render()
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 78, in render
    html = self.get_html()
  File "apps/frappe/frappe/website/utils.py", line 510, in cache_html_decorator
    html = func(*args, **kwargs)
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 89, in get_html
    self.update_context()
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 157, in update_context
    data = self.run_pymodule_method("get_context")
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 219, in run_pymodule_method
    return method(self.context)
  File "apps/frappe/frappe/www/app.py", line 29, in get_context
    print(frappe.get_traceback())
BrokenPipeError: [Errno 32] Broken pipe

What is this error and how to correct it?

Regards,

I managed to solve the problem by restarting my VPS.

Finally things are working. But I would like to know as to why such a problem ever occurrences? And want should we do to solve it instead of restarting the whole server?

Regards,

Hi,

Do the nginx logs have any clues?