Trouble Deploying Bokeh Applet

Hi (again…second post today),

So I’m trying to launch a bokeh widget/applet on Heroku. I’m have 2 processes: one that deploys the bokeh server (bokeh-server --script twitter_app.py) and the second actually runs the flask app (similar to the stock app example).

I’m able to launch this applet locally and also able to push it, but when I try to go to the link, I end up with a 500 error. The logs are below. I get similar result and logs when I use the example code from the stock app example.

Any idea where I’m going wrong?

Thank you!

2015-01-28T21:18:48.026968+00:00 app[web.1]: WARNING:bokeh.session:root_url should end with a /, adding one
2015-01-28T21:18:48.040549+00:00 app[web.1]: ERROR:sampleapp:Exception on / [GET]
2015-01-28T21:18:48.040554+00:00 app[web.1]: Traceback (most recent call last):
2015-01-28T21:18:48.040556+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/flask/app.py”, line 1817, in wsgi_app
2015-01-28T21:18:48.040558+00:00 app[web.1]: response = self.full_dispatch_request()
2015-01-28T21:18:48.040559+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/flask/app.py”, line 1477, in full_dispatch_request
2015-01-28T21:18:48.040560+00:00 app[web.1]: rv = self.handle_user_exception(e)
2015-01-28T21:18:48.040563+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2015-01-28T21:18:48.040564+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/flask/app.py”, line 1475, in full_dispatch_request
2015-01-28T21:18:48.040562+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/flask/app.py”, line 1381, in handle_user_exception
2015-01-28T21:18:48.040566+00:00 app[web.1]: rv = self.dispatch_request()
2015-01-28T21:18:48.040567+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/flask/app.py”, line 1461, in dispatch_request
2015-01-28T21:18:48.040568+00:00 app[web.1]: return self.view_functionsrule.endpoint
2015-01-28T21:18:48.040593+00:00 app[web.1]: File “/app/flask_server.py”, line 28, in applet
2015-01-28T21:18:48.040595+00:00 app[web.1]: applet = make_stock_applet()
2015-01-28T21:18:48.040596+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/bokeh/pluginutils.py”, line 14, in wrapper
2015-01-28T21:18:48.040597+00:00 app[web.1]: session.use_doc(docname)
2015-01-28T21:18:48.040599+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/bokeh/session.py”, line 485, in use_doc
2015-01-28T21:18:48.040600+00:00 app[web.1]: self.docid = self.find_doc(name)
2015-01-28T21:18:48.040601+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/bokeh/session.py”, line 448, in find_doc
2015-01-28T21:18:48.040602+00:00 app[web.1]: docs = self.userinfo.get(‘docs’)
2015-01-28T21:18:48.040605+00:00 app[web.1]: self._userinfo = self.get_json(url)
2015-01-28T21:18:48.040604+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/bokeh/session.py”, line 403, in userinfo
2015-01-28T21:18:48.040606+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/bokeh/session.py”, line 381, in get_json
2015-01-28T21:18:48.040607+00:00 app[web.1]: return self.execute_json(‘get’, url, headers=headers, **kwargs)
2015-01-28T21:18:48.040609+00:00 app[web.1]: File “/app/.heroku/miniconda/lib/python2.7/site-packages/bokeh/session.py”, line 357, in execute_json
2015-01-28T21:18:48.040610+00:00 app[web.1]: raise e
2015-01-28T21:18:48.040611+00:00 app[web.1]: ConnectionError: (‘Connection aborted.’, error(111, ‘Connection refused’))
2015-01-28T21:18:48.027384+00:00 app[web.1]: Using saved session configuration for http://localhost:5006
2015-01-28T21:18:48.027389+00:00 app[web.1]: To override, pass ‘load_from_config=False’ to Session
2015-01-28T21:18:48.028468+00:00 app[web.1]: INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
2015-01-28T21:18:48.052106+00:00 heroku[router]: at=info method=GET path="/" host=floating-beach-8451.herokuapp.com request_id=18bbbddd-45bf-42ff-a8ed-a250d59a8b49 fwd=“18.188.124.34” dyno=web.1 connect=3ms service=21ms status=500 bytes=456
2015-01-28T21:18:48.223893+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=floating-beach-8451.herokuapp.com request_id=95b8efbe-39b5-4b58-a402-eb0525d613cd fwd=“18.188.124.34” dyno=web.1 connect=3ms service=5ms status=404 bytes=386

``