Trying to run dockerspawner with jwtauthentication. Authentication works 
fine but I get an exception whenever a user tries to start the server. 

   client = docker.APIClient(**kwargs)
      File "/usr/local/lib/python3.4/site-packages/docker/api/client.py", 
line 149, in __init__
        self._version = self._retrieve_server_version()
      File "/usr/local/lib/python3.4/site-packages/docker/api/client.py", 
line 176, in _retrieve_server_version
        'Error while fetching server API version: {0}'.format(e)
    docker.errors.DockerException: Error while fetching server API version: 
('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

config :

c.NotebookApp.open_browser = False

c.NotebookApp.ip='*'

c.NotebookApp.port = 8888

c.NotebookApp.token = u''

c.Authenticator.admin_users = {'jupyter'}

c.LocalAuthenticator.create_system_users = True

c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'

c.JupyterHub.authenticator_class = 
'jwtauthenticator_new.jwtauthenticator.JSONWebTokenLocalAuthenticator'


from jupyter_client.localinterfaces import public_ips

c.JupyterHub.hub_ip = public_ips()[0]

c.Spawner.mem_limit = '2G'

c.DockerSpawner.host_ip = "0.0.0.0"

~                                   


Is there anything else that I have to add to get dockerspawner working? 

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/c1081a78-acb2-48f9-9d2b-f0c6d14e0de6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Traceback (most recent call last):
      File "/usr/local/lib64/python3.4/site-packages/tornado/web.py", line 
1511, in _execute
        result = yield result
      File 
"/usr/local/lib/python3.4/site-packages/jupyterhub/handlers/base.py", line 747, 
in get
        yield self.spawn_single_user(current_user)
      File 
"/usr/local/lib/python3.4/site-packages/jupyterhub/handlers/base.py", line 475, 
in spawn_single_user
        yield gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), 
finish_spawn_future)
      File 
"/usr/local/lib/python3.4/site-packages/jupyterhub/handlers/base.py", line 445, 
in finish_user_spawn
        yield spawn_future
      File "/usr/local/lib/python3.4/site-packages/jupyterhub/user.py", line 
439, in spawn
        raise e
      File "/usr/local/lib/python3.4/site-packages/jupyterhub/user.py", line 
378, in spawn
        ip_port = yield 
gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
      File 
"/usr/local/lib/python3.4/site-packages/dockerspawner/dockerspawner.py", line 
479, in start
        container = yield self.get_container()
      File 
"/usr/local/lib/python3.4/site-packages/dockerspawner/dockerspawner.py", line 
447, in get_container
        'inspect_container', self.container_name
      File "/usr/lib64/python3.4/concurrent/futures/_base.py", line 395, in 
result
        return self.__get_result()
      File "/usr/lib64/python3.4/concurrent/futures/_base.py", line 354, in 
__get_result
        raise self._exception
      File "/usr/lib64/python3.4/concurrent/futures/thread.py", line 54, in run
        result = self.fn(*self.args, **self.kwargs)
      File 
"/usr/local/lib/python3.4/site-packages/dockerspawner/dockerspawner.py", line 
408, in _docker
        m = getattr(self.client, method)
      File 
"/usr/local/lib/python3.4/site-packages/dockerspawner/dockerspawner.py", line 
62, in client
        client = docker.APIClient(**kwargs)
      File "/usr/local/lib/python3.4/site-packages/docker/api/client.py", line 
149, in __init__
        self._version = self._retrieve_server_version()
      File "/usr/local/lib/python3.4/site-packages/docker/api/client.py", line 
176, in _retrieve_server_version
        'Error while fetching server API version: {0}'.format(e)
    docker.errors.DockerException: Error while fetching server API version: 
('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

Reply via email to