question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to connect to Bokeh server Error: Could not open websocket

See original GitHub issue

When I try to use the extension via JupyterHub I get the following websocket error

screen shot 2019-03-07 at 12 30 05 pm

I can confirm that the extension was properly installed:

$ jupyter serverextension list
config dir: /ncar/usr/jupyterhub/20190118/etc/jupyter
    dask_labextension  enabled 
    - Validating...
      dask_labextension 0.3.1 OK
    jupyterlab  enabled 
    - Validating...
      jupyterlab 0.35.4 OK
    nbserverproxy  enabled 
    - Validating...
      nbserverproxy  OK

@jhamman pointed out that he thought the websocket problem was fixed in https://github.com/bokeh/bokeh/issues/6023. I am wondering whether this has to do with dask-labextension or it is something that would need to be addressed upstream in Bokeh.

Ccing @jbaksta as he is the Jhub’s admin, and knows more about the Jhub setup than me.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ian-r-rosecommented, Apr 10, 2019

Great! We are still dealing with some difficulties with the newest tornado, but once they are nailed down you should be able to update without difficulties.

2reactions
benjaminsingletoncommented, Apr 9, 2019

I believe I’ve run into this same issue. While I can start a cluster and generate a valid dashboard URL, the graphs in the panes display nothing. It appears that I cannot connect to the Bokeh server.

My setup may be somewhat unusual / complicated. I’m running JupyterLab in a Docker container that is being presented inside of an iframe (I’m using the Domino Data Lab platform). I only wanted to mention this because there may be configuration settings in Domino that might affect the behavior of this extension. I’m honestly just not sure, so I figured I’d raise the question here in case there is an obvious fix / approach to troubleshooting.

dask-jupyterlab-extension

bokeh-error

$ jupyter serverextension list
config dir: /home/ubuntu/.jupyter
    nbserverproxy  enabled
    - Validating...
      nbserverproxy  OK
config dir: /opt/conda/etc/jupyter
    dask_labextension  enabled
    - Validating...
/opt/conda/lib/python3.6/site-packages/dask_labextension/config.py:13: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for fulldetails.
  defaults = yaml.load(f)
      dask_labextension 0.3.1 OK
    ipyparallel.nbextension  enabled
    - Validating...
      ipyparallel.nbextension  OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 0.35.4 OK
    jupyterlab_latex  enabled
    - Validating...
      jupyterlab_latex 0.4.1 OK
    nbdime  enabled
    - Validating...
      nbdime 1.0.5 OK
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to connect to Bokeh server Error: Could not open ...
It looks like your reverse proxy is not correctly handling websocket connections. Your proxy pass config is likely switching the websocket ...
Read more >
Could not open websocket with bokeh on nginx - Stack Overflow
I checked the nginx log and there are no errors. allow-websocket-origin is set in the script with kws = {'port': 5100, 'prefix': '/bokeh', ......
Read more >
Server document doesnt work for my Bokeh app
Failed to load Bokeh session ZEzyee8xQ3ttRc2cHp1M3FQ1Sh7WKsVZvb6YM9tUx11a: Error: Could not open websocket. What can I do to make it work ...
Read more >
How to resolve the error: "Could not open websocket connection
For the AWS ELB's Classic Load Balancer: The problem will be due to Classic Load Balancer's HTTP protocol not passing along WebSocket requests....
Read more >
Panel serve deployment is frequently broken and cannot ...
I am developing a map by using panel, bokeh, datashader and holoviews. When I run it with the following command it can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found