V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
nicoljiang
V2EX  ›  全球工单系统

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

  •  
  •   nicoljiang · 2017-12-29 21:14:17 +08:00 · 6585 次点击
    这是一个创建于 2281 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 之后一路顺利。。。)
    10 条回复    2020-10-12 18:12:41 +08:00
    Quaintjade
        1
    Quaintjade  
       2017-12-29 21:32:27 +08:00
    CentOS 对吧?版本依赖的坑,yum 安装就掉坑了。
    建议用 pip 来安装,提示哪个软件缺失或版本不对就 pip install --upgrade XXXXX
    Fris
        2
    Fris  
       2017-12-29 21:52:48 +08:00 via iPad
    用的 acme.sh ,很好用👌
    aru
        3
    aru  
       2017-12-29 21:53:01 +08:00
    nicoljiang
        4
    nicoljiang  
    OP
       2017-12-29 22:10:25 +08:00
    @Quaintjade
    @Fris
    @aru

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

    阿里云 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
        6
    Keyblade  
       2017-12-30 07:35:07 +08:00
    之前用阿里云 Ubuntu 也是掉坑最后还没解决,换 CentOS 直接就过了
    nicoljiang
        7
    nicoljiang  
    OP
       2018-01-04 14:07:11 +08:00
    @randyzhao 多谢啊!!
    webgrin
        8
    webgrin  
       2018-02-14 11:17:40 +08:00
    同样阿里云 CentOS 7.3 安装 certbot 报错,用腾讯云同样版本镜像安装就完全没有问题,打算换 CentOS 7.4 试试。
    nicoljiang
        9
    nicoljiang  
    OP
       2018-02-28 17:00:56 +08:00
    @webgrin 我 7.2 7.3 7.4 都试了。感觉应该是有什么底层区别~
    andytao
        10
    andytao  
       2020-10-12 18:12:41 +08:00
    我也是遇到这个问题,一筹莫展呀:
    ImportError: cannot import name UnrewindableBodyError
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1752 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:36 · PVG 00:36 · LAX 09:36 · JFK 12:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.