My two apps worked very well for two years, and it suddenly showed something is wrong
" If you keep getting this message, you should check your site's server and error logs for any messages.
Error code: 502-backend"
I did not see anything on error logs, but server log said as below. I googled a little bit, somebody said about venv rebuild, but why my venv suddenly failed?
2022-11-30 16:35:51 Fatal Python error: Py_Initialize: Unable to get the locale encoding 2022-11-30 16:35:51 ModuleNotFoundError 2022-11-30 16:35:51 : 2022-11-30 16:35:51 No module named 'encodings' 2022-11-30 16:35:51 2022-11-30 16:35:51 2022-11-30 16:35:51 Current thread 0x 2022-11-30 16:35:51 00007f926aa3b780 2022-11-30 16:35:51 (most recent call first): 2022-11-30 16:35:51 !!! uWSGI process 1 got Segmentation Fault !!!