Run time Error - New Site

After installing app into new site, I started site using:

bench use site-name

In the browser, on localhost:8000, getting Run Time Error. Complete error message below.

RuntimeError
RuntimeError: no object bound to conf

Traceback (most recent call last)
File “/Users/haitham/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 591, in call
return self.app(environ, start_response)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 591, in call
return self.app(environ, start_response)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 224, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 290, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/Users/haitham/frappe-bench/apps/frappe/frappe/app.py”, line 113, in application
response = frappe.website.render.render(“message”, http_status_code=http_status_code)
File “/Users/haitham/frappe-bench/apps/frappe/frappe/website/render.py”, line 22, in render
path = resolve_path(path.strip("/ "))
File “/Users/haitham/frappe-bench/apps/frappe/frappe/website/render.py”, line 152, in resolve_path
path = resolve_from_map(path)
File “/Users/haitham/frappe-bench/apps/frappe/frappe/website/render.py”, line 158, in resolve_from_map
for r in frappe.get_hooks(“website_route_rules”)])
File “/Users/haitham/frappe-bench/apps/frappe/frappe/init.py”, line 716, in get_hooks
hooks = _dict(cache().get_value(“app_hooks”, load_app_hooks))
File “/Users/haitham/frappe-bench/apps/frappe/frappe/init.py”, line 196, in cache
redis_server = RedisWrapper.from_url(conf.get(“cache_redis_server”) or “redis://localhost:11311”)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 338, in getattr
return getattr(self._get_current_object(), name)
File “/Users/haitham/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 frame
dump(obj) dumps all that’s known about the object

Check if the sitename is exactly same as that in sites folder

yes. its just “ngo”. currently updated in the current site file as well.

after this error, getting same issue when switch to other sites as well. please help.

As per this help page: https://frappe.github.io/frappe/user/guides/app-development/how-enable-developer-mode-in-frappe.html

I tried to clear cache from the terminal. following is the error message when I try clear cache from “ngo” site. works fine for other site. I have also set developer mode : 1 for this site.

When did you last update?

yesterday, after issue as discussed in the following github issue was fixed by rushabh.