-
Notifications
You must be signed in to change notification settings - Fork 134
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
Running into 404 error when redirected to /uses/<username>/tree at startup #278
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
From your logs, it seems only Could you try to navigate to |
That seems to just be a change in the logging for JupyterHub 3.X, but I did experiment (a lot) more. I found out it had to be something in my virtual environment. Note that we have
I did not get my 404 error anymore. The batchspawner directory here contains a checkout for the current main branch, so that I get the specific commits for JupyterHub 3.X support. However, if I did
It failed. Now, my original environment was neither of these two (we use a module environment, as we are on an HPC system). That has a module for jupyter-server-proxy 3.2.2, but the fact that it doesn't work in that environment tells me there is probably some dependency of jupyter-server-proxy that breaks things - and for which the version is different if I do Anyway, I'll close this issue here, as it seems to be unrelated to batchspawner. If I figure out more concretely what package/version was the culprit, I'll report back here in case people run into this in the future. |
Fair enough! There are no differences in deps of |
Just to report here in case others run into it: the It is a bit of a strange situation, as one might wonder why What is really annoying is that there is no clearer error message for this situation (but again, not something that is up to batchspawner to solve ;-)). Anyway, mystery solved :) |
Bug description
Initially, I ran into #247 . Since this was merged, and others have reported that PR solved their issue, I tried to run from
main
(2a9eda0 to be exact), at least on the Jupyter Notebook Server side (I don't control the JupyterHub myself, so it's not so easy for me to make changes there).It resolves the initial issue: my Jupyter Notebook Server starts now. However, where as soon as the spawner redirects me to the page that would normally show the Jupyter Notebook Server (with directory listing etc), I get a 404.
Logs from the JupyterHub:
Logs from the Jupyter Notebook Server
For comparison: an older JupyterHub (2.X I believe) setup gave me the following logs on the Jupyter Notebook Server side:
The only notable difference I spot is that the redirect is slightly different (going to
/2021/user/casparl/tree?
instead of to/2021/user/casparl/tree/?
), and the fact that I then get redirected to/2021/hub/api/oauth2/authorize?...
.I've tried to debug this myself, but I'm at a loss: despite reading the documentation on spawners, I don't understand well enough what steps the spawner should be doing to figure out what could potentially go wrong. If anyone with more expertise on this has some ideas, I'd love to hear them :)
The text was updated successfully, but these errors were encountered: