fugue / credstash

A little utility for managing credentials in the cloud
Apache License 2.0
2.06k stars 214 forks source link

New version of credstash causing issues #212

Open mccoyaoife opened 6 years ago

mccoyaoife commented 6 years ago

While installing credstash on an amazon machine image through pip, we are now seeing the following issue:

18-Jul-2018 04:43:57 | packer -     amazon-ebs: fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/usr/local/bin/pip2 install credstash", "msg": "stdout: Collecting credstash\n  Downloading https://files.pythonhosted.org/packages/5f/fa/c10fd986419d489e72ed1e0d94424e848ad1dba82ed5299b472ac8618689/credstash-1.15.0.tar.gz\n    Complete output from command python setup.py egg_info:\n    Traceback (most recent call last):\n      File \"\", line 1, in \n      File \"/tmp/pip-install-T3cxKc/credstash/setup.py\", line 33, in \n        'nose>=1.3.6',\n      File \"/usr/lib/python2.7/distutils/core.py\", line 111, in setup\n        _setup_distribution = dist = klass(attrs)\n      File \"/usr/lib/python2.7/dist-packages/setuptools/dist.py\", line 269, in init\n        self.fetch_build_eggs(attrs['setup_requires'])\n      File \"/usr/lib/python2.7/dist-packages/setuptools/dist.py\", line 313, in fetch_build_eggs\n        replace_conflicting=True,\n      File \"/usr/lib/python2.7/dist-packages/pkg_resources/init.py\", line 826, in resolve\n        dist = best[req.key] = env.best_match(req, ws, installer)\n      File \"/usr/lib/python2.7/dist-packages/pkg_resources/init.py\", line 1092, in best_match\n        return self.obtain(req, installer)\n      File \"/usr/lib/python2.7/dist-packages/pkg_resources/init.py\", line 1104, in obtain\n        return installer(requirement)\n      File \"/usr/lib/python2.7/dist-packages/setuptools/dist.py\", line 380, in fetch_build_egg\n        return cmd.easy_install(req)\n      File \"/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py\", line 651, in easy_install\n        not self.always_copy, self.local_index\n      File \"/usr/lib/python2.7/dist-packages/setuptools/package_index.py\", line 615, in fetch_distribution\n        return dist.clone(location=self.download(dist.location, tmpdir))\n      File \"/usr/lib/python2.7/dist-packages/setuptools/package_index.py\", line 531, in download\n        found = self._download_url(scheme.group(1), spec, tmpdir)\n      File \"/usr/lib/python2.7/dist-packages/setuptools/package_index.py\", line 772, in _download_url\n        return self._attempt_download(url, filename)\n      File \"/usr/lib/python2.7/dist-packages/setuptools/package_index.py\", line 778, in _attempt_download\n        headers = self._download_to(url, filename)\n      File \"/usr/lib/python2.7/dist-packages/setuptools/package_index.py\", line 678, in _download_to\n        fp = self.open_url(strip_fragment(url))\n      File \"/usr/lib/python2.7/dist-packages/setuptools/package_index.py\", line 728, in open_url\n        % (url, v.reason))\n    distutils.errors.DistutilsError: Download error for https://files.pythonhosted.org/packages/58/a5/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44/nose-1.3.7.tar.gz#sha256=f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98: [Errno 104] Connection reset by peer\n    \n    ----------------------------------------\n\n:stderr: Command \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-install-T3cxKc/credstash/\n"}

This was not an issue before the new version of credstash was released.

therc commented 5 years ago

So it's able to download credstash, but fails when fetching nose? Is it consistent? what if you try to install nose first?

dbanttari commented 5 years ago

Works if you install nose first