I have a Kubernetes Cluster build using Rancher Kubernetes Engine. I’m trying to deploy JupyterHub in this K8s Cluster via Helm Chart.
My HUB pod is crashing continuously. I’m stuck with this since past 2 days and its just not coming up.
kubectl -n jupyter get pods
NAME READY STATUS RESTARTS AGE
hub-59bb8dcf64-2s7m9 0/1 CrashLoopBackOff 6 12m
proxy-66bf4f7f84-rgb8p 1/1 Running 0 12m
user-scheduler-b9774b9fd-cq4kd 1/1 Running 0 12m
user-scheduler-b9774b9fd-n24mw 1/1 Running 0 12m
The error I’m getting is -
kubectl -n jupyter logs hub-59bb8dcf64-2s7m9
No config at /etc/jupyterhub/config/values.yaml
Loading /etc/jupyterhub/secret/values.yaml
[I 2021-02-19 06:38:11.439 JupyterHub app:2349] Running JupyterHub version 1.3.0
[I 2021-02-19 06:38:11.439 JupyterHub app:2379] Using Authenticator: jupyterhub.auth.DummyAuthenticator-1.3.0
[I 2021-02-19 06:38:11.440 JupyterHub app:2379] Using Spawner: kubespawner.spawner.KubeSpawner-0.15.0
[I 2021-02-19 06:38:11.440 JupyterHub app:2379] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.3.0
[I 2021-02-19 06:38:11.442 JupyterHub app:1420] Loading cookie_secret from /srv/jupyterhub/jupyterhub_cookie_secret
[W 2021-02-19 06:38:11.487 JupyterHub app:1695] No admin users, admin interface will be unavailable.
[W 2021-02-19 06:38:11.487 JupyterHub app:1696] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2021-02-19 06:38:11.487 JupyterHub app:1725] Not using allowed_users. Any authenticated user will be allowed.
[I 2021-02-19 06:38:11.570 JupyterHub app:2416] Initialized 0 spawners in 0.002 seconds
[I 2021-02-19 06:38:11.572 JupyterHub app:2628] Not starting proxy
[W 2021-02-19 06:38:14.575 JupyterHub proxy:814] api_request to the proxy failed with status code 599, retrying...
[W 2021-02-19 06:38:17.696 JupyterHub proxy:814] api_request to the proxy failed with status code 599, retrying...
[W 2021-02-19 06:38:20.875 JupyterHub proxy:814] api_request to the proxy failed with status code 599, retrying...
[W 2021-02-19 06:38:23.945 JupyterHub proxy:814] api_request to the proxy failed with status code 599, retrying...
[W 2021-02-19 06:38:27.811 JupyterHub proxy:814] api_request to the proxy failed with status code 599, retrying...
[W 2021-02-19 06:38:32.194 JupyterHub proxy:814] api_request to the proxy failed with status code 599, retrying...
[W 2021-02-19 06:38:39.533 JupyterHub proxy:814] api_request to the proxy failed with status code 599, retrying...
[E 2021-02-19 06:38:39.533 JupyterHub app:2859]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/app.py", line 2857, in launch_instance_async
await self.start()
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/app.py", line 2632, in start
await self.proxy.get_all_routes()
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/proxy.py", line 861, in get_all_routes
resp = await self.api_request('', client=client)
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/proxy.py", line 825, in api_request
result = await exponential_backoff(
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/utils.py", line 183, in exponential_backoff
raise TimeoutError(fail_message)
TimeoutError: Repeated api_request to proxy path "" failed.
Below are my configs -
helm upgrade --cleanup-on-fail --install jhub jupyterhub/jupyterhub \
--namespace jupyter \
--version=0.11.1 \
--values values_rke.yaml
proxy:
secretToken: 'xxxx'
service:
type: ClusterIP
prePuller:
hook:
enabled: false
continuous:
enabled: false
extraImages: {}
hub:
strategy:
type: Recreate
db:
pvc:
storageClassName: rook-ceph-block-ext
service:
type: ClusterIP
Can someone help me to debug this. I have been using Z2JH for more than 2yrs on AWS EKS, I never got this issue. I also tested exact same config on AWS EKS, Minikube - its working fine. However, while running the same thing on On-Premise Rancher Kubernetes Platform its failing with the error.
My proxy pod logs are -
kubectl -n jupyter logs proxy-66bf4f7f84-rgb8p
06:29:02.150 [ConfigProxy] info: Adding route / -> http://hub:8081
06:29:02.156 [ConfigProxy] info: Proxying http://:::8000 to http://hub:8081
06:29:02.156 [ConfigProxy] info: Proxy API at http://:::8001/api/routes
06:29:02.159 [ConfigProxy] info: Route added / -> http://hub:8081