Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshooting guide; why didn't jupyter notebook start #935

Closed
jlewi opened this issue Jul 15, 2019 · 8 comments · Fixed by #1008
Closed

Troubleshooting guide; why didn't jupyter notebook start #935

jlewi opened this issue Jul 15, 2019 · 8 comments · Fixed by #1008
Assignees

Comments

@jlewi
Copy link
Contributor

jlewi commented Jul 15, 2019

We need a trouble shooting guide to explain how people should troubleshoot why their notebooks didn't start.

The basic steps would be something like

kubectl get notebooks -o yaml ${NOTEBOOK}
kubectl describe notebooks ${NOTEBOOK}
  • Look for errors why it didn't start

If the notebook looks good then look at the statefulset

kubectl get statefulsets -o yaml ${NOTEBOOK}
kubectl describe statefulsets ${NOTEBOOK}
  • Look for errors such as problems binding PV/PVCs

If that looks good then look at the pod

kubectl get pod -o yaml ${NOTEBOOK}-0
kubectl describe pod ${NOTEBOOK}-0
  • Is the container running?

Look at the container logs

kubectl logs ${NOTEBOOK}-0
@issue-label-bot
Copy link

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

@Tabrizian
Copy link
Member

I can work on this issue.

@sarahmaddox
Copy link
Contributor

/assign @Tabrizian
Thanks @Tabrizian!

@rajesh-chawla
Copy link

I attempted to create a notebook called 'test1'. Following the suggestions above, I executed the command:

kubectl describe statefulsets test1

shows the following error:

Type     Reason        Age                     From                    Message
----     ------        ----                    ----                    -------
Warning  FailedCreate  2m19s (x26 over 7m39s)  statefulset-controller  create Pod test1-0 in StatefulSet test1 failed error: pods "test1-0" is forbidden: error looking up service account kubeflow/default-editor: serviceaccount "default-editor" not found

Note -- on slack, the user Nihir had suggested changing default-editor in the code to juptyer-web-app-service-account in components/jupyter-web-app/backend/kubeflow_jupyter/default/app.py and recompiling kfctl. Unfortunately, this did not work for me.

@rajesh-chawla
Copy link

I can create a notebook successfully after I create a service account named 'default-editor' clusteradmin rights.

@Tabrizian
Copy link
Member

Thanks for pointing out @rajesh-chawla! I included this in the troubleshooting guide.

@jlewi
Copy link
Contributor Author

jlewi commented Aug 6, 2019

Thanks @Tabrizian for the guide.

@Tabrizian
Copy link
Member

You’re welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants