Closed rabernat closed 5 years ago
Then I monitored the notebook pod startup process and saw this
$ kubectl -n staging logs jupyter-rabernat
cp: preserving times for '/home/jovyan': Operation not permitted
Traceback (most recent call last):
File "/srv/conda/lib/python3.6/site-packages/jupyterlab/labhubapp.py", line 5, in <module>
from jupyterhub.singleuser import SingleUserNotebookApp
ModuleNotFoundError: No module named 'jupyterhub'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/conda/bin/jupyter-labhub", line 7, in <module>
from jupyterlab.labhubapp import main
File "/srv/conda/lib/python3.6/site-packages/jupyterlab/labhubapp.py", line 8, in <module>
raise ImportError('You must have jupyterhub installed for this to work.')
ImportError: You must have jupyterhub installed for this to work.
Ryans-MacBook-Pro:xarray rpa$ kubectl -n staging logs jupyter-rabernat
cp: preserving times for '/home/jovyan': Operation not permitted
Traceback (most recent call last):
File "/srv/conda/lib/python3.6/site-packages/jupyterlab/labhubapp.py", line 5, in <module>
from jupyterhub.singleuser import SingleUserNotebookApp
ModuleNotFoundError: No module named 'jupyterhub'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/conda/bin/jupyter-labhub", line 7, in <module>
from jupyterlab.labhubapp import main
File "/srv/conda/lib/python3.6/site-packages/jupyterlab/labhubapp.py", line 8, in <module>
raise ImportError('You must have jupyterhub installed for this to work.')
ImportError: You must have jupyterhub installed for this to work.
Ryans-MacBook-Pro:xarray rpa$ kubectl -n staging logs jupyter-rabernat
cp: preserving times for '/home/jovyan': Operation not permitted
Traceback (most recent call last):
File "/srv/conda/lib/python3.6/site-packages/jupyterlab/labhubapp.py", line 5, in <module>
from jupyterhub.singleuser import SingleUserNotebookApp
ModuleNotFoundError: No module named 'jupyterhub'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/conda/bin/jupyter-labhub", line 7, in <module>
from jupyterlab.labhubapp import main
File "/srv/conda/lib/python3.6/site-packages/jupyterlab/labhubapp.py", line 8, in <module>
raise ImportError('You must have jupyterhub installed for this to work.')
ImportError: You must have jupyterhub installed for this to work.
So it looks like my suggestion to "just use my binder image" was not 100% a good idea. Certain important packages are missing. I recommend a side-by-side comparison of our environment with https://github.com/pangeo-data/dev.pangeo.io-deploy/tree/staging/deployments/dev.pangeo.io/image/binder
That should resolve things.
I think your image is fine. I tried to kill my pod and I broke it. Gonna redo the cluster from scratch.
I think your image is fine
I disagree. My environment.yml
lacks jupyterhub, which is necessary for this to work. That explains the error I got in my pod.
Redoing the cluster from scratch seems like overkill!
cluster is rebuild, it was quick. I tried first with your image but it fails at the creation of the cluster, not on the 500 error anymore. I am reverting to the previous environment, tests it works then move to the dev.pangeo environment.
the dev environment does not work for me. It fixes the #2 issue but the compute cells don't execute properly and just stall. I am gonna revert to the original environment and build a new cluster for testing.
I am now getting 500 server errors when trying to start a notebook. Here's how I would debug.