It happens to me in FreeBSD 14.1.
I have among other packages the following:
evcxr-jupyter-0.17.0_3 Jupyter Evaluation Context for Rust
py39-jupyter-client-8.6.1 Jupyter protocol implementation and client libraries
py39-jupyter-core-5.7.2 Jupyter core package
py39-jupyter-events-0.10.0 Jupyter Event System library
py39-jupyter-lsp-2.2.4 Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab server
py39-jupyter-server-2.13.0 The backend to Jupyter web applications
py39-jupyter-server-terminals-0.5.3 Jupyter Server Extension Providing Terminals
py39-jupyter_console-6.6.3 IPython-like terminal frontend for Jupyter kernels in any language
py39-jupyterlab-4.1.5 JupyterLab server extension
py39-jupyterlab-pygments-0.3.0 Pygments theme using JupyterLab CSS variables
py39-jupyterlab-server-2.25.4 JupyterLab Server
py39-jupyterlab_launcher-0.13.1_3 Jupyter Launcher (launcher for the JupiterLab environment)
In addition jupyterhub does not install as a package, but from pip.
If I run jupyterhub in this way everything works fine:
/usr/local/bin/jupyterhub --ip 172.16.0.80 -f /usr/local/etc/jupyterhub/jupyterhub_config.py --pid-file /var/run/jupyterhub.pid &
I can open a terminal without problem, but if I do so (the log will be redirected to the file), it fails:
/usr/local/bin/jupyterhub --ip 172.16.0.80 -f /usr/local/etc/jupyterhub/jupyterhub_config.py --pid-file /var/run/jupyterhub.pid >> /var/log/jupyterhub.log 2>&1
When I open the terminal at browser, give this paths error:
[W 2024-06-12 10:26:34.354 ServerApp] Skipping XSRF check for insecure request GET /user/jose/terminals/websocket/1
[E 2024-06-12 10:26:34.382 ServerApp] Uncaught exception in write_error
Traceback (most recent call last):
File â/usr/local/lib/python3.9/site-packages/tornado/web.pyâ, line 1294, in send_error
self.write_error(status_code, **kwargs)
File â/usr/local/lib/python3.9/site-packages/jupyter_server/base/handlers.pyâ, line 738, in write_error
html = self.render_template(â%s.htmlâ % status_code, **ns)
File â/usr/local/lib/python3.9/site-packages/jupyter_server/base/handlers.pyâ, line 666, in render_template
return template.render(**ns)
File â/usr/local/lib/python3.9/site-packages/jinja2/environment.pyâ, line 1301, in render
self.environment.handle_exception()
File â/usr/local/lib/python3.9/site-packages/jinja2/environment.pyâ, line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File â/usr/local/lib/python3.9/site-packages/jupyter_server/templates/404.htmlâ, line 1, in top-level template code
{% extends âerror.htmlâ %}
File â/usr/local/lib/python3.9/site-packages/jupyter_server/templates/error.htmlâ, line 1, in top-level template code
{% extends âpage.htmlâ %}
File â/usr/local/lib/python3.9/site-packages/jupyter_server/templates/page.htmlâ, line 9, in top-level template code
{% block favicon %}<link id=âfaviconâ rel=âshortcut iconâ type=âimage/x-iconâ href=â{{ static_url(âfavicon.icoâ) }}â>
File â/usr/local/lib/python3.9/site-packages/jupyter_server/templates/page.htmlâ, line 9, in block âfaviconâ
{% block favicon %}<link id=âfaviconâ rel=âshortcut iconâ type=âimage/x-iconâ href=â{{ static_url(âfavicon.icoâ) }}â>
File â/usr/local/lib/python3.9/site-packages/jupyter_server/extension/handler.pyâ, line 117, in static_url
raise Exception(msg) from None
Exception: This extension doesnât have any static paths listed. Check that the extensionâsstatic_paths
trait is set.
[W 2024-06-12 10:26:34.386 ServerApp] 404 GET /user/jose/terminals/websocket/1
The same happens if I run it with nohup or daemon. Any ideas
Jose