-
Notifications
You must be signed in to change notification settings - Fork 308
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
Jupyterhub in docker container not working with nginx reverse proxy #390
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Please encapsulate your code into backticks (`) so that they are formatted appropriately. You can just edit your old entry. As we can see in the logs, the error message stems from Jinja and it seems pretty awkward to me. I am not deeply rooted in the projects though. Have you tried running a debugger as described in https://code.visualstudio.com/docs/python/debugging to see what the template engine tries to do before it dies and creates problems for you? |
This doesn't so much seem to be a problem with JupyterHub or the dockerspawner, but more with your nginx configuration. I would suggest that you direct these questions to https://discourse.jupyter.org which is a most welcoming forum. As for your issue: JupyterHub will do a redirect to
And the recursion limit being reached:
Maybe try to stop nginx from also trying to do the redirection by adding to your location configuration:
|
I've managed to run several JupyterHubs inside Docker container.
|
Bug description
Hello, I have started jupyterhub as a service in dockerswarm. Without nginx reverse proxy it works without problems. When I configure nginx reverse proxy with the following configuration:
The following messages begin to appear in the jupyterhub logs:
After a few hours jupyterhub stops working and has the following error in its logs:
Please help me solve the problem.
Dockerfile jupyterhub:
jupyterhub_config.py:
config docker swarm service:
Expected behaviour
Correct work with nginx reverse proxy
Actual behaviour
Jupyterhub stops working
How to reproduce
Your personal set up
The text was updated successfully, but these errors were encountered: