My Django website suddenly stopped working and I don't know how to go about fixing it. It has been working fine for weeks now and earlier on today but stopped a few hours ago. Sometimes I get a "Something Went Wrong :-(" screen with this error code/message: Error code: 504-loadbalancer
The site keeps loading. I have tried reloading the site and disabling and reenabling the site from the web app. My usage is at 27%. I checked the server error logs and there isn't anything.
The only thing is from the server.log:
2024-12-16 02:35:22 uwsgi_master_manage_emperor()/read(): Bad file descriptor [core/emperor.c line 2442]
2024-12-16 02:35:22 lost connection with my emperor !!!
2024-12-16 02:35:22 VACUUM: unix socket /var/sockets/fingolfin7.pythonanywhere.com/socket removed.
2024-12-16 02:35:25 *** Starting uWSGI 2.0.20 (64bit) on [Mon Dec 16 01:35:23 2024] ***
2024-12-16 02:35:25 compiled with version: 9.4.0 on 22 July 2022 18:35:26
2024-12-16 02:35:25 os: Linux-6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024
2024-12-16 02:35:25 nodename: blue-liveweb6
2024-12-16 02:35:25 machine: x86_64
2024-12-16 02:35:25 clock source: unix
2024-12-16 02:35:25 pcre jit disabled
2024-12-16 02:35:25 detected number of CPU cores: 4
2024-12-16 02:35:25 current working directory: /home/Fingolfin7
2024-12-16 02:35:25 detected binary path: /usr/local/bin/uwsgi
2024-12-16 02:35:25 *** dumping internal routing table ***
2024-12-16 02:35:25 [rule: 0] subject: path_info regexp: .svgz$ action: addheader:Content-Encoding:gzip
2024-12-16 02:35:25 *** end of the internal routing table ***
2024-12-16 02:35:25 chdir() to /home/Fingolfin7/
2024-12-16 02:35:25 your processes number limit is 256
2024-12-16 02:35:25 your memory page size is 4096 bytes
2024-12-16 02:35:25 detected max file descriptor number: 123456
2024-12-16 02:35:25 building mime-types dictionary from file /etc/mime.types...
2024-12-16 02:35:25 567 entry found
2024-12-16 02:35:25 lock engine: pthread robust mutexes
2024-12-16 02:35:25 thunder lock: disabled (you can enable it with --thunder-lock)
2024-12-16 02:35:25 uwsgi socket 0 bound to UNIX address /var/sockets/fingolfin7.pythonanywhere.com/socket fd 3
2024-12-16 02:35:25 Python version: 3.10.5 (main, Jul 22 2022, 17:09:35) [GCC 9.4.0]
2024-12-16 02:35:25 PEP 405 virtualenv detected: /home/Fingolfin7/.virtualenvs/AutumnVenv
2024-12-16 02:35:25 Set PythonHome to /home/Fingolfin7/.virtualenvs/AutumnVenv
2024-12-16 02:35:25 *** Python threads support is disabled. You can enable it with --enable-threads ***
2024-12-16 02:35:25 Python main interpreter initialized at 0x605d73584e90
2024-12-16 02:35:25 your server socket listen backlog is limited to 100 connections
2024-12-16 02:35:25 your mercy for graceful operations on workers is 60 seconds
2024-12-16 02:35:25 setting request body buffering size to 65536 bytes
2024-12-16 02:35:25 mapped 334256 bytes (326 KB) for 1 cores
2024-12-16 02:35:25 *** Operational MODE: single process ***
2024-12-16 02:35:25 initialized 38 metrics
2024-12-16 02:35:25 WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x605d73584e90 pid: 1 (default app)
2024-12-16 02:35:25 *** uWSGI is running in multiple interpreter mode ***
2024-12-16 02:35:25 gracefully (RE)spawned uWSGI master process (pid: 1)
2024-12-16 02:35:25 spawned uWSGI worker 1 (pid: 2, cores: 1)
2024-12-16 02:35:25 metrics collector thread started
2024-12-16 02:35:25 spawned 2 offload threads for uWSGI worker 1
2024-12-16 02:40:38 Mon Dec 16 02:40:37 2024 - *** HARAKIRI ON WORKER 1 (pid: 2, try: 1) ***
2024-12-16 02:40:38 Mon Dec 16 02:40:37 2024 - HARAKIRI !!! worker 1 status !!!
2024-12-16 02:40:38 Mon Dec 16 02:40:37 2024 - HARAKIRI [core 0] 10.0.5.105 - GET / since 1734312936
2024-12-16 02:40:38 Mon Dec 16 02:40:37 2024 - HARAKIRI !!! end of worker 1 status !!!
2024-12-16 02:40:38 DAMN ! worker 1 (pid: 2) died, killed by signal 9 :( trying respawn ...
2024-12-16 02:40:38 Respawned uWSGI worker 1 (new pid: 7)
2024-12-16 02:40:38 spawned 2 offload threads for uWSGI worker 1