After a powercut, I have jupyterhub running again, but I cannot start the Python3 kernel. When opening an exisiting notebook, I receive a popup message:
Error Starting Kernel
Unhandled error
Unhandled Error
JupyterHub was setup in a virtual environment (/opt/jupyterhub/ - following the same setup as Part 1 here), and has been working without any issue for several months. I have tried to reinstall the kernel within this virtual environment, but I see the same error messages.
If I try to open a new Python3 notebook, I received the following popup message:
Error.
Unexpected error when saving file: folder/Untitled.ipynb [Errno 13] Permission denied ‘home/user/Office/Jupyter/Untitled.ipynb’
Followed by another popup message:
Launcher Error
Cannot read ‘path’ of undefined
If I run jupyterhub kernelspec list
in the terminal, I get:
[I 2021-05-27 11:10:56.757 JupyterHub app:2349] Running JupyterHub version 1.3.0 [I 2021-05-27 11:10:56.757 JupyterHub app:2379] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.3.0 [I 2021-05-27 11:10:56.757 JupyterHub app:2379] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.3.0 [I 2021-05-27 11:10:56.758 JupyterHub app:2379] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.3.0 [I 2021-05-27 11:10:56.759 JupyterHub app:1420] Loading cookie_secret from /tmp/jupyterhub_cookie_secret [E 2021-05-27 11:10:56.769 JupyterHub app:2859] Traceback (most recent call last): File "/home/infuser/.local/lib/python3.8/site-packages/jupyterhub/app.py", line 2856, in launch_instance_async await self.initialize(argv) File "/home/infuser/.local/lib/python3.8/site-packages/jupyterhub/app.py", line 2391, in initialize self.init_db() File "/home/infuser/.local/lib/python3.8/site-packages/jupyterhub/app.py", line 1592, in init_db self.session_factory = orm.new_session_factory( File "/home/infuser/.local/lib/python3.8/site-packages/jupyterhub/orm.py", line 880, in new_session_factory check_db_revision(engine) File "/home/infuser/.local/lib/python3.8/site-packages/jupyterhub/orm.py", line 776, in check_db_revision with _temp_alembic_ini(engine.url) as ini: File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__ return next(self.gen) File "/home/infuser/.local/lib/python3.8/site-packages/jupyterhub/dbutil.py", line 74, in _temp_alembic_ini write_alembic_ini(alembic_ini, db_url) File "/home/infuser/.local/lib/python3.8/site-packages/jupyterhub/dbutil.py", line 38, in write_alembic_ini with open(alembic_ini, 'w') as f: PermissionError: [Errno 13] Permission denied: '/tmp/tmp52stgmqv/alembic.ini'
Clearly I have some kind of path issue (?), but I’m not sure what to do diagnose and hopefully fix this. What should I do next?