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

Let's encrypt 一直提示『正在校验域名,请稍后..』(附日志)

发表在 Linux面板2018-1-19 00:43 [复制链接] 2 4849

本帖最后由 frederic 于 2018-1-19 01:23 编辑

在面板申请Let's encrypt 时,一直转圈提示『正在校验域名,请稍后..』,在/var/log/letsencrypt/letsencrypt.log可以看到如下日志及错误信息:
  1. 2018-01-18 16:29:46,876:DEBUG:certbot.main:certbot version: 0.21.0
  2. 2018-01-18 16:29:46,876:DEBUG:certbot.main:Arguments: ['-n']
  3. 2018-01-18 16:29:46,876:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
  4. 2018-01-18 16:29:46,899:DEBUG:certbot.log:Root logging level set at 20
  5. 2018-01-18 16:29:46,899:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
  6. 2018-01-18 16:29:46,900:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None
  7. 2018-01-18 16:29:46,900:DEBUG:certbot.log:Exiting abnormally:
  8. Traceback (most recent call last):
  9.   File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 11, in <module>
  10.     sys.exit(main())
  11.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/main.py", line 1240, in main
  12.     return config.func(config, plugins)
  13.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/main.py", line 981, in run
  14.     installer, authenticator = plug_sel.choose_configurator_plugins(config, plugins, "run")
  15.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/plugins/selection.py", line 189, in choose_configurator_plugins
  16.     authenticator = installer = pick_configurator(config, req_inst, plugins)
  17.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/plugins/selection.py", line 25, in pick_configurator
  18.     (interfaces.IAuthenticator, interfaces.IInstaller))
  19.   File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/plugins/selection.py", line 67, in pick_plugin
  20.     "Missing command line flags. For non-interactive execution, "
  21. MissingCommandlineFlag: Missing command line flags. For non-interactive execution, you will need to specify a plugin on the command line.  Run with '--help plugins' to see a list of options, and see https://eff.org/letsencrypt-plugins for more detail on what the plugins do and how to use them.
复制代码
操作系统版本是CentOS 7
内核:4.14.14-1.el7.elrepo.x86_64
使用道具 举报 只看该作者 回复
发表于 2018-1-19 00:49:27 | 显示全部楼层
在网上搜索后尝试:
  1. wget -O /www/server/panel/certbot-auto http://download.bt.cn/install/certbot-auto.init -T 5
  2. chmod +x /www/server/panel/certbot-auto && /www/server/panel/certbot-auto -n
复制代码


失败。第二步的时候还是提示Missing command line flags.,附全部输出如下:

  1. Bootstrapping dependencies for RedHat-based OSes...
  2. yum is /usr/bin/yum
  3. Loaded plugins: fastestmirror
  4. Loading mirror speeds from cached hostfile
  5. * base: centos.s.uw.edu
  6. * elrepo: hkg.mirror.rackspace.com
  7. * epel: mirrors.cat.pdx.edu
  8. * extras: mirrors.cat.pdx.edu
  9. * updates: mirrors.cat.pdx.edu
  10. Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version
  11. Package augeas-libs-1.4.0-2.el7_4.2.x86_64 already installed and latest version
  12. Package 1:openssl-1.0.2k-8.el7.x86_64 already installed and latest version
  13. Package 1:openssl-devel-1.0.2k-8.el7.x86_64 already installed and latest version
  14. Package libffi-devel-3.0.13-18.el7.x86_64 already installed and latest version
  15. Package redhat-rpm-config-9.1.0-76.el7.centos.noarch already installed and latest version
  16. Package ca-certificates-2017.2.14-71.el7.noarch already installed and latest version
  17. Package python-2.7.5-58.el7.x86_64 already installed and latest version
  18. Package python-devel-2.7.5-58.el7.x86_64 already installed and latest version
  19. Package python-virtualenv-1.10.1-4.el7.noarch already installed and latest version
  20. Package python-tools-2.7.5-58.el7.x86_64 already installed and latest version
  21. Package python2-pip-8.1.2-5.el7.noarch already installed and latest version
  22. Nothing to do
  23. Upgrading certbot-auto 0.12.0 to 0.21.0...
  24. Replacing certbot-auto...
  25. Saving debug log to /var/log/letsencrypt/letsencrypt.log
  26. Missing command line flags. For non-interactive execution, you will need to specify a plugin on the command line.  Run with '--help plugins' to see a list of options, and see https://eff.org/letsencrypt-plugins for more detail on what the plugins do and how to use them.
