opencadc / science-platform

Science Platform Infrastructure
GNU Affero General Public License v3.0
15 stars 30 forks source link

JupyterLab Extension Manager not working #301

Open drtobybrown opened 2 years ago

drtobybrown commented 2 years ago

Trying to install an extension returns

Error communicating with server extension. Consult the documentation for how to ensure that it is enabled.

Reason given:

Error: 500 (Internal Server Error)
drtobybrown commented 2 years ago

Installing via the command line throws a permissions error

thbrown sitelle $ jupyter labextension install @ryantam626/jupyterlab_sublime
Config option `kernel_spec_manager_class` not recognized by `InstallLabExtensionApp`.
[W 2022-02-25 23:33:55.581 LabApp] Config option `kernel_spec_manager_class` not recognized by `LabApp`.
An error occurred.
PermissionError: [Errno 13] Permission denied: '/opt/conda/share/jupyter/lab/staging'
See the log file for details:  /tmp/jupyterlab-debug-b69u1e4u.log
sfabbro commented 2 years ago

If your container is based on jupyter/scipy-notebook, by default it will install the jupyterlab extensions in /opt/conda, which is not persistent on the container. Possibly by adding something like export JUPYTERLAB_DIR=$HOME/.jupyter in a startup hook script, the extensions will get installed on your persistent home directory. Else we can see whether the starting script of jupyerlab of skaha makes sure it sets it up.

sfabbro commented 2 years ago

The changes in the default group ownership of a notebook user may have solve this issue. Is it working for you now?