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.
@Will Wieder, can you post the full traceback/error message you are getting?
/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'
Are you running this notebook from the JupyterHub?
Or are you launching the Jupyter server yourself?
from the server I logged into with jupyter-forward. The code never grabs workers when I log in via JupyterHub.
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
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
Yes, this resolved the issues. Thanks @Anderson Banihirwe
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