{"action":"created","issue":{"url":"https://api.github.com/repos/datacats/ckan-multisite/issues/38","labels_url":"https://api.github.com/repos/datacats/ckan-multisite/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/datacats/ckan-multisite/issues/38/comments","events_url":"https://api.github.com/repos/datacats/ckan-multisite/issues/38/events","html_url":"https://github.com/datacats/ckan-multisite/issues/38","id":113089519,"number":38,"title":"Install fails with virtualenv error","user":{"login":"waldoj","id":656758,"avatar_url":"https://avatars.githubusercontent.com/u/656758?v=3","gravatar_id":"","url":"https://api.github.com/users/waldoj","html_url":"https://github.com/waldoj","followers_url":"https://api.github.com/users/waldoj/followers","following_url":"https://api.github.com/users/waldoj/following{/other_user}","gists_url":"https://api.github.com/users/waldoj/gists{/gist_id}","starred_url":"https://api.github.com/users/waldoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldoj/subscriptions","organizations_url":"https://api.github.com/users/waldoj/orgs","repos_url":"https://api.github.com/users/waldoj/repos","events_url":"https://api.github.com/users/waldoj/events{/privacy}","received_events_url":"https://api.github.com/users/waldoj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-23T20:00:34Z","updated_at":"2015-10-28T16:26:29Z","closed_at":null,"body":"New EC2 instance (running Ubuntu), new CKAN Multisite installation, pulling from master. I execute `./run.sh`, it ticks along happily for a while, and terminates like such:\r\n\r\n```\r\nProcessing triggers for libc-bin (2.19-0ubuntu6.6) ...\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/virtualenv\", line 3, in <module>\r\n    virtualenv.main()\r\n  File \"/usr/lib/python2.7/dist-packages/virtualenv.py\", line 825, in main\r\n    symlink=options.symlink)\r\n  File \"/usr/lib/python2.7/dist-packages/virtualenv.py\", line 985, in create_environment\r\n    site_packages=site_packages, clear=clear, symlink=symlink))\r\n  File \"/usr/lib/python2.7/dist-packages/virtualenv.py\", line 1159, in install_python\r\n    mkdir(lib_dir)\r\n  File \"/usr/lib/python2.7/dist-packages/virtualenv.py\", line 447, in mkdir\r\n    os.makedirs(path)\r\n  File \"/usr/lib/python2.7/os.py\", line 150, in makedirs\r\n    makedirs(head, mode)\r\n  File \"/usr/lib/python2.7/os.py\", line 150, in makedirs\r\n    makedirs(head, mode)\r\n  File \"/usr/lib/python2.7/os.py\", line 157, in makedirs\r\n    mkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: 'virtualenv'\r\n```\r\n\r\nSuggestions?"},"comment":{"url":"https://api.github.com/repos/datacats/ckan-multisite/issues/comments/151900387","html_url":"https://github.com/datacats/ckan-multisite/issues/38#issuecomment-151900387","issue_url":"https://api.github.com/repos/datacats/ckan-multisite/issues/38","id":151900387,"user":{"login":"waldoj","id":656758,"avatar_url":"https://avatars.githubusercontent.com/u/656758?v=3","gravatar_id":"","url":"https://api.github.com/users/waldoj","html_url":"https://github.com/waldoj","followers_url":"https://api.github.com/users/waldoj/followers","following_url":"https://api.github.com/users/waldoj/following{/other_user}","gists_url":"https://api.github.com/users/waldoj/gists{/gist_id}","starred_url":"https://api.github.com/users/waldoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldoj/subscriptions","organizations_url":"https://api.github.com/users/waldoj/orgs","repos_url":"https://api.github.com/users/waldoj/repos","events_url":"https://api.github.com/users/waldoj/events{/privacy}","received_events_url":"https://api.github.com/users/waldoj/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T16:26:29Z","updated_at":"2015-10-28T16:26:29Z","body":"I tore everything down and started again, leaving me with a slightly different permissions problem in virtualenv. Stepping through the offending bit of `run.sh` manually:\r\n\r\n```\r\n# source virtualenv/bin/activate\r\n(virtualenv)# set -xe\r\n(virtualenv)# datacats pull\r\n\r\n+ datacats pull\r\nPulling image datacats/web----------------------------------------\r\ndatacats: problem was encountered:\r\nSomething that should not have happened happened when attempting to run this command:\r\n     datacats pull\r\n\r\nIt is seems to be a bug.\r\nPlease report this issue to us by creating an issue ticket at\r\n\r\n    https://github.com/datacats/datacats/issues\r\n\r\nso that we would be able to look into that and fix the issue.\r\n\r\n------------------------------\r\nPlease quote this traceback when reporting this error:\r\nTraceback (most recent call last):\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/datacats/cli/main.py\", line 92, in main\r\n    return command_fn(opts)\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/datacats/cli/pull.py\", line 46, in pull\r\n    retrying_pull_image(i)\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/datacats/cli/pull.py\", line 52, in retrying_pull_image\r\n    \"Failed to pull image {}.\".format(image_name))\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/datacats/cli/pull.py\", line 72, in _retry_func\r\n    func(param)\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/datacats/cli/pull.py\", line 83, in pull_image\r\n    for s in pull_stream(image_name):\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/datacats/docker.py\", line 386, in pull_stream\r\n    return (json.loads(s) for s in _get_docker().pull(image, stream=True))\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/datacats/docker.py\", line 98, in _get_docker\r\n    api_version = version_client.version()['ApiVersion']\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/docker/api/daemon.py\", line 78, in version\r\n    return self._result(self._get(url), json=True)\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/docker/client.py\", line 110, in _get\r\n    return self.get(url, **self._set_request_timeout(kwargs))\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/requests/sessions.py\", line 480, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/requests/sessions.py\", line 468, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/requests/sessions.py\", line 576, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/ckan_multisite/virtualenv/local/lib/python2.7/site-packages/requests/adapters.py\", line 412, in send\r\n    raise ConnectionError(err, request=request)\r\nConnectionError: ('Connection aborted.', error(13, 'Permission denied'))\r\n```\r\n\r\nDoes \"Failed to pull image\" indicate that the remote image couldn't be retrieved, perhaps indicating an upstream problem?"}}