复制代码



另外一个信息是:我是 Python 开发者,在服务器上安装了 pyenv 进行多版本管理,但没有修改默认版本 python,所以应该和此问题无关
使用道具 举报 回复 支持 反对
发表于 2018-2-3 23:12:14 | 显示全部楼层
本帖最后由 hongmao21 于 2018-2-3 23:15 编辑

我的也是 一直转圈提示『正在校验域名,请稍后..』
然后,
证书获取失败,返回如下错误信息:
  1. <font color="#ff0000">Bootstrapping dependencies for RedHat-based OSes... (you can skip this with --no-bootstrap)
  2. yum is /bin/yum
  3. yum is hashed (/bin/yum)
  4. Loaded plugins: fastestmirror
  5. Loading mirror speeds from cached hostfile
  6. * base: mirrors.aliyun.com
  7. * elrepo: mirrors.neusoft.edu.cn
  8. * epel: ftp.riken.jp
  9. * extras: mirrors.aliyun.com
  10. * updates: mirrors.aliyun.com
  11. Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version
  12. Package augeas-libs-1.4.0-2.el7_4.2.x86_64 already installed and latest version
  13. Package 1:openssl-1.0.2k-8.el7.x86_64 already installed and latest version
  14. Package 1:openssl-devel-1.0.2k-8.el7.x86_64 already installed and latest version
  15. Package libffi-devel-3.0.13-18.el7.x86_64 already installed and latest version
  16. Package redhat-rpm-config-9.1.0-76.el7.centos.noarch already installed and latest version
  17. Package ca-certificates-2017.2.14-71.el7.noarch already installed and latest version
  18. Package python-devel-2.7.5-58.el7.x86_64 already installed and latest version
  19. Package python-virtualenv-1.10.1-4.el7.noarch already installed and latest version
  20. Package python-tools-2.7.5-58.el7.x86_64 already installed and latest version
  21. Package python2-pip-8.1.2-5.el7.noarch already installed and latest version
  22. Nothing to do
  23. Creating virtual environment...
  24. Installing Python packages...
  25. Had a problem while installing Python packages.

  26. pip prints the following errors:
  27. =====================================================
  28. Collecting argparse==1.4.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 11))
  29. Downloading https://pypi.doubanio.com/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
  30. Collecting pycparser==2.14 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 17))
  31. Downloading https://pypi.doubanio.com/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz (223kB)
  32. Collecting asn1crypto==0.22.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 21))
  33. Downloading https://pypi.doubanio.com/packages/97/ba/7e8117d8efcee589f4d96dd2b2eb1d997f96d27d214cf2b7134ad8acf6ab/asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
  34. Collecting cffi==1.10.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 24))
  35. Downloading https://pypi.doubanio.com/packages/50/85/d74d06ac09fc2deb3d9bd6d6aca4ca13d82b8118c04494cd0e84fcd81624/cffi-1.10.0-cp27-cp27mu-manylinux1_x86_64.whl (392kB)
  36. Collecting ConfigArgParse==0.12.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 61))
  37. Downloading https://pypi.doubanio.com/packages/17/8d/4a41f11b0971017c7001f118be8003da8f7b96b010c66cd792b76658d1e1/ConfigArgParse-0.12.0.tar.gz (41kB)
  38. Collecting configobj==5.0.6 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 63))
  39. Downloading https://pypi.doubanio.com/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
  40. Collecting cryptography==2.0.2 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 65))
  41. Downloading https://pypi.doubanio.com/packages/b2/c3/713d3a0c964acd704ee2b8521f51706aa8053fc5addbcd43cb03d74819e7/cryptography-2.0.2-cp27-cp27mu-manylinux1_x86_64.whl (2.2MB)
  42. Collecting enum34==1.1.2 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 96))
  43. Downloading https://pypi.doubanio.com/packages/6f/e9/08fd439384b7e3d613e75a6c8236b8e64d90c47d23413493b38d4229a9a5/enum34-1.1.2.tar.gz (46kB)
  44. Collecting funcsigs==1.0.2 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 99))
  45. Downloading https://pypi.doubanio.com/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
  46. Collecting idna==2.5 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 102))
  47. Downloading https://pypi.doubanio.com/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl (55kB)
  48. ------省略------
  49. Downloading https://pypi.doubanio.com/packages/ac/93/b4cd538d31adacd07f83013860db6b88d78755af1f3fefe68ec22d397e7b/pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
  50. Collecting pyparsing==2.1.8 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 132))
  51. Downloading https://pypi.doubanio.com/packages/85/b9/188515f35f78533b3f82966a2c3f1a71a86df8b801367ee75a77191a861d/pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
  52. Collecting pyRFC3339==1.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 141))
  53. Downloading https://pypi.doubanio.com/packages/9b/0a/decfa17e7707afca17d6e9595ff5c79c1c71c74063ad95576f897ed3a9f1/pyRFC3339-1.0-py2.py3-none-any.whl
  54. Collecting python-augeas==0.5.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 144))
  55. Downloading https://pypi.doubanio.com/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz (90kB)
  56. Collecting pytz==2015.7 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 146))
  57. Downloading https://pypi.doubanio.com/packages/c0/28/973f0382c803b21734cd7e97e0590928148ee21b1cbe8f7fed8b506204fb/pytz-2015.7-py2.py3-none-any.whl (476kB)
  58. Collecting requests==2.12.1 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 160))
  59. Downloading https://pypi.doubanio.com/packages/9b/31/e9925a2b9a06f97c3450bac6107928d3533bfe64ca5615442504104321e8/requests-2.12.1-py2.py3-none-any.whl (574kB)
  60. Collecting six==1.10.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 163))
  61. Downloading https://pypi.doubanio.com/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
  62. Collecting traceback2==1.4.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 166))
  63. Downloading https://pypi.doubanio.com/packages/17/0a/6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e/traceback2-1.4.0-py2.py3-none-any.whl
  64. Collecting unittest2==1.1.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 169))
  65. Downloading https://pypi.doubanio.com/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl (96kB)
  66. Collecting zope.component==4.2.2 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 172))
  67. Downloading https://pypi.doubanio.com/packages/4c/c4/3f77127c876f49af478e8ea4dc223cda17730bb273c0d1606a4114c64008/zope.component-4.2.2.tar.gz (546kB)
  68. Collecting zope.event==4.1.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 174))
  69. Downloading https://pypi.doubanio.com/packages/0e/87/75e3d62a3506953c2e56d15a150de31e5d92310e87db2c8b102dc01b0b8e/zope.event-4.1.0.tar.gz (476kB)
  70. Collecting zope.interface==4.1.3 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 176))
  71. Downloading https://pypi.doubanio.com/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz (141kB)
  72. Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 202))
  73. Downloading https://pypi.doubanio.com/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
  74. Collecting certbot==0.21.1 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 206))
  75. Could not find a version that satisfies the requirement certbot==0.21.1 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 206)) (from versions: 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.18.1, 0.18.2, 0.19.0, 0.20.0)
  76. No matching distribution found for certbot==0.21.1 (from -r /tmp/tmp.Kw7q03r1KF/letsencrypt-auto-requirements.txt (line 206))
  77. =====================================================

  78. Certbot has problem setting up the virtual environment.

  79. We were not be able to guess the right solution from your pip
  80. output.

  81. Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
  82. for possible solutions.
  83. You may also find some support resources at https://certbot.eff.org/support/ .</font>
复制代码

使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

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

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表