2019-07-14

certbot更新

どうしたどうした。

Date: Sun, 14 Jul 2019 04:03:00 +0900
From: Cron Daemon
To: root
Subject: Cron <root@kamui> /usr/local/bin/certbot renew

/bin/sh: /usr/local/bin/certbot: not found

こないだのpkg upgradeで版番号がサフィックスについた本体へのsymlinkが消えたっぽい。

$ fgrep certbot /var/log/messages
Jul 10 01:08:52 kamui pkg: py27-certbot upgraded: 0.31.0,1 -> 0.35.1,1 
$ 

せっかくなので、python-2.7なcertbotからpython-3.6に乗り換え。もはや2.7使ってたのcertbotだけだったので。てかpython-3.7なcertbotなpkgはまだないのか。

$ (cd /usr/local/etc; sudo tar cfz ~/letsencrypt.tar.gz letsencrypt)
Password:
$ sudo pkg delete py27-certbot
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
       py27-certbot-0.35.1,1

Number of packages to be removed: 1

The operation will free 3 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling py27-certbot-0.35.1,1...
[1/1] Deleting files for py27-certbot-0.35.1,1: 100%
$ sudo pkg autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 27 packages:

Installed packages to be REMOVED:
       py27-acme-0.35.1,1
       py27-cryptography-2.6.1
[略]
       py27-setuptools-41.0.1
       python27-2.7.16_1

Number of packages to be removed: 27

The operation will free 100 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/27] Deinstalling py27-acme-0.35.1,1...
[略]
[27/27] Deleting files for python27-2.7.16_1: 100%
$ sudo pkg install py36-certbot
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
Fetching packagesite.txz: 100%    6 MiB   2.2MB/s    00:03    
Processing entries: 100%
FreeBSD repository update completed. 31934 packages processed.
All repositories are up to date.
The following 25 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
       py36-certbot: 0.35.1,1
       py36-openssl: 18.0.0
[略]
       py36-configargparse: 0.14.0

Number of packages to be installed: 25

The process will require 31 MiB more space.
8 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/25] Fetching py36-certbot-0.35.1,1.txz: 100%  458 KiB 468.8kB/s    00:01    
[略]
[25/25] Fetching py36-configargparse-0.14.0.txz: 100%   24 KiB  24.5kB/s    00:01    
Checking integrity... done (0 conflicting)
[1/25] Installing py36-setuptools-41.0.1...
[略]
[25/25] Extracting py36-certbot-0.35.1,1: 100%
Message from py36-urllib3-1.22,1:

Be careful, support of IPv6 is broken with PySocks 1.5.7.
Message from py36-certbot-0.35.1,1:
[略]
===========================================================================
$ 

symlinkも復活。ちゃんと更新できるかは8月末までわからんけど。

$ ls -l /usr/local/bin/certbot*
lrwxr-xr-x  1 root  wheel   11 Jul 11 21:52 /usr/local/bin/certbot -> certbot-3.6
-rwxr-xr-x  1 root  wheel  393 Jul 11 21:52 /usr/local/bin/certbot-3.6
$ sudo /usr/local/bin/certbot renew
Password:
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /usr/local/etc/letsencrypt/renewal/www.noroi.jp.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The following certs are not due for renewal yet:
  /usr/local/etc/letsencrypt/live/www.noroi.jp/fullchain.pem expires on 2019-08-23 (skipped)
No renewals were attempted.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$

0 件のコメント:

コメントを投稿