Closed jarcher closed 5 years ago
This indicates that your Jupyter notebook instances are not starting up with the 2 minute default timeout.
You would need to check the events for the project to work out if there is a specific reason.
At a guess I would say that the reason is that the OpenShift cluster you are using doesn't have the imagePolicy
plugin correctly configured. This has especially been a problem with clusters which have been upgraded from an older version. A Minishift environment is also currently having this problem, because automatic setup of imagePolicy
was removed in oc cluster up
and Minishift wasn't adding it where it needs to.
An issue describing this for Minishift can be found at:
The same issues can arise for a full Origin/OCP cluster as well though.
It is necessary to confirm that the master config file for the cluster is missing the required imagePolicy
configuration and add it if missing.
Closing on assumption that nothing to be done.
c.Authenticator.admin_users
in config. [I 2018-07-31 05:41:25.095 JupyterHub app:1199] Not using whitelist. Any authenticated user will be allowed. [I 2018-07-31 05:41:25.138 JupyterHub app:1849] Hub API listening on http://0.0.0.0:8081/hub/ [I 2018-07-31 05:41:25.138 JupyterHub app:1851] Private Hub API connect url http://jupyterhub-1-nm8rk:8081/hub/ [W 2018-07-31 05:41:25.139 JupyterHub proxy:552] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else... [I 2018-07-31 05:41:25.139 JupyterHub proxy:554] Starting proxy @ http://:8080/ 05:41:25.386 - info: [ConfigProxy] Proxying http://*:8080 to (no default) 05:41:25.388 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8082/api/routes 05:41:25.506 - info: [ConfigProxy] 200 GET /api/routes [I 2018-07-31 05:41:25.514 JupyterHub proxy:301] Checking routes [I 2018-07-31 05:41:25.514 JupyterHub proxy:370] Adding default route for Hub: / => http://jupyterhub-1-nm8rk:8081 05:41:25.519 - info: [ConfigProxy] Adding route / -> http://jupyterhub-1-nm8rk:8081 05:41:25.520 - info: [ConfigProxy] 201 POST /api/routes/ [I 2018-07-31 05:41:25.522 JupyterHub app:1906] JupyterHub is now running at http://:8080/ [I 2018-07-31 05:41:36.524 JupyterHub log:158] 302 GET / -> /hub (@::ffff:172.17.0.1) 1.28ms [I 2018-07-31 05:41:36.535 JupyterHub log:158] 302 GET /hub -> /hub/ (@::ffff:172.17.0.1) 1.05ms [I 2018-07-31 05:41:36.543 JupyterHub log:158] 302 GET /hub/ -> /hub/login (@::ffff:172.17.0.1) 0.70ms [I 2018-07-31 05:41:36.551 JupyterHub log:158] 302 GET /hub/login -> /hub/tmplogin (@::ffff:172.17.0.1) 0.99ms [I 2018-07-31 05:41:36.570 JupyterHub log:158] 302 GET /hub/tmplogin -> /user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ (@::ffff:172.17.0.1) 12.97ms [I 2018-07-31 05:41:36.580 JupyterHub log:158] 302 GET /user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ -> /hub/user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ (@::ffff:172.17.0.1) 0.75ms [W 2018-07-31 05:41:36.608 JupyterHub configurable:168] Config optioncommon_labels
not recognized byKubeSpawner
. [I 2018-07-31 05:41:36.639 JupyterHub reflector:129] watching for pods with label selector heritage=jupyterhub,component=singleuser-server in namespace datascience [W 2018-07-31 05:41:46.645 JupyterHub base:679] User 2e8572d2-7acd-4944-8cec-6b5bd7d39eea is slow to start (timeout=10) [I 2018-07-31 05:41:46.645 JupyterHub base:1016] 2e8572d2-7acd-4944-8cec-6b5bd7d39eea is pending spawn [I 2018-07-31 05:41:46.674 JupyterHub log:158] 200 GET /hub/user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 10087.45ms [W 2018-07-31 05:43:36.671 JupyterHub user:468] 2e8572d2-7acd-4944-8cec-6b5bd7d39eea's server failed to start in 120 seconds, giving up [E 2018-07-31 05:43:36.704 JupyterHub gen:974] Exception in Future <Task finished coro=<BaseHandler.spawn_single_user.[W 2018-07-31 05:43:36.712 JupyterHub users:439] Stream closed while handling /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress [W 2018-07-31 05:43:36.712 JupyterHub users:439] Stream closed while handling /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress [W 2018-07-31 05:43:36.713 JupyterHub users:439] Stream closed while handling /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress [I 2018-07-31 05:43:36.713 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 109504.49ms [I 2018-07-31 05:43:36.714 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 76344.35ms [I 2018-07-31 05:43:36.714 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 43148.36ms [I 2018-07-31 05:43:36.715 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 10099.33ms [E 2018-07-31 05:43:48.436 JupyterHub gen:974] Exception in Future <Future finished exception=TimeoutError('pod/jupyterhub-nb-2e8572d2-2d7acd-2d4944-2d8cec-2d6b5bd7d39eea did not start in 120 seconds!',)> after timeout Traceback (most recent call last): File "/opt/app-root/lib/python3.5/site-packages/tornado/gen.py", line 970, in error_callback future.result() File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/opt/app-root/lib/python3.5/site-packages/kubespawner/spawner.py", line 995, in start timeout=self.start_timeout File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/futures.py", line 274, in result raise self._exception File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "/opt/app-root/lib/python3.5/site-packages/jupyterhub/utils.py", line 155, in exponential_backoff raise TimeoutError(fail_message) TimeoutError: pod/jupyterhub-nb-2e8572d2-2d7acd-2d4944-2d8cec-2d6b5bd7d39eea did not start in 120 seconds!
[I 2018-07-31 05:44:18.543 JupyterHub log:158] 200 GET /hub/home (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 40.56ms [I 2018-07-31 05:44:21.278 JupyterHub log:158] 302 GET /hub/spawn -> /user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 6.47ms [I 2018-07-31 05:44:21.286 JupyterHub log:158] 302 GET /user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ -> /hub/user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ (@::ffff:172.17.0.1) 0.63ms [W 2018-07-31 05:44:31.300 JupyterHub base:679] User 2e8572d2-7acd-4944-8cec-6b5bd7d39eea is slow to start (timeout=10) [I 2018-07-31 05:44:31.301 JupyterHub base:1016] 2e8572d2-7acd-4944-8cec-6b5bd7d39eea is pending spawn [I 2018-07-31 05:44:31.302 JupyterHub log:158] 200 GET /hub/user/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/ (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 10009.35ms [E 2018-07-31 05:46:20.682 JupyterHub user:474] Unhandled error starting 2e8572d2-7acd-4944-8cec-6b5bd7d39eea's server: pod/jupyterhub-nb-2e8572d2-2d7acd-2d4944-2d8cec-2d6b5bd7d39eea did not start in 120 seconds! [E 2018-07-31 05:46:20.717 JupyterHub gen:974] Exception in Future <Task finished coro=<BaseHandler.spawn_single_user..finish_user_spawn() done, defined at /opt/app-root/lib/python3.5/site-packages/jupyterhub/handlers/base.py:619> exception=TimeoutError('pod/jupyterhub-nb-2e8572d2-2d7acd-2d4944-2d8cec-2d6b5bd7d39eea did not start in 120 seconds!',)> after timeout
Traceback (most recent call last):
File "/opt/app-root/lib/python3.5/site-packages/tornado/gen.py", line 970, in error_callback
future.result()
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/opt/app-root/lib/python3.5/site-packages/jupyterhub/handlers/base.py", line 626, in finish_user_spawn
await spawn_future
File "/opt/app-root/lib/python3.5/site-packages/jupyterhub/user.py", line 486, in spawn
raise e
File "/opt/app-root/lib/python3.5/site-packages/jupyterhub/user.py", line 406, in spawn
url = await gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/futures.py", line 358, in iter
yield self # This tells Task to wait for completion.
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/tasks.py", line 290, in _wakeup
future.result()
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/opt/app-root/lib/python3.5/site-packages/kubespawner/spawner.py", line 995, in start
timeout=self.start_timeout
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/opt/app-root/lib/python3.5/site-packages/jupyterhub/utils.py", line 155, in exponential_backoff
raise TimeoutError(fail_message)
TimeoutError: pod/jupyterhub-nb-2e8572d2-2d7acd-2d4944-2d8cec-2d6b5bd7d39eea did not start in 120 seconds!
[W 2018-07-31 05:46:20.717 JupyterHub users:439] Stream closed while handling /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress [W 2018-07-31 05:46:20.718 JupyterHub users:439] Stream closed while handling /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress [W 2018-07-31 05:46:20.718 JupyterHub users:439] Stream closed while handling /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress [I 2018-07-31 05:46:20.718 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 108968.22ms [I 2018-07-31 05:46:20.719 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 75618.98ms [I 2018-07-31 05:46:20.719 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 42533.58ms [I 2018-07-31 05:46:20.720 JupyterHub log:158] 200 GET /hub/api/users/2e8572d2-7acd-4944-8cec-6b5bd7d39eea/server/progress (2e8572d2-7acd-4944-8cec-6b5bd7d39eea@::ffff:172.17.0.1) 9426.51ms 05:46:25.527 - info: [ConfigProxy] 200 GET /api/routes [I 2018-07-31 05:46:25.529 JupyterHub proxy:301] Checking routes [I 2018-07-31 05:51:25.530 JupyterHub proxy:301] Checking routes 05:51:25.528 - info: [ConfigProxy] 200 GET /api/routes 05:56:25.527 - info: [ConfigProxy] 200 GET /api/routes [I 2018-07-31 05:56:25.529 JupyterHub proxy:301] Checking routes 06:01:25.526 - info: [ConfigProxy] 200 GET /api/routes [I 2018-07-31 06:01:25.528 JupyterHub proxy:301] Checking routes