Runtime Error: For new Site (Development Tutorial)

Hi ,

I used AWS t2.micro (Ubuntu 14.04 LTS) , i followed video one and install the apps meeting , bench start . everything was ok until i login to my address with port 8000 ( i have open all my port in AWS).
but when i attempt to login into the page , it shows me error with runtime error : no object bound to conf
here is the issues log :

ubuntu@ip-172-31-36-247:~/frappe-bench$ bench start
17:17:38 system | socketio.1 started (pid=3244)
17:17:38 system | redis_async_broker.1 started (pid=3243)
17:17:38 redis_async_broker.1 | [3249] 02 Feb 17:17:38.205 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
17:17:38 redis_async_broker.1 | .
17:17:38 redis_async_broker.1 | .-__ ''-._ 17:17:38 redis_async_broker.1 | _.- . . ‘’-._ Redis 2.8.4 (00000000/0) 64 bit
17:17:38 redis_async_broker.1 | .- .-```. ```\/ _.,_ ''-._ 17:17:38 redis_async_broker.1 | ( ' , .-` | `, ) Running in stand alone mode 17:17:38 redis_async_broker.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 12311 17:17:38 redis_async_broker.1 | | -. ._ / _.-' | PID: 3249 17:17:38 redis_async_broker.1 | -._ -._ -./ .-’ .-’
17:17:38 redis_async_broker.1 | |-._-.
-.__.-' _.-'_.-'| 17:17:38 redis_async_broker.1 | | -.
-._ _.-'_.-' | http://redis.io 17:17:38 redis_async_broker.1 | -._ -._-..-'.-’ .-’
17:17:38 redis_async_broker.1 | |-._-.
-.__.-' _.-'_.-'| 17:17:38 redis_async_broker.1 | | -.
-._ _.-'_.-' | 17:17:38 redis_async_broker.1 | -._ -._-.
.-‘.-’ .-’
17:17:38 redis_async_broker.1 | -._ -..-’ _.-’
17:17:38 redis_async_broker.1 | -._ _.-' 17:17:38 redis_async_broker.1 | -.
.-’
17:17:38 redis_async_broker.1 |
17:17:38 redis_async_broker.1 | [3249] 02 Feb 17:17:38.210 # Server started, Redis version 2.8.4
17:17:38 redis_async_broker.1 | [3249] 02 Feb 17:17:38.210 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
17:17:38 redis_async_broker.1 | [3249] 02 Feb 17:17:38.210 * The server is now ready to accept connections on port 12311
17:17:38 system | web.1 started (pid=3242)
17:17:38 system | redis_cache.1 started (pid=3245)
17:17:38 redis_cache.1 | [3257] 02 Feb 17:17:38.218 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
17:17:38 redis_cache.1 | .
17:17:38 redis_cache.1 | .-__ ''-._ 17:17:38 redis_cache.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 64 bit
17:17:38 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 17:17:38 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 17:17:38 redis_cache.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 11311 17:17:38 redis_cache.1 | | -._ ._ / _.-' | PID: 3257 17:17:38 redis_cache.1 | -._ -._ -./ .-’ .-’
17:17:38 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 17:17:38 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 17:17:38 redis_cache.1 | -._ -._-..-'.-’ .-’
17:17:38 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 17:17:38 redis_cache.1 | | -.
-._ _.-'_.-' | 17:17:38 redis_cache.1 | -._ -._-.
.-‘_.-’ _.-’
17:17:38 redis_cache.1 | -._ -..-’ _.-’
17:17:38 redis_cache.1 | -._ _.-' 17:17:38 redis_cache.1 | -.
.-’
17:17:38 redis_cache.1 |
17:17:38 redis_cache.1 | [3257] 02 Feb 17:17:38.220 # Server started, Redis version 2.8.4
17:17:38 redis_cache.1 | [3257] 02 Feb 17:17:38.220 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
17:17:38 redis_cache.1 | [3257] 02 Feb 17:17:38.220 * The server is now ready to accept connections on port 11311
17:17:38 system | workerbeat.1 started (pid=3247)
17:17:38 system | worker.1 started (pid=3246)
17:17:39 workerbeat.1 | celery beat v3.1.20 (Cipater) is starting.
17:17:39 workerbeat.1 | __ - … __ - _
17:17:39 workerbeat.1 | Configuration →
17:17:39 workerbeat.1 | . broker → redis://localhost:6379//
17:17:39 workerbeat.1 | . loader → celery.loaders.app.AppLoader
17:17:39 workerbeat.1 | . scheduler → celery.beat.PersistentScheduler
17:17:39 workerbeat.1 | . db → scheduler.schedule
17:17:39 workerbeat.1 | . logfile → [stderr]@%INFO
17:17:39 workerbeat.1 | . maxinterval → now (0s)
17:17:39 workerbeat.1 | [2016-02-02 17:17:39,350: INFO/MainProcess] beat: Starting…
17:17:39 worker.1 |
17:17:39 worker.1 | -------------- celery@ip-172-31-36-247 v3.1.20 (Cipater)
17:17:39 worker.1 | ---- **** -----
17:17:39 worker.1 | — * *** * – Linux-3.13.0-74-generic-x86_64-with-Ubuntu-14.04-trusty
17:17:39 worker.1 | – * - **** —
17:17:39 worker.1 | - ** ---------- [config]
17:17:39 worker.1 | - ** ---------- .> app: frappe:0x7f31800ea6d0
17:17:39 worker.1 | - ** ---------- .> transport: redis://localhost:6379//
17:17:39 worker.1 | - ** ---------- .> results: redis://localhost/
17:17:39 worker.1 | - *** — * — .> concurrency: 1 (prefork)
17:17:39 worker.1 | – ******* ----
17:17:39 worker.1 | — ***** ----- [queues]
17:17:39 worker.1 | -------------- .> celery exchange=celery(direct) key=celery
17:17:39 worker.1 |
17:17:39 worker.1 |
17:17:39 socketio.1 | listening on *:3000
17:17:39 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
17:17:39 web.1 | * Restarting with inotify reloader
17:17:39 web.1 | * Debugger is active!
17:17:39 web.1 | * Debugger pin code: 771-488-586
17:17:40 worker.1 | [2016-02-02 17:17:40,524: WARNING/MainProcess] celery@ip-172-31-36-247 ready.
17:17:51 web.1 | 103.61.124.19 - - [02/Feb/2016 17:17:51] “GET / HTTP/1.1” 500 -
17:17:51 web.1 | Traceback (most recent call last):
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
17:17:51 web.1 | return super(StaticDataMiddleware, self).call(environ, start_response)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 599, in call
17:17:51 web.1 | return self.app(environ, start_response)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 599, in call
17:17:51 web.1 | return self.app(environ, start_response)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
17:17:51 web.1 | return ClosingIterator(app(environ, start_response), self.cleanup)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 291, in application
17:17:51 web.1 | return f(*args[:-2] + (request,))(*args[-2:])
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py”, line 113, in application
17:17:51 web.1 | response = frappe.website.render.render(“message”, http_status_code=http_status_code)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/website/render.py”, line 22, in render
17:17:51 web.1 | path = resolve_path(path.strip("/ "))
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/website/render.py”, line 152, in resolve_path
17:17:51 web.1 | path = resolve_from_map(path)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/website/render.py”, line 158, in resolve_from_map
17:17:51 web.1 | for r in frappe.get_hooks(“website_route_rules”)])
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 716, in get_hooks
17:17:51 web.1 | hooks = _dict(cache().get_value(“app_hooks”, load_app_hooks))
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 196, in cache
17:17:51 web.1 | redis_server = RedisWrapper.from_url(conf.get(“cache_redis_server”) or “redis://localhost:11311”)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 343, in getattr
17:17:51 web.1 | return getattr(self._get_current_object(), name)
17:17:51 web.1 | File “/home/ubuntu/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 306, in _get_current_object
17:17:51 web.1 | raise RuntimeError(‘no object bound to %s’ % self.name)
17:17:51 web.1 | RuntimeError: no object bound to conf
17:17:51 web.1 | 103.61.124.19 - - [02/Feb/2016 17:17:51] “GET /?debugger=yes&cmd=resource&f=style.css HTTP/1.1” 200 -
17:17:51 web.1 | 103.61.124.19 - - [02/Feb/2016 17:17:51] “GET /?debugger=yes&cmd=resource&f=debugger.js HTTP/1.1” 200 -
17:17:51 web.1 | 103.61.124.19 - - [02/Feb/2016 17:17:51] “GET /?debugger=yes&cmd=resource&f=jquery.js HTTP/1.1” 200 -
17:17:52 web.1 | 103.61.124.19 - - [02/Feb/2016 17:17:52] “GET /?debugger=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1” 200 -
17:17:52 web.1 | 103.61.124.19 - - [02/Feb/2016 17:17:52] “GET /?debugger=yes&cmd=resource&f=console.png HTTP/1.1” 200 -

Hi Guys,

I figure it out , this was due to my invalid site name when i do bench use [site_name]

it works now

Thanks

1 Like