I’m seeking assistance with a persistent redirect loop in my Docker Compose deployment of JupyterHub. The error message is always the same:
500 : Internal Server Error Redirect loop detected. Notebook has jupyterhub version unknown (likely < 0.8), but the Hub expects 4.1.5. Try installing jupyterhub==4.1.5 in the user environment if you continue to have problems.
My setup details are:
JupyterHub Version:4.1.6 (confirmed installed in both the hub and single-user containers).
Here is a summary of the extensive troubleshooting I’ve already done:
I have confirmed that the jupyterhub==4.1.6 package is correctly installed within the single-user container. The problem is not a missing package; it is a communication failure.
The Dockerfile.jupyterhub has been configured to be self-contained and is no longer reliant on the base image’s default commands. It now explicitly sets the startup command with CMD ["start-singleuser.sh"].
My docker-compose.yml file has been checked and corrected. It no longer contains a command: override for the singleuser service.
My jupyterhub_config.py has been audited to ensure there are no conflicting c.DockerSpawner settings that could be overriding the startup command.
Despite all these changes and a complete rebuild, the error persists. Any help or ideas on what else could be causing this communication failure would be greatly appreciated.
jupyterhub | [E 2025-08-14 05:40:45.376 JupyterHub user:887] Unhandled error starting vskatusa’s server: 404 Client Error for http+docker://localhost/v1.51/containers/08b5635c85373199eb3aac5519eb05e34f63c4555d806deb4bef4b4d51da0cbf/start: Not Found (“failed to set up container networking: network 8668e1e2bdeadac77461ad08f5c5ae3523cbd4f79a26a5264e2c8bcf2e48726d not found”)
Subject: Still getting network not found error after all previous fixes
Hello, and thanks again for all your help.
I’m still getting the 500: Internal Server Error with the specific message “failed to set up container networking: network docadmin_docadmin_network not found”.
We’ve been troubleshooting this for a while, and based on the last analysis, I performed the following steps:
I ran a full cleanup: docker rm -f jupyter-vskatusa, docker compose down --volumes, and docker system prune -f.
I updated my jupyterhub_config.py file to set the network name to docadmin_docadmin_docadmin_network, which was the name identified by docker network ls.
I restarted the services with docker compose up -d.
Despite these steps, the error persists. It appears the network is still not being found, even with the explicit and corrected name in the configuration.
Could you please help me understand what might be causing this persistent network error?