500 error when app is run on a different machine

I’ve got a Bokeh Server app that’s embedded in Flask and it runs fine on my machine but when run on my coworker’s machine, he gets this error when navigating to a page in our app that has a bokeh document embedded in it.

127.0.0.1 - - [17/Oct/2018
15:36:26] “GET / HTTP/1.1” 200 -

127.0.0.1 - - [17/Oct/2018
15:36:28] “GET /bokeh_skill_breakdown HTTP/1.1” 200 -

ERROR:tornado.application:Uncaught
exception GET
/glideslope_widget/autoload.js?bokeh-autoload-element=06106e94-b29e-45af-bc39-36d0874eecd8&bokeh-app-path=/glideslope_widget&bokeh-absolute-url=http://localhost:5006/glideslope_widget
(::1)

HTTPServerRequest(protocol=‘http’,
host=‘localhost:5006’, method=‘GET’,
uri=‘/glideslope_widget/autoload.js?bokeh-autoload-element=06106e94-b29e-45af-bc39-36d0874eecd8&bokeh-app-path=/glideslope_widget&bokeh-absolute-url=http://localhost:5006/glideslope_widget’,
version=‘HTTP/1.1’, remote_ip=‘::1’)

Traceback (most recent call
last):

File
“D:\src\LSO_BS\venv\default\lib\site-packages\tornado\web.py”, line
1592, in _execute

result =

yield result

File
“D:\src\LSO_BS\venv\default\lib\site-packages\tornado\gen.py”, line
1133, in run

value =

future.result()

File
“D:\src\LSO_BS\venv\default\lib\site-packages\tornado\gen.py”, line
1147, in run

yielded =

self.gen.send(value)

File “D:\src\LSO_BS\venv\default\lib\site-packages\bokeh\server\views\autoload_js_handler.py”,
line 40, in get

resources =

self.application.resources(server_url)

File
“D:\src\LSO_BS\venv\default\lib\site-packages\bokeh\server\tornado.py”,
line 378, in resources

return

Resources(mode=“server”, root_url=absolute_url + self._prefix,
path_versioner=StaticHandler.append_version)

File
“D:\src\LSO_BS\venv\default\lib\site-packages\bokeh\resources.py”,
line 171, in init

raise

ValueError(“setting ‘root_url’ makes sense only when ‘mode’ is set to
‘server’”)

ValueError: setting ‘root_url’
makes sense only when ‘mode’ is set to ‘server’

ERROR:tornado.access:500 GET
/glideslope_widget/autoload.js?bokeh-autoload-element=06106e94-b29e-45af-bc39-36d0874eecd8&bokeh-app-path=/glideslope_widget&bokeh-absolute-url=http://localhost:5006/glideslope_widget
(::1) 62.50ms

Also note that the script src, instead of linking to JavaScript code, is just a 500 error when you click on it.

Any insight into what the issue may be or what could be causing it to run fine on m machine and not my coworkers?

Thanks,

-Tim Snyder

Does your coworker have any BOKEH_* environment variables set?

Thanks,

Bryan

···

On Oct 19, 2018, at 07:39, Timothy Snyder <[email protected]> wrote:

I've got a Bokeh Server app that's embedded in Flask and it runs fine on my machine but when run on my coworker's machine, he gets this error when navigating to a page in our app that has a bokeh document embedded in it.

127.0.0.1 - - [17/Oct/2018 15:36:26] "GET / HTTP/1.1" 200 -

127.0.0.1 - - [17/Oct/2018 15:36:28] "GET /bokeh_skill_breakdown HTTP/1.1" 200 -

ERROR:tornado.application:Uncaught exception GET /glideslope_widget/autoload.js?bokeh-autoload-element=06106e94-b29e-45af-bc39-36d0874eecd8&bokeh-app-path=/glideslope_widget&bokeh-absolute-url=http://localhost:5006/glideslope_widget (::1)

HTTPServerRequest(protocol='http', host='localhost:5006', method='GET', uri='/glideslope_widget/autoload.js?bokeh-autoload-element=06106e94-b29e-45af-bc39-36d0874eecd8&bokeh-app-path=/glideslope_widget&bokeh-absolute-url=http://localhost:5006/glideslope_widget&#39;, version='HTTP/1.1', remote_ip='::1')

Traceback (most recent call last):

  File "D:\src\LSO_BS\venv\default\lib\site-packages\tornado\web.py", line 1592, in _execute

    result = yield result

  File "D:\src\LSO_BS\venv\default\lib\site-packages\tornado\gen.py", line 1133, in run

    value = future.result()

  File "D:\src\LSO_BS\venv\default\lib\site-packages\tornado\gen.py", line 1147, in run

    yielded = self.gen.send(value)

  File "D:\src\LSO_BS\venv\default\lib\site-packages\bokeh\server\views\autoload_js_handler.py", line 40, in get

    resources = self.application.resources(server_url)

  File "D:\src\LSO_BS\venv\default\lib\site-packages\bokeh\server\tornado.py", line 378, in resources

    return Resources(mode="server", root_url=absolute_url + self._prefix, path_versioner=StaticHandler.append_version)

  File "D:\src\LSO_BS\venv\default\lib\site-packages\bokeh\resources.py", line 171, in __init__

    raise ValueError("setting 'root_url' makes sense only when 'mode' is set to 'server'")

ValueError: setting 'root_url' makes sense only when 'mode' is set to 'server'

ERROR:tornado.access:500 GET /glideslope_widget/autoload.js?bokeh-autoload-element=06106e94-b29e-45af-bc39-36d0874eecd8&bokeh-app-path=/glideslope_widget&bokeh-absolute-url=http://localhost:5006/glideslope_widget (::1) 62.50ms

Also note that the script src, instead of linking to JavaScript code, is just a 500 error when you click on it.

Any insight into what the issue may be or what could be causing it to run fine on m machine and not my coworkers?

Thanks,

-Tim Snyder

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/970964a1-ee54-4761-ae91-9e0a87ff4157%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.