Forums

Website stopped working suddenly

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

Same

We are also experiencing the same issue:

2024-12-16 04:27:36 DAMN ! worker 1 (pid: 64) died, killed by signal 9 :( trying respawn ... 2024-12-16 04:27:36 Respawned uWSGI worker 1 (new pid: 70) 2024-12-16 04:27:36 spawned 2 offload threads for uWSGI worker 1 2024-12-16 04:27:36 Mon Dec 16 04:27:36 2024 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /favicon.ico (ip 10.0.5.105) !!! 2024-12-16 04:27:36 Mon Dec 16 04:27:36 2024 - uwsgi_response_writev_headers_and_body_do(): Broken pipe [core/writer.c line 306] during GET /favicon.ico (10.0.5.105) 2024-12-16 04:27:36 announcing my loyalty to the Emperor... 2024-12-16 04:29:22 Mon Dec 16 04:29:22 2024 - received message 0 from emperor 2024-12-16 04:29:22 SIGINT/SIGTERM received...killing workers... 2024-12-16 04:29:31 Mon Dec 16 04:29:30 2024 - *** HARAKIRI ON WORKER 2 (pid: 67, try: 1) *** 2024-12-16 04:29:31 Mon Dec 16 04:29:30 2024 - HARAKIRI !!! worker 2 status !!! 2024-12-16 04:29:31 Mon Dec 16 04:29:30 2024 - HARAKIRI [core 0] 10.0.5.105 - GET / since 1734323069 2024-12-16 04:29:31 Mon Dec 16 04:29:30 2024 - HARAKIRI !!! end of worker 2 status !!! 2024-12-16 04:29:31 worker 2 buried after 9 seconds 2024-12-16 04:29:59 uwsgi_master_manage_emperor()/read(): Bad file descriptor [core/emperor.c line 2442] 2024-12-16 04:29:59 lost connection with my emperor !!! 2024-12-16 04:29:59 unlink(): No such file or directory [core/uwsgi.c line 1662]

Same, some host problems maybe… Just wait…

It looks like we found the problem and it should work now. Sorry for that.

Thank you! It's back up now.

Great, thanks for confirming!