I am using JupyterHub 1.1.0 on Ubuntu 18.04 LTS installed in /opt/jupyterhub. The JupyterHub is started as a root service. I use JupyterLab 2.1.2 as my default interface. However, when I log in to JupyterLab as a single user, I cannot install extensions. When I try to install an extension, I get this error:
Error communicating with server extension. Consult the documentation for how to ensure that it is enabled. Reason given: Error: 500 (Internal Server Error)
I have run JupyterLab standalone from the terminal with the debug flag and I can see it is a permissions issue. If I run JupyerLab with “sudo” I can install extensions. The same is true if I install from the terminal with “sudo”. Is there any way to create this behavior when starting an instance through the JupyterHub spawner? Ideally, I’d like for other users to be able to install extensions as well.