Forums

Django Admin Error, Error code: 502-backend

Everything on the website (so far) works, apart from the admin panel, which throws the error above whenever I try to log in. The server log shows this:

2020-04-02 10:17:35 !!! uWSGI process 13 got Segmentation Fault !!!
2020-04-02 10:17:35 *** backtrace of 13 ***#012corkran corkran.pythonanywhere.com uWSGI worker 1(uwsgi_backtrace+0x2c) [0x46529c]#012corkran corkran.pythonanywhere.com uWSGI worker 1(uwsgi_segfault+0x21) [0x465661]#012/lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f3f0a1c24b0]#012/usr/lib/libpython3.7m.so.1.0(+0xe7bbf) [0x7f3f06ca9bbf]#012/usr/lib/libpython3.7m.so.1.0(+0x13c441) [0x7f3f06cfe441]#012/usr/lib/libpython3.7m.so.1.0(+0xf8283) [0x7f3f06cba283]#012/usr/lib/libpython3.7m.so.1.0(_PyObject_FastCallKeywords+0x104) [0x7f3f06c5c024]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x32aa) [0x7f3f06c2ed2a]#012/usr/lib/libpython3.7m.so.1.0(+0x688c0) [0x7f3f06c2a8c0]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x7060) [0x7f3f06c32ae0]#012/usr/lib/libpython3.7m.so.1.0(+0x688c0) [0x7f3f06c2a8c0]#012/usr/lib/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0x2be) [0x7f3f06c5b8ae]#012/usr/lib/libpython3.7m.so.1.0(_PyObject_Call_Prepend+0xcd) [0x7f3f06c5ca2d]#012/usr/lib/libpytho
2020-04-02 10:17:36 DAMN ! worker 1 (pid: 13) died :( trying respawn ...
2020-04-02 10:17:36 Respawned uWSGI worker 1 (new pid: 16)
2020-04-02 10:17:36 spawned 2 offload threads for uWSGI worker 1
2020-04-02 10:17:37 Thu Apr  2 10:17:37 2020 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /favicon.ico (ip 10.0.0.121) !!!
2020-04-02 10:17:37 Thu Apr  2 10:17:37 2020 - uwsgi_response_writev_headers_and_body_do(): Broken pipe [core/writer.c line 306] during GET /favicon.ico (10.0.0.121)
2020-04-02 10:17:37 announcing my loyalty to the Emperor...

I saw seen a similar topic here, and was wondering if you could help me out (I'm using Django 3.0.4, if that's relevant).

If you are using Django 3, you need to be on our latest system image. Let us know if you want us to switch you over. You would have to rebuild any virtualenvs.

Yes, I'd like for you to switch me over (I did however ask for the same thing in the email I sent to Filip, so I suspect it's already underway). Could you let me know when I've been switched over?

Yeah. It has already been done.

Thanks, it works perfectly now.