《Disney +》 迪士尼、Marvel、彼思、星球大戰…  PS Store推出「酷玩新年」優惠!也有PS5版遊戲!   《Returnal》全新遊戲畫面帶你探索萬劫深淵   制作您的專比屬比卡超印章!將印章和原子筆合體的「Pokémon PON Name Pen」開始接受預約!   鬼滅對戰動作遊戲《鬼滅之刃火之神血風譚》最新情報 更新後可使在對戰中使用鬼   參見《Call of Duty: Vanguard》多人遊玩的四位特戰兵   透過新發表《Crash Bandicoot 4: It’s About Time》深入探討見識PS5強化功能   PS5 四月更新推出新的儲存空間選項和社交功能   看《NieR Replicant ver.1.22474487139…》如何改編〈小美人魚〉篇章 

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

隨機商業新聞

Gearbest