Let's encrypt 遇到 'ascii' codec can't decode byte 0xe5 的解法
Let's encrpyt在更新续期的时候,遇到下面错误的信息:
Attempting to renew cert (shiro.weiyuanzhuo.cc) from /etc/letsencrypt/renewal/shiro.weiyuanzhuo.cc.conf produced an unexpected error: 'ascii' codec can't decode byte 0xe8 in position 2: ordinal not in range(128). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/shiro.weiyuanzhuo.cc/fullchain.pem (failure)
要怎么解决如何?
我在看到有关一篇UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 2: ordinal not in range(128),但是解决方法一样的。
使用以下命令:
grep -r -P '[^\x00-\x7f]' /etc/apache2 /etc/letsencrypt /etc/nginx
发现问题:
/etc/nginx/conf.d/shiro.conf: # 解决 413 Request Entity Too Large
/etc/nginx/nginx.conf: worker_connections 10240; # 并发十几倍提高快
刪除这些编号,在重新执行 Let's encrypt script 就可以通过啦~