Forums

Web app not working

My web app is down since today morning. I have tried reloading it various time nothing seems to be working here are the server logs :

2024-09-05 05:22:13 Thu Sep 5 05:22:13 2024 - received message 0 from emperor 2024-09-05 05:22:13 SIGINT/SIGTERM received...killing workers... 2024-09-05 05:22:15 worker 1 buried after 2 seconds 2024-09-05 05:22:15 worker 2 buried after 2 seconds 2024-09-05 05:22:15 goodbye to uWSGI. 2024-09-05 05:22:15 VACUUM: unix socket /var/sockets/finishlinegelatoacc.pythonanywhere.com/socket removed. 2024-09-05 05:22:22 *** Starting uWSGI 2.0.20 (64bit) on [Thu Sep 5 05:22:19 2024] *** 2024-09-05 05:22:22 compiled with version: 9.4.0 on 22 July 2022 18:35:26 2024-09-05 05:22:22 os: Linux-6.5.0-1022-aws

22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 2024-09-05 05:22:22 nodename: blue-liveweb27 2024-09-05 05:22:22 machine: x86_64 2024-09-05 05:22:22 clock source: unix 2024-09-05 05:22:22 pcre jit disabled 2024-09-05 05:22:22 detected number of CPU cores: 4 2024-09-05 05:22:22 current working directory: /home/FinishLineGelatoAcc 2024-09-05 05:22:22 detected binary path: /usr/local/bin/uwsgi 2024-09-05 05:22:22

*** dumping internal routing table *** 2024-09-05 05:22:22 [rule: 0] subject: path_info regexp: .svgz$ action: addheader:Content-Encoding:gzip 2024-09-05 05:22:22 *** end of the internal routing table *** 2024-09-05 05:22:22 chdir() to /home/FinishLineGelatoAcc/ 2024-09-05 05:22:22 your processes number limit is 512 2024-09-05 05:22:22 your memory page size is 4096 bytes 2024-09-05 05:22:22 detected max file descriptor number: 123456 2024-09-05 05:22:22 building mime-types dictionary from file /etc/mime.types... 2024-09-05 05:22:22 567 entry found 2024-09-05 05:22:22 lock engine: pthread robust mutexes 2024-09-05 05:22:22 thunder lock: disabled (you can enable it with --thunder-lock) 2024-09-05 05:22:22 uwsgi socket 0 bound to UNIX address /var/sockets/finishlinegelatoacc.pythonanywhere.com/socket fd 3 2024-09-05 05:22:22 Python version: 3.10.5 (main, Jul 22 2022, 17:09:35) [GCC 9.4.0] 2024-09-05 05:22:22 PEP 405 virtualenv detected: /home/FinishLineGelatoAcc/.virtualenvs/myvirtualenv 2024-09-05 05:22:22 Set PythonHome to /home/FinishLineGelatoAcc/.virtualenvs/myvirtualenv 2024-09-05 05:22:22 *** Python threads support is disabled. You can enable it with --enable-threads *** 2024-09-05 05:22:22 Python main interpreter initialized at 0x6089fc831e90 2024-09-05 05:22:22 your server socket listen backlog is limited to 100 connections 2024-09-05 05:22:22 your mercy for graceful operations on workers is 60 seconds 2024-09-05 05:22:22 setting request body buffering size to 65536 bytes 2024-09-05 05:22:22 mapped 501384 bytes (489 KB) for 2 cores 2024-09-05 05:22:22 *** Operational MODE: preforking *** 2024-09-05 05:22:22 initialized 54 metrics 2024-09-05 05:22:22 WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x6089fc831e90 pid: 1 (default app) 2024-09-05 05:22:22 *** uWSGI is running in multiple interpreter mode *** 2024-09-05 05:22:22 gracefully (RE)spawned uWSGI master process (pid: 1) 2024-09-05 05:22:22 spawned uWSGI worker 1 (pid: 2, cores: 1) 2024-09-05 05:22:22 spawned 2 offload threads for uWSGI worker 1 2024-09-05 05:22:22 spawned uWSGI worker 2 (pid: 5, cores: 1) 2024-09-05 05:22:22 metrics collector thread started 2024-09-05 05:22:22 spawned 2 offload threads for uWSGI worker 2 2024-09-05 05:22:22 announcing my loyalty to the Emperor... 2024-09-05 05:22:22 announcing my loyalty to the Emperor... 2024-09-05 06:01:40 ...brutally killing workers... 2024-09-05 06:01:42 Thu Sep 5 06:01:42 2024 - received message 0 from emperor 2024-09-05 06:01:47 uwsgi_master_manage_emperor()/read(): Bad file descriptor [core/emperor.c line 2442] 2024-09-05 06:01:47 lost connection with my emperor !!! 2024-09-05 06:01:47 VACUUM: unix socket /var/sockets/finishlinegelatoacc.pythonanywhere.com/socket removed.

Why is uWSGI not starting after getting killed I don't know how i got bad file descriptor, I have enough storage on my account and none of the files were going to reach 100 mb

Thanks for letting us know! It looks like after our system maintenance this morning, some SQLite databases were stuck in a "locked" state where processes would hang when they tried to access them. We just restarted the file locking service on the file server associated with your account, and your sites are up and running now, so we think that was probably the cause of the issues you were seeing.

As an aside: we do strongly recommend against using SQLite for production websites. it's a great database for development environments and early-stage testing, but for anything customer-facing we'd recommend using MySQL or Postgres.

I am currently using sqlite for testing APIs. Its not currently working. Hope you resolve it fast

Your site appears to be up and running now -- did you make any changes?

Mine is working now. Thank you for the information

Great, thanks for confirming!

I have a question regarding this. What happens when I reload my web app, is it safe, should I be assured that all the locks will be released? and everything will work fine after it gets reloaded, how much time does it actually takes to reload. I saw the page telling about what happens on reload I just wanted to know if I can get more details on this and is there something I as a user of pythonanywhere can take care to avoid downtime like this.

When the spinner stops spinning and when there is no error message it should be fine.