jupyter-server / jupyter-resource-usage

Jupyter Notebook Extension for monitoring your own Resource Usage
BSD 2-Clause "Simplified" License
488 stars 103 forks source link

Getting 'Unhandled error' when it tries to open control channel #181

Open rucshah opened 1 year ago

rucshah commented 1 year ago

Hi, Thanks for this great extension. I tried to configure this in my setup (JupyterServer + JupyterLab + Jupyter Enterprise Gateway) which is running in kubernetes. My setup has

jupyter_client          8.0.3
jupyter_core            5.2.0
jupyter-resource-usage  0.7.2
jupyter-server          1.23.42
jupyterhub              3.1.1
jupyterlab              3.5.2
jupyter_enterprise_gateway 3.1.0
ipykernel               6.21.1

But when extension makes a call, I see following exception in jupyter server:

   Traceback (most recent call last):
      File "/opt/conda/lib/python3.10/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
      File "/opt/conda/lib/python3.10/site-packages/jupyter_resource_usage/api.py", line 115, in get
        control_channel = client.control_channel
      File "/opt/conda/lib/python3.10/site-packages/jupyter_server/gateway/managers.py", line 765, in control_channel
        assert self.channel_socket is not None
    AssertionError

[W 2023-02-24 22:25:02.920 SingleUserNotebookApp handlers:649] wrote error: 'Unhandled error'

Am I missing something here?

welcome[bot] commented 1 year ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

fm2022aa commented 3 months ago

I encounter the same issue, maybe this extension not work with enterprise gateway?