Deployment error in bokeh-server with --ip 0.0.0.0 (0.9.3)

On a remote Ubuntu server I’m running bokeh-server --ip “0.0.0.0” --filter-logs -d (the latter options for debugging) and some script to connect to it and generate pages with (streaming) plots. When starting my script it looks like bokeh-server is running w3m (a text browser) in a terminal to display the web page with the plots (would be nice to stop that on a server, maybe). So I’ve found the generated URL for this by inspecting this output in the “link to this” link, but when I open it in a local browser, I get the following traceback below. In my script I use output_server(‘foo’).

I’ve looked here: http://bokeh.pydata.org/en/latest/docs/user_guide/server.html and then added ?public=true to my URL, but still get the same error. Looks like I must be doing something completely wrong. Any ideas?

Traceback (most recent call last):

File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 1390, in _execute

result = self.prepare()

File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 2612, in prepare

self.fallback(self.request)

File “/usr/local/lib/python2.7/dist-packages/tornado/wsgi.py”, line 277, in call

WSGIContainer.environ(request), start_response)

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1836, in call

return self.wsgi_app(environ, start_response)

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1820, in wsgi_app

response = self.make_response(self.handle_exception(e))

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1403, in handle_exception

reraise(exc_type, exc_value, tb)

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1817, in wsgi_app

response = self.full_dispatch_request()

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1477, in full_dispatch_request

rv = self.handle_user_exception(e)

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1381, in handle_user_exception

reraise(exc_type, exc_value, tb)

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1475, in full_dispatch_request

rv = self.dispatch_request()

File “/usr/local/lib/python2.7/dist-packages/flask/app.py”, line 1461, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)

File “/usr/local/lib/python2.7/dist-packages/bokeh/server/views/main.py”, line 270, in show_obj

doc = docs.Doc.load(bokeh_app.servermodel_storage, docid)

File “/usr/local/lib/python2.7/dist-packages/bokeh/server/models/docs.py”, line 64, in load

if 'readonlyapikey' not in attrs:

TypeError: argument of type ‘NoneType’ is not iterable