Can`t login Uncaught Server Exception

Hello dears

Suddenly i faced this error only in login page and canot login to my system

also i tried

-change website theme from tabsingles
-migrate entire system to a new bench with new files

  • update to last version
    but no luck

    Traceback (most recent call last):
    File “/home/frappe/cilek-bench/apps/frappe/frappe/website/”, line 45, in render
    data = render_page_by_language(path)
    File “/home/frappe/cilek-bench/apps/frappe/frappe/website/”, line 142, in render_page_by_language
    return render_page(path)
    File “/home/frappe/cilek-bench/apps/frappe/frappe/website/”, line 158, in render_page
    return build(path)
    File “/home/frappe/cilek-bench/apps/frappe/frappe/website/”, line 165, in build
    return build_page(path)
    File “/home/frappe/cilek-bench/apps/frappe/frappe/website/”, line 181, in build_page
    html = frappe.render_template(context.source, context)
    File “/home/frappe/cilek-bench/apps/frappe/frappe/utils/”, line 79, in render_template
    throw(title=“Jinja Template Error”, msg=“

    ”.format(template=template, tb=get_traceback()))
    File “/home/frappe/cilek-bench/apps/frappe/frappe/”, line 356, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
    File “/home/frappe/cilek-bench/apps/frappe/frappe/”, line 342, in msgprint
    File “/home/frappe/cilek-bench/apps/frappe/frappe/”, line 315, in _raise_exception
    raise raise_exception(msg)
    {% extends “templates/web.html” %}

{% block style %}

{% include "templates/includes/login/login.css" %}

{% endblock %}

{% block page_content %}

		<input type="text" id="login_email"
			placeholder="{% if login_name_placeholder %}{{ login_name_placeholder  }}{% else %}{{ _("Email address") }}{% endif %}"
			required autofocus>

		<div class="password-field" style="position: relative;">
			<input type="password" id="login_password"
				class="form-control" placeholder="{{ _('Password') }}" required>
			<span toggle="#login_password" class="fa fa-fw fa-eye toggle-password"></span>

		<button class="btn btn-sm btn-primary btn-block btn-login" type="submit">
			{{ _("Sign in") }}</button>

		{% if ldap_settings and ldap_settings.enabled %}
		<button class="btn btn-sm btn-default btn-block btn-login btn-ldap-login">
			{{ _("Login with LDAP") }}</button>
		{% endif %}
<div class='form-footer'>

		<div class='social-logins'>
		{%- if social_login -%}
			<h6>{{ _("Or login with") }}</h6>

			<p class="text-center" style="margin-top: 15px">
			{% for provider in provider_logins %}
				<a href="{{ provider.auth_url }}"
					class="btn btn-default btn-xs btn-social btn-{{ }}">
						{{ provider.icon }} {{ provider.provider_name }}</a>
			{% endfor %}
		{%- endif -%}

{%- if not disable_signup -%}
	<p class="text-center sign-up-message">
		<a href="#signup" style="margin-top: -2px;">{{ _("Don't have an account? Sign up") }}</a>
{%- endif -%}
<p class="text-center forgot-password-message">
	<a href="#forgot">{{ _("Forgot Password?") }}</a></p>
{{ _("Sign up") }}
{{ _("Send Password") }}
{% endblock %}

{% block script %}

{% endblock %}

{% block sidebar %}{% endblock %}

Traceback (most recent call last):
File “/home/frappe/cilek-bench/apps/frappe/frappe/utils/”, line 77, in render_template
return get_jenv().from_string(template).render(context)
File “/home/frappe/cilek-bench/env/local/lib/python2.7/site-packages/jinja2/”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/home/frappe/cilek-bench/env/local/lib/python2.7/site-packages/jinja2/”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “”, line 1, in top-level template code
File “/home/frappe/cilek-bench/apps/frappe/frappe/./templates/web.html”, line 6, in top-level template code
{%- if page_or_generator==“Generator” %}source-type=“Generator” data-doctype=“{{ doctype }}”{% endif %}
File “/home/frappe/cilek-bench/apps/frappe/frappe/./templates/base.html”, line 38, in top-level template code
{% block body %}
File “/home/frappe/cilek-bench/apps/frappe/frappe/./templates/base.html”, line 99, in block “body”
{%- block script %}{%- endblock %}
File “”, line 101, in block “script”
File “/home/frappe/cilek-bench/apps/frappe/frappe/./templates/includes/login/login.js”, line 69, in top-level template code
{% if ldap_settings.enabled %}
File “/home/frappe/cilek-bench/env/local/lib/python2.7/site-packages/jinja2/”, line 430, in getattr
return getattr(obj, attribute)
UndefinedError: ‘ldap_settings’ is undefined

May be disable LDAP temporarily via DB

set value=0
where doctype=‘LDAP Settings’
and field=‘enabled’;

no LDAP Settings records at all in tabSingles !!!

i cant update nothing

so i`m trying to insert them manually

No success !!

how to reload Lpad doctype ??
and will it help !!

ok solved by

1 Like

I am facing the same error I tried accessing this link it says site cant be reached