《Disney +》 迪士尼、Marvel、彼思、星球大戰…  80年代動作巨星將於5月20日在《決勝時刻®:黑色行動冷戰》與《現代戰域™》爆炸性登場   世界最高峰的世界摩托車錦標賽「MotoGP21」決定發售!PS4盒裝版預約也開跑囉!   《Star Wars: Knights of the Old Republic – Remake》──為PlayStation 5重製的傳奇   EPOS推出全方位密閉式有限電競耳麥「H3」!   「必備精選優惠」進駐PlayStation Store   《Away: The Survival Series》將於今夏末登陸PlayStation 5   日本最大數位教育中心「REDEE」開設體驗VR的HTC「VIVE」專區!   全球首款!專為躺著使用設計的VR設備「HalfDive」亮相 

Let’s encrypt 遇到 ‘ascii’ codec can’t decode byte 0xe5 的解法

商業

Let's encrpyt 在更新憑證的時候,遇到下述錯誤訊息:

Attempting to renew cert (example.com) from /etc/letsencrypt/renewal/example.com.conf produced an unexpected error: 'ascii' codec can't decode byte 0xe5 in position 2: ordinal not in range(128). Skipping.

要怎麼解決呢?

Let's encrypt 遇到 'ascii' codec can't decode byte 0xe5 的解法

錯誤訊息主要是這行:

an unexpected error: 'ascii' codec can't decode byte 0xe5 in position 2: ordinal not in range(128)

此篇 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 2: ordinal not in range(128) 是 0xe7,但是解法都一樣

解法

  1. $ sudo grep -r -P '[^x00-x7f]' /etc/apache2 /etc/letsencrypt /etc/nginx
  2. 將看到的內容,全部進去檔案刪除
  3. 刪除這些編碼後,在重新執行 Let's encrypt script 就可以通過囉~
Tsung

隨機商業新聞

Disney Plus