工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
nicoljiang

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

  •  
  •   nicoljiang · Dec 29, 2017 · 7586 views
    This topic created in 3232 days ago, the information mentioned may be changed or developed.
    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 replies  •  2020-10-12 18:12:41 +08:00
    Quaintjade
    Quaintjade
    Dec 29, 2017
    1
    CentOS 对吧?版本依赖的坑,yum 安装就掉坑了。
    建议用 pip 来安装,提示哪个软件缺失或版本不对就 pip install --upgrade XXXXX
    Fris
    Fris
    Dec 29, 2017 via iPad
    2
    用的 acme.sh ,很好用👌
    aru
    aru
    Dec 29, 2017
    3
    nicoljiang
    nicoljiang
    OP
    Dec 29, 2017
    4
    @Quaintjade
    @Fris
    @aru

    谢谢。。🙏
    randyzhao
    randyzhao
    Dec 30, 2017❤️1
    5
    附上我当时安装时记的笔记。。。 希望有帮助

    阿里云 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
    Keyblade
    Dec 30, 2017
    6
    之前用阿里云 Ubuntu 也是掉坑最后还没解决,换 CentOS 直接就过了
    nicoljiang
    nicoljiang
    OP
    Jan 4, 2018
    7
    @randyzhao 多谢啊!!
    webgrin
    webgrin
    Feb 14, 2018
    8
    同样阿里云 CentOS 7.3 安装 certbot 报错,用腾讯云同样版本镜像安装就完全没有问题,打算换 CentOS 7.4 试试。
    nicoljiang
    nicoljiang
    OP
    Feb 28, 2018
    9
    @webgrin 我 7.2 7.3 7.4 都试了。感觉应该是有什么底层区别~
    9dP06m83vIV00l72
    9dP06m83vIV00l72
    Oct 12, 2020
    10
    我也是遇到这个问题,一筹莫展呀:
    ImportError: cannot import name UnrewindableBodyError
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1495 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 22:39 · PVG 06:39 · LAX 14:39 · JFK 17:39
    ♥ Do have faith in what you're doing.