# Trouble Deploying Bokeh Applet

**URL:** <https://discourse.bokeh.org/t/trouble-deploying-bokeh-applet/315>\
**Category:** Community Support\
**Created:** [January 28, 2015, 9:22pm UTC](https://discourse.bokeh.org/t/trouble-deploying-bokeh-applet/315 "2015-01-28T21:22:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benji\_Xie](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/b/cab0a1/32.png) [@Benji\_Xie](https://discourse.bokeh.org/u/Benji_Xie)\
**Post date:** [January 28, 2015, 9:22pm UTC](https://discourse.bokeh.org/t/trouble-deploying-bokeh-applet/315/1 "2015-01-28T21:22:24Z")

</div>

Hi (again…second post today),

So I’m trying to launch a bokeh widget/applet on [Heroku](https://www.heroku.com/). 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](https://github.com/bokeh/bokeh/tree/master/examples/app/stock_applet)).

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](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](http://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](http://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

``

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads.bokeh.org/original/2X/1/14eb24f9e10e4e9b78e3f10f66c04ffa96446e5a.svg) [@system](https://discourse.bokeh.org/u/system)\
**Post date:** [July 21, 2021, 9:04pm UTC](https://discourse.bokeh.org/t/trouble-deploying-bokeh-applet/315/2 "2021-07-21T21:04:57Z")

</div>


