Stream: dask

Topic: Dask Dashboard: Subprotocols issue with bokeh


view this post on Zulip Will Wieder (Mar 15 2022 at 21:23):

I'm not even sure what's happening now. The old call and packages I've been doing to with a function that gets workers by calling PBSCluster now throws a bunch of errors. I'm still able to get workers, but the start of the error message is below
tornado.application - ERROR - Uncaught exception GET /individual-workers/ws (::1) HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/individual-workers/ws', version='HTTP/1.1', remote_ip='::1') Traceback (most recent call last): File "/glade/u/home/wwieder/miniconda3/envs/lens-py/lib/python3.7/site-packages/tornado/websocket.py", line 954, in _accept_connection

are there packages I should be updating? (note the same thing happened with a different environment that used dask and dask-core v 2021.10.0 ).

suggestions appreciated.

view this post on Zulip Anderson Banihirwe (Mar 15 2022 at 21:27):

@Will Wieder, can you post the full traceback/error message you are getting?

view this post on Zulip Will Wieder (Mar 16 2022 at 18:21):

/glade/u/home/wwieder/miniconda3/envs/tiff2nc/lib/python3.7/site-packages/dask_jobqueue/core.py:20: FutureWarning: tmpfile is deprecated and will be removed in a future release. Please use dask.utils.tmpfile instead.
from distributed.utils import tmpfile

tornado.application - ERROR - Uncaught exception GET /individual-workers/ws (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/individual-workers/ws', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/glade/u/home/wwieder/miniconda3/envs/tiff2nc/lib/python3.7/site-packages/tornado/websocket.py", line 954, in _accept_connection
open_result = handler.open(*handler.open_args, **handler.open_kwargs)
File "/glade/u/home/wwieder/miniconda3/envs/tiff2nc/lib/python3.7/site-packages/tornado/web.py", line 3173, in wrapper
return method(self, *args, **kwargs)
File "/glade/u/home/wwieder/miniconda3/envs/tiff2nc/lib/python3.7/site-packages/bokeh/server/views/ws.py", line 137, in open
raise ProtocolError("Subprotocol header is not 'bokeh'")
bokeh.protocol.exceptions.ProtocolError: Subprotocol header is not 'bokeh'
tornado.application - ERROR - Uncaught exception GET /individual-nprocessing/ws (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/individual-nprocessing/ws', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/glade/u/home/wwieder/miniconda3/envs/tiff2nc/lib/python3.7/site-packages/tornado/websocket.py", line 954, in _accept_connection
open_result = handler.open(*handler.open_args, **handler.open_kwargs)
File "/glade/u/home/wwieder/miniconda3/envs/tiff2nc/lib/python3.7/site-packages/tornado/web.py", line 3173, in wrapper
return method(self, *args, **kwargs)
File "/glade/u/home/wwieder/miniconda3/envs/tiff2nc/lib/python3.7/site-packages/bokeh/server/views/ws.py", line 137, in open
raise ProtocolError("Subprotocol header is not 'bokeh'")
bokeh.protocol.exceptions.ProtocolError: Subprotocol header is not 'bokeh'

view this post on Zulip Anderson Banihirwe (Mar 16 2022 at 18:48):

Are you running this notebook from the JupyterHub?

view this post on Zulip Anderson Banihirwe (Mar 16 2022 at 18:48):

Or are you launching the Jupyter server yourself?

view this post on Zulip Will Wieder (Mar 16 2022 at 19:15):

from the server I logged into with jupyter-forward. The code never grabs workers when I log in via JupyterHub.

view this post on Zulip Anderson Banihirwe (Mar 16 2022 at 19:33):

Installing jupyter-server-proxy into the same environment your notebook is running from, rather than where your kernels are should address the issue.

conda install -c conda-forge jupyter-server-proxy

view this post on Zulip Anderson Banihirwe (Mar 16 2022 at 19:37):

You may want to install the dask-labextension instead (it depends on jupyter-server-proxy) into the same environment your notebook is running from...

conda install -c conda-forge dask-labextension

view this post on Zulip Will Wieder (Mar 17 2022 at 11:42):

Yes, this resolved the issues. Thanks @Anderson Banihirwe

view this post on Zulip Notification Bot (Mar 17 2022 at 13:24):

This topic was moved here from #ESDS > Dask Dashboard: Subprotocols issue with bokeh by Anderson Banihirwe


Last updated: May 16 2025 at 17:14 UTC