刚刚准备把 SSL 的前端服务器转移到阿里云来, certbot 一下,问题一大堆啊。。。。

2017-12-29 21:14:17 +08:00
 nicoljiang
certbot pkg_resources.DistributionNotFound: The 'urllib3<1.23,>=1.21.1' distribution was not found and is required by requests

ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.

ImportError: cannot import name UnrewindableBodyError

ImportError: No module named 'requests.packages.urllib3'

AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

ImportError: No module named OpenSSL

问题还在继续。。。

感觉不太正常啊,有没有填过坑的朋友?(之前在 tx 云 真的就是 yum 之后一路顺利。。。)
6612 次点击
所在节点    全球工单系统
10 条回复
Quaintjade
2017-12-29 21:32:27 +08:00
CentOS 对吧?版本依赖的坑,yum 安装就掉坑了。
建议用 pip 来安装,提示哪个软件缺失或版本不对就 pip install --upgrade XXXXX
Fris
2017-12-29 21:52:48 +08:00
用的 acme.sh ,很好用👌
aru
2017-12-29 21:53:01 +08:00
nicoljiang
2017-12-29 22:10:25 +08:00
@Quaintjade
@Fris
@aru

谢谢。。🙏
randyzhao
2017-12-30 03:23:08 +08:00
附上我当时安装时记的笔记。。。 希望有帮助

阿里云 CentOS 7.3


cd /root
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto

wget https://bootstrap.pypa.io/ez_setup.py -O - | python
easy_install pip
pip install virtualenv

/root/certbot-auto --nginx --no-bootstrap
Enter your email: ....

yum install -y crontabs.noarch
vi /etc/crontab
0 1 * * * /root/certbot-auto renew
0 0 1 * * /root/certbot-auto renew --force-renewal
5 0 1 * * systemctl restart ngi
Keyblade
2017-12-30 07:35:07 +08:00
之前用阿里云 Ubuntu 也是掉坑最后还没解决,换 CentOS 直接就过了
nicoljiang
2018-01-04 14:07:11 +08:00
@randyzhao 多谢啊!!
webgrin
2018-02-14 11:17:40 +08:00
同样阿里云 CentOS 7.3 安装 certbot 报错,用腾讯云同样版本镜像安装就完全没有问题,打算换 CentOS 7.4 试试。
nicoljiang
2018-02-28 17:00:56 +08:00
@webgrin 我 7.2 7.3 7.4 都试了。感觉应该是有什么底层区别~
andytao
2020-10-12 18:12:41 +08:00
我也是遇到这个问题,一筹莫展呀:
ImportError: cannot import name UnrewindableBodyError

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/418727

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX