Let’s Encryptの自動更新エラーは設定ファイルを見直す

エラー内容

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/xxx.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for xxx.com
Cleaning up challenges
Attempting to renew cert (xxx.com) from /etc/letsencrypt/renewal/xxx.com.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Input the webroot for xxx.com:. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/xxx.com/fullchain.pem (failure)

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

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/xxx.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

原因

設定ファイルの記述ミス。
※設定ファイルのパスは「/etc/letsencrypt/renewal」。

間違い
[renewalparams]
authenticator = webroot

[webroot_map]
xxx.com = /var/www/html

正しい
[renewalparams]
authenticator = webroot

[[webroot_map]]
xxx.com = /var/www/html

webroot_mapのカッコは二重が正しい。

備考

成功ログ
The following certs were successfully renewed:
/etc/letsencrypt/live/xxx.com/fullchain.pem (success)

失敗ログ
The following certs could not be renewed:
/etc/letsencrypt/live/xxx.com/fullchain.pem (failure)