Unable to login

HI…
i use frappe for development.
but when i tried to login it gives me run time error like this:

RuntimeError

RuntimeError: no object bound to conf

Traceback (most recent call last)

File “/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py”,
line 15,
in call
return super(StaticDataMiddleware, self).call(environ, start_response)

File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”,
line 591,
in call
return self.app(environ, start_response)

File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”,
line 591,
in call
return self.app(environ, start_response)

File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”,
line 224,
in application
return ClosingIterator(app(environ, start_response), self.cleanup)

File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”,
line 290,
in application
return f(*args[:-2] + (request,))(*args[-2:])

File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”,
line 88,
in application
response = frappe.website.render.render(“message”, http_status_code=http_status_code)

File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”,
line 20,
in render
path = resolve_path(path.strip("/ "))

File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”,
line 176,
in resolve_path
path = resolve_from_map(path)

File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”,
line 182,
in resolve_from_map
for r in frappe.get_hooks(“website_route_rules”)])

File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”,
line 673,
in get_hooks
hooks = _dict(cache().get_value(“app_hooks”, load_app_hooks))

File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”,
line 183,
in cache
redis_server = RedisWrapper.from_url(conf.get(“cache_redis_server”) or “redis://localhost:11311”)

File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”,
line 338,
in getattr
return getattr(self._get_current_object(), name)

File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”,
line 301,
in _get_current_object
raise RuntimeError(‘no object bound to %s’ % self.name)

RuntimeError: no object bound to conf

The debugger caught an exception in your WSGI application. You can now
look at the traceback which led to the error. To
switch between the interactive traceback and the plaintext one, you can
click on the “Traceback” headline. From the text traceback you can also
create a paste of it. For code execution mouse-over the frame you want
to debug and click on the console icon on the right side.You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:dump() shows all variables in the framedump(obj) dumps all that’s known about the object

    Brought to you by DON'T PANIC, your
    friendly Werkzeug powered traceback interpreter.

also when i tried to run “sudo bench setup production”, it gives me error of wrong frappe password everytime.
idont know how to resolve it.
pls help me out.
thanks.
in hope for a quick reply.

Most likely a wrong site name

Before this issue is closed, check my solution here. It has to do with an improperly written site_config.json line enabling developer mode.

Runtime Error when running Virtual Box Development machine