# Configuration file for jupyterhub.
c = get_config()
import os
import sys
c.JupyterHub.cookie_secret_file = '/root/jupyterhub/jupyterhub_cookie_secret'
c.JupyterHub.ssl_key = '/root/jupyterhub/ssl/cert.key'
c.JupyterHub.ssl_cert = '/root/jupyterhub/ssl/cert.crt'
c.JupyterHub.proxy_auth_token = 'a_generated_proxy_auth_token'
c.JupyterHub.spawner_class = 'swarmspawner.SwarmSpawner'
c.DockerSpawner.container_image = 'vroomanj/systemuser'
c.DockerSpawner.hub_ip_connect = 'ip.addr.of.hub'
c.DockerSpawner.tls_cert = os.environ['DOCKER_TLS_CERT']
c.DockerSpawner.tls_key = os.environ['DOCKER_TLS_KEY']
c.Authenticator.admin_users = {'admin'}
c.JupyterHub.proxy_api_ip = '0.0.0.0'
c.JupyterHub.hub_ip = '0.0.0.0'
DOCKER_TLS_CERT=/root/.docker/machine/machines/swarm-master/cert.pem
DOCKER_HOST=https://192.168.99.101:2375
DOCKER_TLS_VERIFY=1
DOCKER_TLS=1
DOCKER_TLS_KEY=/root/.docker/machine/machines/swarm-master/key.pem
DOCKER_CERT_PATH=/root/.docker/machine/machines/swarm-master
[root@villain jupyterhub]# jupyterhub
[I 2016-01-16 13:43:12.110 JupyterHub app:523] Loading cookie_secret from /root/jupyterhub/jupyterhub_cookie_secret
[I 2016-01-16 13:43:12.204 JupyterHub app:657] Not using whitelist. Any authenticated user will be allowed.
[E 2016-01-16 13:43:12.235 JupyterHub app:1101]
Traceback (most recent call last):
File "/root/jupyterhub/jupyterhub/app.py", line 1098, in launch_instance_async
yield self.initialize(argv)
File "/root/jupyterhub/jupyterhub/app.py", line 918, in initialize
yield self.init_spawners()
File "/root/jupyterhub/jupyterhub/app.py", line 717, in init_spawners
status = yield spawner.poll()
File "/usr/local/lib/python3.4/site-packages/dockerspawner/dockerspawner.py", line 259, in poll
container = yield self.get_container()
File "/usr/local/lib/python3.4/site-packages/dockerspawner/dockerspawner.py", line 285, in get_container
'inspect_container', self.container_name
File "/usr/local/lib/python3.4/concurrent/futures/_base.py", line 395, in result
return self.__get_result()
File "/usr/local/lib/python3.4/concurrent/futures/_base.py", line 354, in __get_result
raise self._exception
File "/usr/local/lib/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 246, in _docker
m = getattr(self.client, method)
File "/usr/local/lib/python3.4/site-packages/dockerspawner/dockerspawner.py", line 69, in client
client = docker.Client(base_url=docker_host, tls=tls_config, version='auto')
File "/usr/local/lib/python3.4/site-packages/docker/client.py", line 77, in __init__
self._version = self._retrieve_server_version()
File "/usr/local/lib/python3.4/site-packages/docker/client.py", line 97, in _retrieve_server_version
'Error while fetching server API version: {0}'.format(e)
docker.errors.DockerException: Error while fetching server API version: HTTPSConnectionPool(host='192.168.99.101', port=2375): Max retries exceeded with url: /version (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc466ee24a8>: Failed to establish a new connection: [Errno 111] Connection refused',))
[E 2016-01-16 14:08:37.429 JupyterHub user:189] Unhandled error starting justin's server: invalid literal for int() with base 10: 'true'
[I 2016-01-16 14:08:37.437 JupyterHub dockerspawner:290] Container 'jupyter-justin' is gone
[W 2016-01-16 14:08:37.438 JupyterHub dockerspawner:261] container not found
[E 2016-01-16 14:08:37.475 JupyterHub web:1524] Uncaught exception POST /hub/login?next= (35.9.44.94)
HTTPServerRequest(protocol='https', host='villain.egr.msu.edu:8000', method='POST', uri='/hub/login?next=', version='HTTP/1.1', remote_ip='35.9.44.94', headers={'Content-Type': 'application/x-www-form-urlencoded', 'Referer': 'https://villain.egr.msu.edu:8000/hub/login', 'X-Forwarded-Port': '8000', 'X-Forwarded-Proto': 'https', 'Content-Length': '33', 'X-Forwarded-For': '35.9.44.94', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Origin': 'https://villain.egr.msu.edu:8000', 'Cache-Control': 'max-age=0', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en;q=0.8', 'Connection': 'close', 'Host': 'villain.egr.msu.edu:8000', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Upgrade-Insecure-Requests': '1'})
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/tornado/web.py", line 1445, in _execute
result = yield result
File "/root/jupyterhub/jupyterhub/handlers/login.py", line 72, in post
yield self.spawn_single_user(user)
File "/root/jupyterhub/jupyterhub/handlers/base.py", line 296, in spawn_single_user
yield gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), f)
File "/root/jupyterhub/jupyterhub/user.py", line 199, in spawn
raise e
File "/root/jupyterhub/jupyterhub/user.py", line 180, in spawn
yield gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
File "/root/jupyterhub/swarmspawner.py", line 32, in start
num_nodes = int(info['DriverStatus'][3][1])
ValueError: invalid literal for int() with base 10: 'true'
--
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 jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/6adcb838-973b-4e68-81e3-db7cd63720f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/NQ6JrEdwBNE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/569AA6B9.5020808%40gmail.com.