Forums

Something went wrong :-( Error code: 502-backend

Hello, I haven't been using my website for a long time, but now after enabling it, it gives me the following error:

Something went wrong :-( Something went wrong while trying to load this site; please try again later. Debugging tips If this is your site, and you just reloaded it, then the problem might simply be that it hasn't loaded up yet. Try refreshing this page and see if this message disappears. If you keep getting this message, you should check your site's server and error logs for any messages. Error code: 502-backend

I am using Django and the error log file (Web tag in my pythonanywhere account) does not show me anything

Check your server log.

This is the message

2023-02-26 16:11:27 *** Starting uWSGI 2.0.19.1 (64bit) on [Sun Feb 26 16:11:27 2023] ***

2023-02-26 16:11:27 compiled with version: 9.3.0 on 27 May 2021 21:02:35

2023-02-26 16:11:27 os: Linux-5.15.0-1021-aws #25~20.04.1-Ubuntu SMP Thu Sep 22 13:59:08 UTC 2022

2023-02-26 16:11:27 nodename: green-liveweb13

2023-02-26 16:11:27 machine: x86_64

2023-02-26 16:11:27 clock source: unix

2023-02-26 16:11:27 pcre jit disabled

2023-02-26 16:11:27 detected number of CPU cores: 4

2023-02-26 16:11:27 current working directory: /home/break631

2023-02-26 16:11:27 detected binary path: /usr/local/bin/uwsgi

2023-02-26 16:11:27 *** dumping internal routing table ***

2023-02-26 16:11:27 [rule: 0] subject: path_info regexp: .svgz$ action: addheader:Content-Encoding:gzip

2023-02-26 16:11:27 *** end of the internal routing table ***

2023-02-26 16:11:27 chdir() to /home/break631/

2023-02-26 16:11:27 your processes number limit is 256

2023-02-26 16:11:27 your memory page size is 4096 bytes

2023-02-26 16:11:27 detected max file descriptor number: 123456

2023-02-26 16:11:27 building mime-types dictionary from file /etc/mime.types...

2023-02-26 16:11:27 567 entry found

2023-02-26 16:11:27 lock engine: pthread robust mutexes

2023-02-26 16:11:27 thunder lock: disabled (you can enable it with --thunder-lock)

2023-02-26 16:11:27 uwsgi socket 0 bound to UNIX address /var/sockets/www.l2phoenix.website/socket fd 3

2023-02-26 16:11:27 Python version: 3.6.13 (default, May 27 2021, 19:37:37) [GCC 9.3.0]

2023-02-26 16:11:27 Set PythonHome to /home/break631/l2web/myvenv

2023-02-26 16:11:27 Fatal Python error: Py_Initialize: Unable to get the locale encoding

2023-02-26 16:11:27 ModuleNotFoundError

2023-02-26 16:11:27 :

2023-02-26 16:11:27 No module named 'encodings'

2023-02-26 16:11:27

2023-02-26 16:11:27

2023-02-26 16:11:27 Current thread 0x

2023-02-26 16:11:27 00007f2d0bfab780

2023-02-26 16:11:27 (most recent call first):

2023-02-26 16:11:27 !!! uWSGI process 1 got Segmentation Fault !!!

2023-02-26 16:11:27 *** backtrace of 1 #012/usr/local/bin/uwsgi(uwsgi_backtrace+0x2e) [0x55b7e9f9e90e]#012/usr/local/bin/uwsgi(uwsgi_segfault+0x27) [0x55b7e9f9ecf7]#012/lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f2d0dec4210]#012/lib/x86_64-linux-gnu/libc.so.6(abort+0x213) [0x7f2d0dea3941]#012/usr/local/lib/libpython3.6m.so.1.0(Py_FatalError+0x99) [0x7f2d0bd79719]#012/usr/local/lib/libpython3.6m.so.1.0(+0x184b24) [0x7f2d0bd79b24]#012/usr/local/lib/libpython3.6m.so.1.0(_Py_InitializeEx_Private+0x238) [0x7f2d0bd7a428]#012/usr/lib/uwsgi/python36_plugin.so(uwsgi_python_init+0x144) [0x7f2d0bf2f124]#012/usr/local/bin/uwsgi(uwsgi_start+0x5af) [0x55b7e9f9ff6f]#012/usr/local/bin/uwsgi(uwsgi_setup+0x127c) [0x55b7e9fa221c]#012/usr/local/bin/uwsgi(main+0xf) [0x55b7e9f4db3f]#012/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f2d0dea50b3]#012/usr/local/bin/uwsgi(_start+0x2e) [0x55b7e9f4db7e]#012 end of backtrace ***

2023-02-26 16:11:27 VACUUM: unix socket /var/sockets/www.l2phoenix.website/socket removed.

The source code of the project has not been modified

We updated your account from the old, deprecated system image that you were using and so now you need to rebuild the virtualenv that you are using for your web app: https://help.pythonanywhere.com/pages/ChangingSystemImage/#virtualenvs