Forums

VACUUM: unix socket / socket removed

I have 4 web apps. 2 of them are working and the other 2 are not and have this in the server log. The error log is not reporting anything. All 4 are set up similarly to each other.

1 is running Python 2.7 and Flask. (Is working)

3 are running Python 3.6 and Flask. (1 is working and the other 2 have the below message)


2022-11-30 19:10:51 uwsgi socket 0 bound to UNIX address /var/sockets/www.xxxx.com/socket fd 3

2022-11-30 19:10:51 Python version: 3.6.13 (default, May 27 2021, 19:37:37) [GCC 9.3.0]

2022-11-30 19:10:51 Set PythonHome to /home/xxxxx/.virtualenvs/xxxxxxx

2022-11-30 19:10:51 Fatal Python error: Py_Initialize: Unable to get the locale encoding

2022-11-30 19:10:51 ModuleNotFoundError

2022-11-30 19:10:51 :

2022-11-30 19:10:51 No module named 'encodings'

2022-11-30 19:10:51

2022-11-30 19:10:51

2022-11-30 19:10:51 Current thread 0x

2022-11-30 19:10:51 00007f6126170780

2022-11-30 19:10:51 (most recent call first):

2022-11-30 19:10:51 !!! uWSGI process 1 got Segmentation Fault !!!

2022-11-30 19:10:51 *** backtrace of 1 #012/usr/local/bin/uwsgi(uwsgi_backtrace+0x2e) [0x56553cf0390e]#012/usr/local/bin/uwsgi(uwsgi_segfault+0x27) [0x56553cf03cf7]#012/lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f6128089210]#012/lib/x86_64-linux-gnu/libc.so.6(abort+0x213) [0x7f6128068941]#012/usr/local/lib/libpython3.6m.so.1.0(Py_FatalError+0x99) [0x7f6125f3e719]#012/usr/local/lib/libpython3.6m.so.1.0(+0x184b24) [0x7f6125f3eb24]#012/usr/local/lib/libpython3.6m.so.1.0(_Py_InitializeEx_Private+0x238) [0x7f6125f3f428]#012/usr/lib/uwsgi/python36_plugin.so(uwsgi_python_init+0x144) [0x7f61260f4124]#012/usr/local/bin/uwsgi(uwsgi_start+0x5af) [0x56553cf04f6f]#012/usr/local/bin/uwsgi(uwsgi_setup+0x127c) [0x56553cf0721c]#012/usr/local/bin/uwsgi(main+0xf) [0x56553ceb2b3f]#012/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f612806a0b3]#012/usr/local/bin/uwsgi(_start+0x2e) [0x56553ceb2b7e]#012 end of backtrace *** 2022-11-30 19:10:51 VACUUM: unix socket /var/sockets/www.XXX.com/socket removed.


Any advice or solutions?

We switched your account's system image today because we deprecated the one that you were using. We have sent multiple email warnings about this over the last year. You will need to rebuild the virtualenvs that you are using for your web apps that are broken and maybe switch the Python version in cases where the Python version you were using is not available anymore: https://help.pythonanywhere.com/pages/ChangingSystemImage/