Here are the logs from the spawned Lab container:
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
[D 2020-07-17 20:50:29.003 SingleUserNotebookApp application:179] Searching ['/home/jovyan', '/home/jovyan/.jupyter', '/opt/conda/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2020-07-17 20:50:29.003 SingleUserNotebookApp application:556] Looking for jupyter_config in /etc/jupyter
[D 2020-07-17 20:50:29.003 SingleUserNotebookApp application:556] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2020-07-17 20:50:29.003 SingleUserNotebookApp application:556] Looking for jupyter_config in /opt/conda/etc/jupyter
[D 2020-07-17 20:50:29.003 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan/.jupyter
[D 2020-07-17 20:50:29.003 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan
[D 2020-07-17 20:50:29.004 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /etc/jupyter
[D 2020-07-17 20:50:29.005 SingleUserNotebookApp application:578] Loaded config file: /etc/jupyter/jupyter_notebook_config.py
[D 2020-07-17 20:50:29.005 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2020-07-17 20:50:29.005 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /opt/conda/etc/jupyter
[D 2020-07-17 20:50:29.005 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan/.jupyter
[D 2020-07-17 20:50:29.006 SingleUserNotebookApp application:578] Loaded config file: /home/jovyan/.jupyter/jupyter_notebook_config.py
[D 2020-07-17 20:50:29.007 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan
[W 2020-07-17 20:50:29.010 SingleUserNotebookApp configurable:168] Config option `open_browser` not recognized by `SingleUserNotebookApp`. Did you mean `browser`?
[D 2020-07-17 20:50:29.015 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-17 20:50:29.016 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-17 20:50:29.016 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/opt/conda/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/opt/conda/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-17 20:50:29.017 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/home/jovyan/.jupyter/jupyter_notebook_config.json
[I 2020-07-17 20:50:30.264 SingleUserNotebookApp extension:158] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 2020-07-17 20:50:30.265 SingleUserNotebookApp extension:159] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2020-07-17 20:50:30.269 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.1.0
[W 2020-07-17 20:50:30.285 SingleUserNotebookApp _version:53] jupyterhub version 1.2.0dev != jupyterhub-singleuser version 1.1.0. This could cause failure to authenticate and result in redirect loops!
[I 2020-07-17 20:50:30.286 SingleUserNotebookApp notebookapp:1924] Serving notebooks from local directory: /lab
[I 2020-07-17 20:50:30.286 SingleUserNotebookApp notebookapp:1924] The Jupyter Notebook is running at:
[I 2020-07-17 20:50:30.286 SingleUserNotebookApp notebookapp:1924] http://74fe269f4c78:8888/user/russell.seymour@turtlesystems.co.uk/
[I 2020-07-17 20:50:30.286 SingleUserNotebookApp notebookapp:1925] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2020-07-17 20:50:30.292 SingleUserNotebookApp singleuser:541] Updating Hub with activity every 300 seconds
[D 2020-07-17 20:50:30.292 SingleUserNotebookApp singleuser:503] Notifying Hub of activity 2020-07-17T20:50:29.091884Z
[C 2020-07-17 20:50:56.772 SingleUserNotebookApp notebookapp:1615] received signal 15, stopping
[I 2020-07-17 20:50:56.772 SingleUserNotebookApp notebookapp:1784] Shutting down 0 kernels
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
[D 2020-07-17 21:14:06.784 SingleUserNotebookApp application:179] Searching ['/home/jovyan', '/home/jovyan/.jupyter', '/opt/conda/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2020-07-17 21:14:06.784 SingleUserNotebookApp application:556] Looking for jupyter_config in /etc/jupyter
[D 2020-07-17 21:14:06.787 SingleUserNotebookApp application:556] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2020-07-17 21:14:06.787 SingleUserNotebookApp application:556] Looking for jupyter_config in /opt/conda/etc/jupyter
[D 2020-07-17 21:14:06.796 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan/.jupyter
[D 2020-07-17 21:14:06.796 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan
[D 2020-07-17 21:14:06.798 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /etc/jupyter
[D 2020-07-17 21:14:06.799 SingleUserNotebookApp application:578] Loaded config file: /etc/jupyter/jupyter_notebook_config.py
[D 2020-07-17 21:14:06.799 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2020-07-17 21:14:06.799 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /opt/conda/etc/jupyter
[D 2020-07-17 21:14:06.800 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan/.jupyter
[D 2020-07-17 21:14:06.817 SingleUserNotebookApp application:578] Loaded config file: /home/jovyan/.jupyter/jupyter_notebook_config.py
[D 2020-07-17 21:14:06.817 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan
[W 2020-07-17 21:14:06.830 SingleUserNotebookApp configurable:168] Config option `open_browser` not recognized by `SingleUserNotebookApp`. Did you mean `browser`?
[D 2020-07-17 21:14:06.846 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-17 21:14:06.847 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-17 21:14:06.849 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/opt/conda/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/opt/conda/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-17 21:14:06.851 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/home/jovyan/.jupyter/jupyter_notebook_config.json
[I 2020-07-17 21:14:08.290 SingleUserNotebookApp extension:158] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 2020-07-17 21:14:08.290 SingleUserNotebookApp extension:159] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2020-07-17 21:14:08.296 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.1.0
[E 2020-07-17 21:14:08.303 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 1/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-17 21:14:10.313 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 2/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-17 21:14:14.322 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 3/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-17 21:14:22.330 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 4/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[C 2020-07-17 21:14:34.281 SingleUserNotebookApp notebookapp:1615] received signal 15, stopping
Traceback (most recent call last):
File "/opt/conda/bin/jupyterhub-singleuser", line 10, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 660, in main
return SingleUserNotebookApp.launch_instance(argv)
File "/opt/conda/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
app.start()
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 563, in start
ioloop.IOLoop.current().run_sync(self.check_hub_version)
File "/opt/conda/lib/python3.8/site-packages/tornado/ioloop.py", line 526, in run_sync
self.start()
File "/opt/conda/lib/python3.8/site-packages/tornado/platform/asyncio.py", line 149, in start
self.asyncio_loop.run_forever()
File "/opt/conda/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
self._run_once()
File "/opt/conda/lib/python3.8/asyncio/base_events.py", line 1823, in _run_once
event_list = self._selector.select(timeout)
File "/opt/conda/lib/python3.8/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
File "/opt/conda/lib/python3.8/site-packages/notebook/notebookapp.py", line 1616, in _signal_stop
self.io_loop.add_callback_from_signal(self.io_loop.stop)
AttributeError: 'SingleUserNotebookApp' object has no attribute 'io_loop'
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
[D 2020-07-19 14:32:30.865 SingleUserNotebookApp application:179] Searching ['/home/jovyan', '/home/jovyan/.jupyter', '/opt/conda/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2020-07-19 14:32:30.866 SingleUserNotebookApp application:556] Looking for jupyter_config in /etc/jupyter
[D 2020-07-19 14:32:30.867 SingleUserNotebookApp application:556] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2020-07-19 14:32:30.867 SingleUserNotebookApp application:556] Looking for jupyter_config in /opt/conda/etc/jupyter
[D 2020-07-19 14:32:30.873 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan/.jupyter
[D 2020-07-19 14:32:30.874 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan
[D 2020-07-19 14:32:30.875 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /etc/jupyter
[D 2020-07-19 14:32:30.876 SingleUserNotebookApp application:578] Loaded config file: /etc/jupyter/jupyter_notebook_config.py
[D 2020-07-19 14:32:30.877 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2020-07-19 14:32:30.877 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /opt/conda/etc/jupyter
[D 2020-07-19 14:32:30.877 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan/.jupyter
[D 2020-07-19 14:32:30.878 SingleUserNotebookApp application:578] Loaded config file: /home/jovyan/.jupyter/jupyter_notebook_config.py
[D 2020-07-19 14:32:30.878 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan
[W 2020-07-19 14:32:30.885 SingleUserNotebookApp configurable:168] Config option `open_browser` not recognized by `SingleUserNotebookApp`. Did you mean `browser`?
[D 2020-07-19 14:32:30.893 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-19 14:32:30.894 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-19 14:32:30.895 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/opt/conda/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/opt/conda/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-19 14:32:30.896 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/home/jovyan/.jupyter/jupyter_notebook_config.json
[I 2020-07-19 14:32:32.355 SingleUserNotebookApp extension:158] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 2020-07-19 14:32:32.355 SingleUserNotebookApp extension:159] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2020-07-19 14:32:32.360 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.1.0
[W 2020-07-19 14:32:32.371 SingleUserNotebookApp _version:53] jupyterhub version 1.2.0dev != jupyterhub-singleuser version 1.1.0. This could cause failure to authenticate and result in redirect loops!
[I 2020-07-19 14:32:32.371 SingleUserNotebookApp notebookapp:1924] Serving notebooks from local directory: /lab
[I 2020-07-19 14:32:32.371 SingleUserNotebookApp notebookapp:1924] The Jupyter Notebook is running at:
[I 2020-07-19 14:32:32.371 SingleUserNotebookApp notebookapp:1924] http://74fe269f4c78:8888/user/russell.seymour@turtlesystems.co.uk/
[I 2020-07-19 14:32:32.372 SingleUserNotebookApp notebookapp:1925] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2020-07-19 14:32:32.378 SingleUserNotebookApp singleuser:541] Updating Hub with activity every 300 seconds
[D 2020-07-19 14:32:32.378 SingleUserNotebookApp singleuser:503] Notifying Hub of activity 2020-07-19T14:32:31.011408Z
[C 2020-07-19 14:32:58.324 SingleUserNotebookApp notebookapp:1615] received signal 15, stopping
[I 2020-07-19 14:32:58.325 SingleUserNotebookApp notebookapp:1784] Shutting down 0 kernels
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
[D 2020-07-19 18:54:45.093 SingleUserNotebookApp application:179] Searching ['/home/jovyan', '/home/jovyan/.jupyter', '/opt/conda/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2020-07-19 18:54:45.094 SingleUserNotebookApp application:556] Looking for jupyter_config in /etc/jupyter
[D 2020-07-19 18:54:45.095 SingleUserNotebookApp application:556] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2020-07-19 18:54:45.095 SingleUserNotebookApp application:556] Looking for jupyter_config in /opt/conda/etc/jupyter
[D 2020-07-19 18:54:45.098 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan/.jupyter
[D 2020-07-19 18:54:45.098 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan
[D 2020-07-19 18:54:45.099 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /etc/jupyter
[D 2020-07-19 18:54:45.100 SingleUserNotebookApp application:578] Loaded config file: /etc/jupyter/jupyter_notebook_config.py
[D 2020-07-19 18:54:45.100 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2020-07-19 18:54:45.100 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /opt/conda/etc/jupyter
[D 2020-07-19 18:54:45.101 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan/.jupyter
[D 2020-07-19 18:54:45.102 SingleUserNotebookApp application:578] Loaded config file: /home/jovyan/.jupyter/jupyter_notebook_config.py
[D 2020-07-19 18:54:45.102 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan
[W 2020-07-19 18:54:45.106 SingleUserNotebookApp configurable:168] Config option `open_browser` not recognized by `SingleUserNotebookApp`. Did you mean `browser`?
[D 2020-07-19 18:54:45.114 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-19 18:54:45.114 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-19 18:54:45.115 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/opt/conda/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/opt/conda/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-19 18:54:45.116 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/home/jovyan/.jupyter/jupyter_notebook_config.json
[I 2020-07-19 18:54:46.142 SingleUserNotebookApp extension:158] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 2020-07-19 18:54:46.142 SingleUserNotebookApp extension:159] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2020-07-19 18:54:46.147 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.1.0
[E 2020-07-19 18:54:46.149 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 1/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-19 18:54:48.157 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 2/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-19 18:54:52.166 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 3/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-19 18:55:00.172 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 4/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[C 2020-07-19 18:55:14.292 SingleUserNotebookApp notebookapp:1615] received signal 15, stopping
Traceback (most recent call last):
File "/opt/conda/bin/jupyterhub-singleuser", line 10, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 660, in main
return SingleUserNotebookApp.launch_instance(argv)
File "/opt/conda/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
app.start()
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 563, in start
ioloop.IOLoop.current().run_sync(self.check_hub_version)
File "/opt/conda/lib/python3.8/site-packages/tornado/ioloop.py", line 526, in run_sync
self.start()
File "/opt/conda/lib/python3.8/site-packages/tornado/platform/asyncio.py", line 149, in start
self.asyncio_loop.run_forever()
File "/opt/conda/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
self._run_once()
File "/opt/conda/lib/python3.8/asyncio/base_events.py", line 1823, in _run_once
event_list = self._selector.select(timeout)
File "/opt/conda/lib/python3.8/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
File "/opt/conda/lib/python3.8/site-packages/notebook/notebookapp.py", line 1616, in _signal_stop
self.io_loop.add_callback_from_signal(self.io_loop.stop)
AttributeError: 'SingleUserNotebookApp' object has no attribute 'io_loop'
Executing the command: jupyterhub-singleuser --ip=0.0.0.0 --port=8888 --notebook-dir=/lab --debug
[D 2020-07-20 07:59:26.799 SingleUserNotebookApp application:179] Searching ['/home/jovyan', '/home/jovyan/.jupyter', '/opt/conda/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2020-07-20 07:59:26.799 SingleUserNotebookApp application:556] Looking for jupyter_config in /etc/jupyter
[D 2020-07-20 07:59:26.800 SingleUserNotebookApp application:556] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2020-07-20 07:59:26.800 SingleUserNotebookApp application:556] Looking for jupyter_config in /opt/conda/etc/jupyter
[D 2020-07-20 07:59:26.804 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan/.jupyter
[D 2020-07-20 07:59:26.805 SingleUserNotebookApp application:556] Looking for jupyter_config in /home/jovyan
[D 2020-07-20 07:59:26.806 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /etc/jupyter
[D 2020-07-20 07:59:26.806 SingleUserNotebookApp application:578] Loaded config file: /etc/jupyter/jupyter_notebook_config.py
[D 2020-07-20 07:59:26.807 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 2020-07-20 07:59:26.807 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /opt/conda/etc/jupyter
[D 2020-07-20 07:59:26.807 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan/.jupyter
[D 2020-07-20 07:59:26.807 SingleUserNotebookApp application:578] Loaded config file: /home/jovyan/.jupyter/jupyter_notebook_config.py
[D 2020-07-20 07:59:26.807 SingleUserNotebookApp application:556] Looking for jupyter_notebook_config in /home/jovyan
[W 2020-07-20 07:59:26.811 SingleUserNotebookApp configurable:168] Config option `open_browser` not recognized by `SingleUserNotebookApp`. Did you mean `browser`?
[D 2020-07-20 07:59:26.818 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-20 07:59:26.822 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-20 07:59:26.823 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/opt/conda/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/opt/conda/etc/jupyter/jupyter_notebook_config.json
[D 2020-07-20 07:59:26.824 SingleUserNotebookApp config_manager:97] Paths used for configuration of jupyter_notebook_config:
/home/jovyan/.jupyter/jupyter_notebook_config.json
[I 2020-07-20 07:59:28.206 SingleUserNotebookApp extension:158] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 2020-07-20 07:59:28.207 SingleUserNotebookApp extension:159] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2020-07-20 07:59:28.213 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.1.0
[E 2020-07-20 07:59:28.218 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 1/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-20 07:59:30.226 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 2/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-20 07:59:34.235 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 3/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-20 07:59:42.247 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 4/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[E 2020-07-20 07:59:58.260 SingleUserNotebookApp singleuser:434] Failed to connect to my Hub at http://172.17.0.2:8081/hub/api (attempt 5/5). Is it running?
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 432, in check_hub_version
resp = await client.fetch(self.hub_api_url)
ConnectionRefusedError: [Errno 111] Connection refused
[C 2020-07-20 07:59:58.332 SingleUserNotebookApp notebookapp:1615] received signal 15, stopping
Traceback (most recent call last):
File "/opt/conda/bin/jupyterhub-singleuser", line 10, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 660, in main
return SingleUserNotebookApp.launch_instance(argv)
File "/opt/conda/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
app.start()
File "/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser.py", line 563, in start
ioloop.IOLoop.current().run_sync(self.check_hub_version)
File "/opt/conda/lib/python3.8/site-packages/tornado/ioloop.py", line 526, in run_sync
self.start()
File "/opt/conda/lib/python3.8/site-packages/tornado/platform/asyncio.py", line 149, in start
self.asyncio_loop.run_forever()
File "/opt/conda/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
self._run_once()
File "/opt/conda/lib/python3.8/asyncio/base_events.py", line 1823, in _run_once
event_list = self._selector.select(timeout)
File "/opt/conda/lib/python3.8/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
File "/opt/conda/lib/python3.8/site-packages/notebook/notebookapp.py", line 1616, in _signal_stop
self.io_loop.add_callback_from_signal(self.io_loop.stop)
AttributeError: 'SingleUserNotebookApp' object has no attribute 'io_loop'
Looking at the logs it seems that the Lab is not able to communicate back to the Hub, I guess because it has not been told what network to be on. There is a mismatch between the address that Hub is running on and the address the Lab is trying to use.
Do I need to add arguments to the spawner in the jupyterhub_config.py
to tell it mount /var/run/docker.sock
so it can see the network or explicitly set the network the lab should connect on? (I am just guessing here now
)