2
1

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.

Let's Encrypt の自動更新エラー

Posted at

#Let's Encrypt のエラーに遭遇したとき

certbot-auto renew

これでエラーになる。エラーメッセージは以下。

Attempting to renew cert (ドメイン名) from /etc/letsencrypt/renewal/ドメイン名.conf produced an unexpected error: 'ascii' codec can't encode character u'\u306e' in position 790: ordinal not in range(128). Skipping.

position 790?

ぐぐってみるとPythonのエラーメッセージっぽい。

エラーメッセージのascii codec can't encode character u'\u306e'

アスキーコードのu306eが問題だと!このコードはなんだ?

#「の」!

「の」という文字ですよこれ。

/etc/letsencrypt/renewal/ドメイン名.conf
ここみても、「の」なんてないし、、、

?どうやら、certbot-autoは、nginxの設定を見ている模様。

/etc/nginx/

このあたりに書いてある日本語のコメントすべて削除するとcertbot-auto renew無事通過。
コメントなのに。。。
日本語、マルチバイトって厄介です。

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?