{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/dockerspawner/issues/35","labels_url":"https://api.github.com/repos/jupyter/dockerspawner/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/dockerspawner/issues/35/comments","events_url":"https://api.github.com/repos/jupyter/dockerspawner/issues/35/events","html_url":"https://github.com/jupyter/dockerspawner/issues/35","id":86053908,"number":35,"title":"500 : Internal Server Error","user":{"login":"nbonnotte","id":9929982,"avatar_url":"https://avatars.githubusercontent.com/u/9929982?v=3","gravatar_id":"","url":"https://api.github.com/users/nbonnotte","html_url":"https://github.com/nbonnotte","followers_url":"https://api.github.com/users/nbonnotte/followers","following_url":"https://api.github.com/users/nbonnotte/following{/other_user}","gists_url":"https://api.github.com/users/nbonnotte/gists{/gist_id}","starred_url":"https://api.github.com/users/nbonnotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbonnotte/subscriptions","organizations_url":"https://api.github.com/users/nbonnotte/orgs","repos_url":"https://api.github.com/users/nbonnotte/repos","events_url":"https://api.github.com/users/nbonnotte/events{/privacy}","received_events_url":"https://api.github.com/users/nbonnotte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-08T06:52:19Z","updated_at":"2015-07-17T21:23:15Z","closed_at":null,"body":"and I can't figure out what is causing it. This is what I get in the logs:\r\n```\r\n[I 2015-06-08 06:37:31.845 JupyterHub log:100] 302 GET /user/nicolas (@192.168.0.114) 1.10ms\r\n[E 2015-06-08 06:37:31.859 JupyterHub web:1496] Uncaught exception GET /hub/user/nicolas (192.168.0.114)\r\n    HTTPServerRequest(protocol='http', host='qucitserver:8000', method='GET', uri='/hub/user/nicolas', version='HTTP/1.1', remote_ip='192.168.0.114', headers={'Host': 'qucitserver:8000', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'X-Forwarded-Port': '8000', 'Cookie': 'jupyter-hub-token=\"2|1:0|10:1433513499|17:jupyter-hub-token|44:MzI3YmNjODNmYTM3NDFmODk3N2Y5ZjJlMmQ5YjkwNGU=|bfaa7de51740b5d383ed9cb7e40f3dcf3204c62b35a3361d37e6664c23baf68a\"', 'Connection': 'close', 'X-Forwarded-Proto': 'http', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36', 'X-Forwarded-For': '192.168.0.114', 'Accept-Encoding': 'gzip, deflate, sdch', 'Accept-Language': 'en-US,en;q=0.8,fr;q=0.6,it;q=0.4'})\r\n    Traceback (most recent call last):\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/tornado/web.py\", line 1415, in _execute\r\n        result = yield result\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/jupyterhub/handlers/base.py\", line 416, in get\r\n        status = yield current_user.spawner.poll()\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/dockerspawner/dockerspawner.py\", line 219, in poll\r\n        container = yield self.get_container()\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/dockerspawner/dockerspawner.py\", line 245, in get_container\r\n        'inspect_container', self.container_name\r\n      File \"/usr/lib/python3.4/concurrent/futures/_base.py\", line 395, in result\r\n        return self.__get_result()\r\n      File \"/usr/lib/python3.4/concurrent/futures/_base.py\", line 354, in __get_result\r\n        raise self._exception\r\n      File \"/usr/lib/python3.4/concurrent/futures/thread.py\", line 54, in run\r\n        result = self.fn(*self.args, **self.kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/dockerspawner/dockerspawner.py\", line 207, in _docker\r\n        return m(*args, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/docker/utils/decorators.py\", line 15, in wrapped\r\n        return f(self, resource_id, *args, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/docker/client.py\", line 745, in inspect_container\r\n        self._get(self._url(\"/containers/{0}/json\".format(container))),\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/docker/client.py\", line 106, in _get\r\n        return self.get(url, **self._set_request_timeout(kwargs))\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/sessions.py\", line 477, in get\r\n        return self.request('GET', url, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/sessions.py\", line 465, in request\r\n        resp = self.send(prep, **send_kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/sessions.py\", line 573, in send\r\n        r = adapter.send(request, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/adapters.py\", line 415, in send\r\n        raise ConnectionError(err, request=request)\r\n    requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))\r\n```\r\n\r\nBeside, after that I needed to delete my `~/.ipython/profile_default`, otherwise I would get\r\n```\r\n[E 2015-06-08 06:32:09.094 JupyterHub orm:376] Unhandled error starting nicolas's server: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))\r\n[E 2015-06-08 06:32:09.096 JupyterHub orm:384] Failed to cleanup nicolas's server that failed to start\r\n    Traceback (most recent call last):\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/jupyterhub/orm.py\", line 380, in spawn\r\n        yield self.stop()\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/jupyterhub/orm.py\", line 434, in stop\r\n        status = yield self.spawner.poll()\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/dockerspawner/dockerspawner.py\", line 219, in poll\r\n        container = yield self.get_container()\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/dockerspawner/dockerspawner.py\", line 245, in get_container\r\n        'inspect_container', self.container_name\r\n      File \"/usr/lib/python3.4/concurrent/futures/_base.py\", line 395, in result\r\n        return self.__get_result()\r\n      File \"/usr/lib/python3.4/concurrent/futures/_base.py\", line 354, in __get_result\r\n        raise self._exception\r\n      File \"/usr/lib/python3.4/concurrent/futures/thread.py\", line 54, in run\r\n        result = self.fn(*self.args, **self.kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/dockerspawner/dockerspawner.py\", line 207, in _docker\r\n        return m(*args, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/docker/utils/decorators.py\", line 15, in wrapped\r\n        return f(self, resource_id, *args, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/docker/client.py\", line 745, in inspect_container\r\n        self._get(self._url(\"/containers/{0}/json\".format(container))),\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/docker/client.py\", line 106, in _get\r\n        return self.get(url, **self._set_request_timeout(kwargs))\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/sessions.py\", line 477, in get\r\n        return self.request('GET', url, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/sessions.py\", line 465, in request\r\n        resp = self.send(prep, **send_kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/sessions.py\", line 573, in send\r\n        r = adapter.send(request, **kwargs)\r\n      File \"/opt/jupyterhub/env3/lib/python3.4/site-packages/requests/adapters.py\", line 415, in send\r\n        raise ConnectionError(err, request=request)\r\n    requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))\r\n```\r\n\r\nIt's a cool project, by the way! :-)"},"comment":{"url":"https://api.github.com/repos/jupyter/dockerspawner/issues/comments/122421757","html_url":"https://github.com/jupyter/dockerspawner/issues/35#issuecomment-122421757","issue_url":"https://api.github.com/repos/jupyter/dockerspawner/issues/35","id":122421757,"user":{"login":"jhamrick","id":83444,"avatar_url":"https://avatars.githubusercontent.com/u/83444?v=3","gravatar_id":"","url":"https://api.github.com/users/jhamrick","html_url":"https://github.com/jhamrick","followers_url":"https://api.github.com/users/jhamrick/followers","following_url":"https://api.github.com/users/jhamrick/following{/other_user}","gists_url":"https://api.github.com/users/jhamrick/gists{/gist_id}","starred_url":"https://api.github.com/users/jhamrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhamrick/subscriptions","organizations_url":"https://api.github.com/users/jhamrick/orgs","repos_url":"https://api.github.com/users/jhamrick/repos","events_url":"https://api.github.com/users/jhamrick/events{/privacy}","received_events_url":"https://api.github.com/users/jhamrick/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T21:23:15Z","updated_at":"2015-07-17T21:23:15Z","body":"My compmodels setup also runs JupyterHub inside a docker container, and that's in fact what we do to get JupyterHub talking to docker. You can see how it's run here:\r\n\r\nhttps://github.com/compmodels/jupyterhub-deploy/blob/master/roles/jupyterhub/tasks/main.yml#L100"}}