3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS6.xでLet'sEncrypt運用してたら、自動更新できなくなっていた件について、

Last updated at Posted at 2020-02-04

##状況
Let'sEncryptで運用していても、エラーメッセージが表示されて、自動更新できない。

WARNING: couldn't find Python 3.5+ to check for updates.
Traceback (most recent call last):
  File "<stdin>", line 16, in <module>
  File "/usr/lib64/python3.4/distutils/version.py", line 58, in __lt__
    c = self._cmp(other)
  File "/usr/lib64/python3.4/distutils/version.py", line 176, in _cmp
    if self.version != other.version:
AttributeError: 'StrictVersion' object has no attribute 'version'

参考情報

CentOS6系にPython3を入れる方法

ポイント

CentOS(7系含む)ではパッケージ管理のYumコマンドがデフォルトインストールのPython2.xで動いているので、デフォルトインストールされているpythonのパスを変えてしまうようなエイリアス設定はしない方が良い

###対応策
参考情報に沿って、Python3.5系以上をインストールします。

###python3のエイリアスのみ変更します。
変更前

$ ls -al /usr/bin/python*
lrwxrwxrwx 1 root root     9  7月  5 13:07 2018 /usr/bin/python3 -> python3.4

変更後

lrwxrwxrwx 1 root root    18  2月  4 09:51 2020 /usr/bin/python3 -> /usr/bin/python3.5

もう一度sslのアップデートを実行

Installing Python packages...
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for staging.madoline.on-the-slope.com
Using the webroot path /var/www/html for all unmatched domains.
Waiting for verification...
Cleaning up challenges

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:

無事インストールできました。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?