当前位置:论坛首页 > Linux面板 > 求助

证书获取失败,返回如下错误信息

发表在 Linux面板2017-10-9 10:01 [复制链接] 3 4046


一键获取Let's Encrypt失败,提示“证书获取失败,返回如下错误信息”,

  1. Bootstrapping dependencies for RedHat-based OSes... (you can skip this with --no-bootstrap)
  2. yum is /bin/yum
  3. Loaded plugins: fastestmirror
  4. Loading mirror speeds from cached hostfile
  5. Package gcc-4.8.5-16.el7.x86_64 already installed and latest version
  6. Package augeas-libs-1.4.0-2.el7_4.1.x86_64 already installed and latest version
  7. Package 1:openssl-1.0.2k-8.el7.x86_64 already installed and latest version
  8. Package 1:openssl-devel-1.0.2k-8.el7.x86_64 already installed and latest version
  9. Package libffi-devel-3.0.13-18.el7.x86_64 already installed and latest version
  10. Package redhat-rpm-config-9.1.0-76.el7.centos.noarch already installed and latest version
  11. Package ca-certificates-2017.2.14-71.el7.noarch already installed and latest version
  12. Package python-2.7.5-58.el7.x86_64 already installed and latest version
  13. Package python-devel-2.7.5-58.el7.x86_64 already installed and latest version
  14. Package python-virtualenv-1.10.1-4.el7.noarch already installed and latest version
  15. Package python-tools-2.7.5-58.el7.x86_64 already installed and latest version
  16. Package python2-pip-8.1.2-5.el7.noarch already installed and latest version
  17. Nothing to do
  18. Creating virtual environment...
  19. Installing Python packages...
  20. Had a problem while installing Python packages.

  21. pip prints the following errors:
  22. =====================================================
  23. Collecting argparse==1.4.0 (from -r /tmp/tmp.ABWAjy63Gm/letsencrypt-auto-requirements.txt (line 11))
  24. Downloading http://mirrors.aliyun.com/pypi/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
  25. Collecting pycparser==2.14 (from -r /tmp/tmp.ABWAjy63Gm/letsencrypt-auto-requirements.txt (line 17))
  26. Downloading http://mirrors.aliyun.com/pypi/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz (223kB)
  27. Exception:
  28. Traceback (most recent call last):
  29. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
  30. status = self.run(options, args)
  31. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
  32. requirement_set.prepare_files(finder)
  33. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
  34. ignore_dependencies=self.ignore_dependencies))
  35. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/req/req_set.py", line 620, in _prepare_file
  36. session=self.session, hashes=hashes)
  37. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 821, in unpack_url
  38. hashes=hashes
  39. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 659, in unpack_http_url
  40. hashes)
  41. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 882, in _download_http_url
  42. _download_url(resp, link, content_file, hashes)
  43. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 603, in _download_url
  44. hashes.check_against_chunks(downloaded_chunks)
  45. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks
  46. for chunk in chunks:
  47. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 571, in written_chunks
  48. for chunk in chunks:
  49. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/utils/ui.py", line 139, in iter
  50. for x in it:
  51. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 560, in resp_read
  52. decode_content=False):
  53. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream
  54. data = self.read(amt=amt, decode_content=decode_content)
  55. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 324, in read
  56. flush_decoder = True
  57. File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
  58. self.gen.throw(type, value, traceback)
  59. File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 237, in _error_catcher
  60. raise ReadTimeoutError(self._pool, None, 'Read timed out.')
  61. ReadTimeoutError: HTTPConnectionPool(host='mirrors.aliyun.com', port=80): Read timed out.
  62. =====================================================

  63. Certbot has problem setting up the virtual environment.

  64. We were not be able to guess the right solution from your pip
  65. output.

  66. Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
  67. for possible solutions.
  68. You may also find some support resources at https://certbot.eff.org/support/ .
复制代码
按照https://www.bt.cn/bbs/forum.php? ... p;highlight=Encrypt方法也报错:
  1. pip prints the following errors:
  2. =====================================================
  3. Collecting argparse==1.4.0 (from -r /tmp/tmp.knlFEUp84P/letsencrypt-auto-requirements.txt (line 11))
  4.   Downloading http://mirrors.aliyun.com/pypi/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
  5. Collecting pycparser==2.14 (from -r /tmp/tmp.knlFEUp84P/letsencrypt-auto-requirements.txt (line 17))
  6.   Downloading http://mirrors.aliyun.com/pypi/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz (223kB)
  7. Exception:
  8. Traceback (most recent call last):
  9.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
  10.     status = self.run(options, args)
  11.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
  12.     requirement_set.prepare_files(finder)
  13.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
  14.     ignore_dependencies=self.ignore_dependencies))
  15.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/req/req_set.py", line 620, in _prepare_file
  16.     session=self.session, hashes=hashes)
  17.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 821, in unpack_url
  18.     hashes=hashes
  19.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 659, in unpack_http_url
  20.     hashes)
  21.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 882, in _download_http_url
  22.     _download_url(resp, link, content_file, hashes)
  23.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 603, in _download_url
  24.     hashes.check_against_chunks(downloaded_chunks)
  25.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks
  26.     for chunk in chunks:
  27.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 571, in written_chunks
  28.     for chunk in chunks:
  29.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/utils/ui.py", line 139, in iter
  30.     for x in it:
  31.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py", line 560, in resp_read
  32.     decode_content=False):
  33.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream
  34.     data = self.read(amt=amt, decode_content=decode_content)
  35.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 324, in read
  36.     flush_decoder = True
  37.   File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
  38.     self.gen.throw(type, value, traceback)
  39.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 237, in _error_catcher
  40.     raise ReadTimeoutError(self._pool, None, 'Read timed out.')
  41. ReadTimeoutError: HTTPConnectionPool(host='mirrors.aliyun.com', port=80): Read timed out.
  42. =====================================================

  43. Certbot has problem setting up the virtual environment.

  44. We were not be able to guess the right solution from your pip
  45. output.

  46. Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
  47. for possible solutions.
  48. You may also find some support resources at https://certbot.eff.org/support/
复制代码


使用道具 举报 只看该作者 回复
发表于 2017-10-9 10:39:36 | 显示全部楼层
进入ssh 输入这条命令然后重新申请试试
  1. mv ~/.pip/pip.conf ~/.pip/pip.conf.backup
复制代码
使用道具 举报 回复 支持 反对
发表于 2017-10-9 11:23:12 | 显示全部楼层
河妖 发表于 2017-10-9 10:39
进入ssh 输入这条命令然后重新申请试试

感谢回复 ,

修改了下pip源解决了。

使用道具 举报 回复 支持 反对
发表于 2018-8-8 14:32:52 | 显示全部楼层
输入命令报No such file or directory  怎么处理
bug.png
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表