{"action":"created","issue":{"url":"https://api.github.com/repos/simphony/simphony-remote/issues/131","repository_url":"https://api.github.com/repos/simphony/simphony-remote","labels_url":"https://api.github.com/repos/simphony/simphony-remote/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/simphony/simphony-remote/issues/131/comments","events_url":"https://api.github.com/repos/simphony/simphony-remote/issues/131/events","html_url":"https://github.com/simphony/simphony-remote/issues/131","id":166583129,"number":131,"title":"FileConfig with tls=True only, leads to docker TLSParameterError ","user":{"login":"kitchoi","id":3673984,"avatar_url":"https://avatars.githubusercontent.com/u/3673984?v=3","gravatar_id":"","url":"https://api.github.com/users/kitchoi","html_url":"https://github.com/kitchoi","followers_url":"https://api.github.com/users/kitchoi/followers","following_url":"https://api.github.com/users/kitchoi/following{/other_user}","gists_url":"https://api.github.com/users/kitchoi/gists{/gist_id}","starred_url":"https://api.github.com/users/kitchoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitchoi/subscriptions","organizations_url":"https://api.github.com/users/kitchoi/orgs","repos_url":"https://api.github.com/users/kitchoi/repos","events_url":"https://api.github.com/users/kitchoi/events{/privacy}","received_events_url":"https://api.github.com/users/kitchoi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-20T13:37:24Z","updated_at":"2016-07-20T13:48:21Z","closed_at":null,"body":"On Linux, if my file config for the `remoteappmanager_config.py` ONLY contains the following:\r\n```\r\n$ cat remoteappmanager_config.py\r\ntls = True\r\n```\r\n\r\nThen starting remoteappmanager gives this error\r\n```\r\n$ remoteappmanager --user=kit --port=45707 --cookie-name=jupyter-hub-token-kit --base-urlpath=/user/kit --hub-host= --hub-prefix=/hub/ --hub-api-url=http://172.16.253.129:8081/hub/api --ip=127.0.0.1 --proxy-api-url=http://127.0.0.1:8001/api/routes/ --config-file=remoteappmanager_config.py\r\n...\r\n[E 160720 14:33:43 web:1548] Uncaught exception GET /user/kit/ (127.0.0.1)\r\n    HTTPServerRequest(protocol='http', host='127.0.0.1:8000', method='GET', uri='/user/kit/', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'X-Forwarded-Proto': 'https', 'Accept-Language': 'en-US,en;q=0.5', 'X-Forwarded-For': '127.0.0.1', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'If-None-Match': '\"dfba4089bef9b2e40bbd2a75ba5413bb8edbdd83\"', 'Host': '127.0.0.1:8000', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0', 'Referer': 'https://127.0.0.1:8000/hub/login', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'close', 'X-Forwarded-Port': '8000', 'Cookie': 'jupyter-hub-token-kit=\"2|1:0|10:1469021623|21:jupyter-hub-token-kit|44:M2UzMjRlOGNhNDBjNGQ5ZWEwYjg3Njk0N2U0ODY4MmE=|1ec021fdad25b335a6b11b22ff198ce0860a0742a4d95c46a33a6d659d5f4e2d\"'})\r\n    Traceback (most recent call last):\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/traitlets/traitlets.py\", line 501, in get\r\n        value = obj._trait_values[self.name]\r\n    KeyError: 'container_manager'\r\n    \r\n    During handling of the above exception, another exception occurred:\r\n    \r\n    Traceback (most recent call last):\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/tornado/web.py\", line 1469, in _execute\r\n        result = yield result\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/tornado/gen.py\", line 1015, in run\r\n        value = future.result()\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/tornado/concurrent.py\", line 237, in result\r\n        raise_exc_info(self._exc_info)\r\n      File \"<string>\", line 3, in raise_exc_info\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/tornado/gen.py\", line 1021, in run\r\n        yielded = self.gen.throw(*exc_info)\r\n      File \"/mnt/hgfs/VM_shared/SimPhoNy/simphony-remote/remoteappmanager/handlers/home_handler.py\", line 21, in get\r\n        images_info = yield self._get_images_info()\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/tornado/gen.py\", line 1015, in run\r\n        value = future.result()\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/tornado/concurrent.py\", line 237, in result\r\n        raise_exc_info(self._exc_info)\r\n      File \"<string>\", line 3, in raise_exc_info\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/tornado/gen.py\", line 285, in wrapper\r\n        yielded = next(result)\r\n      File \"/mnt/hgfs/VM_shared/SimPhoNy/simphony-remote/remoteappmanager/handlers/home_handler.py\", line 184, in _get_images_info\r\n        container_manager = self.application.container_manager\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/traitlets/traitlets.py\", line 529, in __get__\r\n        return self.get(obj, cls)\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/traitlets/traitlets.py\", line 508, in get\r\n        value = self._validate(obj, dynamic_default())\r\n      File \"/mnt/hgfs/VM_shared/SimPhoNy/simphony-remote/remoteappmanager/application.py\", line 81, in _container_manager_default\r\n        docker_config=self.file_config.docker_config()\r\n      File \"/mnt/hgfs/VM_shared/SimPhoNy/simphony-remote/remoteappmanager/file_config.py\", line 155, in docker_config\r\n        assert_hostname=True,\r\n      File \"/home/kit/.virtualenv/simremote/lib/python3.4/site-packages/docker/tls.py\", line 47, in __init__\r\n        'Path to a certificate and key files must be provided'\r\n    docker.errors.TLSParameterError: Path to a certificate and key files must be provided through the client_config param. TLS configurations should map the Docker CLI client configurations. See https://docs.docker.com/engine/articles/https/ for API details.\r\n```\r\n\r\nIf further config is required, it should be documented properly."},"comment":{"url":"https://api.github.com/repos/simphony/simphony-remote/issues/comments/233954091","html_url":"https://github.com/simphony/simphony-remote/issues/131#issuecomment-233954091","issue_url":"https://api.github.com/repos/simphony/simphony-remote/issues/131","id":233954091,"user":{"login":"kitchoi","id":3673984,"avatar_url":"https://avatars.githubusercontent.com/u/3673984?v=3","gravatar_id":"","url":"https://api.github.com/users/kitchoi","html_url":"https://github.com/kitchoi","followers_url":"https://api.github.com/users/kitchoi/followers","following_url":"https://api.github.com/users/kitchoi/following{/other_user}","gists_url":"https://api.github.com/users/kitchoi/gists{/gist_id}","starred_url":"https://api.github.com/users/kitchoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitchoi/subscriptions","organizations_url":"https://api.github.com/users/kitchoi/orgs","repos_url":"https://api.github.com/users/kitchoi/repos","events_url":"https://api.github.com/users/kitchoi/events{/privacy}","received_events_url":"https://api.github.com/users/kitchoi/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T13:48:21Z","updated_at":"2016-07-20T13:48:21Z","body":"Note that this behaviour exists even when the default cert/key files exist:\r\n```\r\n(simremote) $ ls /home/kit/.docker/machine/machines/default/\r\nca-key.pem  ca.pem  ca.srl  cert.pem  extfile.cnf  key.pem  script.sh  script.sh~  server-cert.pem  server-key.pem\r\n(simremote) $ export DOCKER_CERT_PATH=/home/kit/.docker/machine/machines/default/\r\n```"}}
{"actor":{"display_login":"kitchoi"}}