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

Have the JupyterHub spawner report issues with spawning the user's server #505

Closed
ojarjur opened this issue Mar 26, 2018 · 9 comments
Closed
Assignees
Labels
area/jupyter Issues related to Jupyter priority/p1

Comments

@ojarjur
Copy link
Contributor

ojarjur commented Mar 26, 2018

Right now, if you use the JupyterHub spawner to spawn a server, and the corresponding notebook server fails to start, then you can wind up just seeing a 500-error page with no details (after which, you have to resort to running kubectl get ... to debug the issue).

I think a lot of potential user confusion/frustration could be avoided if we could report the underlying issue on the error page instead of only showing a 500-error.

For example, the first time I tried using Kubeflow, I got an issue where I had accidentally undersized my cluster, so my server failed to start because the pod couldn't be scheduled. If the issue was made clear by the JupyterHub UI, then I would have resolved the issue much faster than I did.

I would like to report at least the following potential sources of errors if they occur:

  1. Specifying an image name that does not exist (e.g. due to a copy-and-paste error)
  2. Permissions issues downloading the specified image.
  3. Timeouts while downloading the image.
  4. Pods that fail to schedule.

There may be some parts of this that warrant upstream contributions to JupyterHub, but we should still have at tracking issue in Kubeflow for it, since the KubeFormSpawner would need to incorporate whatever eventually gets built for this.

@jlewi jlewi added area/jupyter Issues related to Jupyter priority/p1 labels Mar 26, 2018
@jlewi
Copy link
Contributor

jlewi commented Mar 26, 2018

I believe errors creating the pod will result in K8s events for the pod. For example, if there is a problem pulling the image or no node can schedule the K8s pod; this should generate K8s events.

I'm not sure off hand how we'd surface those in the UI; but a minimum we should be able to provide kubectl get commands and other instructions to help troubleshooting.

@pdmack
Copy link
Member

pdmack commented Apr 5, 2018

/assign @pdmack

@jlewi
Copy link
Contributor

jlewi commented May 8, 2018

@pdmack Are you making progress? Do you need help?

@pdmack
Copy link
Member

pdmack commented May 8, 2018

@jlewi no progress here sadly. Been fighting #561 etc. Feel free to re-assign, or I could switch off maybe if we are re-stacking priorities for 0.2.

@pdmack
Copy link
Member

pdmack commented May 25, 2018

jupyterhub/kubespawner#153

I've asked on gitter when we might expect another kubespawner release.

@pdmack
Copy link
Member

pdmack commented May 25, 2018

Sounds like we will get this simultaneously with the official JH 0.9 release. @willingc ?

@yuvipanda
Copy link
Contributor

@pdmack yeah, I think it'll come out with JH 0.9 - or a little bit earlier.

@jlewi
Copy link
Contributor

jlewi commented Jun 5, 2018

#905 upgrade JupyterHub and KubeSpawner.

The new UI is much better. There is a status bar and it looks like it shows K8s events related to the pod as well.

I'm going to mark this as fixed with the expectation that we will file new issues related to the latest version of JupyterHub and KubeSpawner as needed.

@jlewi jlewi closed this as completed Jun 5, 2018
@clkao
Copy link

clkao commented Jun 5, 2018

Very glad to see this getting into kubeflow! Special thanks to @minrk for the progress api implementation in jupyterhub as well as reviewing my initial PR.

yanniszark pushed a commit to arrikto/kubeflow that referenced this issue Nov 1, 2019
yanniszark pushed a commit to arrikto/kubeflow that referenced this issue Feb 15, 2021
elenzio9 pushed a commit to arrikto/kubeflow that referenced this issue Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jupyter Issues related to Jupyter priority/p1
Projects
None yet
Development

No branches or pull requests

5 participants