Issue
After upgrading Posit Workbench, JupyterLab sessions disconnect after 1-2 minutes with the error message "Disconnected from Workbench - The underlying JupyterLab connection has been closed."
Description
This issue occurs due to conflicting JupyterLab extensions after a Workbench upgrade. Specifically, an older version of the workbench extension attempts to communicate using an outdated path while a new version is also installed, causing connection failures.
Solution
To resolve this issue:
- Check for and remove the old extension folder:
~/.local/share/jupyter/labextensions/workbench_jupyterlab - Ensure you have the latest pwb_jupyterlab package installed:
sudo /opt/python/[version]/bin/pip install --upgrade pwb_jupyterlab - Remove deprecated packages that may cause conflicts:
- rsp-jupyter
- workbench_jupyterlab
- Restart the Workbench services after making these changes.
If you're still having issues, you can reach out to Support by opening a ticket here.