Forums

restart server from bash console

Hello. How can i restart server from bash console?

I'm not 100% sure what you mean, but maybe Dashboard - Web -Green 'Reload' button?

Jim

No-no, i meant - how can i do the same thing, but via bash console? I nned to restart server after "hg pull" and update to make effect.

Sorry - take a look at:

https://www.pythonanywhere.com/forums/topic/89/

https://www.pythonanywhere.com/forums/topic/1486/

Otherwise you might have to wait for PA staff to respond to get a definitive answer.

touch /var/www/your_domain_wsgi.py

Seems like this is the answer, but im not sure how to test it. Anyway, thank you, jgmdavies!

Yup, that's right. If you touch the WSGI file then the web app will reload after a few seconds.

I've the same error:

received message 0 from emperor
2024-08-26 05:30:38 SIGINT/SIGQUIT received...killing workers...
2024-08-26 05:30:39 worker 1 buried after 1 seconds
2024-08-26 05:30:39 worker 2 buried after 1 seconds
2024-08-26 05:30:39 worker 3 buried after 1 seconds
2024-08-26 05:30:39 goodbye to uWSGI.
2024-08-26 05:30:39 VACUUM: unix socket /var/sockets/api.sumnrise.com/socket removed.
2024-08-26 05:30:47 *** Starting uWSGI 2.0.19.1 (64bit) on [Mon Aug 26 05:30:44 2024] ***
2024-08-26 05:30:47 compiled with version: 9.3.0 on 27 May 2021 21:02:35
2024-08-26 05:30:47 os: Linux-6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024
2024-08-26 05:30:47 nodename: blue-liveweb34
2024-08-26 05:30:47 machine: x86_64
2024-08-26 05:30:47 clock source: unix
2024-08-26 05:30:47 pcre jit disabled
2024-08-26 05:30:47 detected number of CPU cores: 4
2024-08-26 05:30:47 current working directory: /home/extractorai
2024-08-26 05:30:47 detected binary path: /usr/local/bin/uwsgi
2024-08-26 05:30:47 *** dumping internal routing table ***
2024-08-26 05:30:47 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2024-08-26 05:30:47 *** end of the internal routing table ***
2024-08-26 05:30:47 chdir() to /home/extractorai/
2024-08-26 05:30:47 your processes number limit is 1536
2024-08-26 05:30:47 your memory page size is 4096 bytes
2024-08-26 05:30:47 detected max file descriptor number: 123456
2024-08-26 05:30:47 building mime-types dictionary from file /etc/mime.types...
2024-08-26 05:30:47 567 entry found
2024-08-26 05:30:47 lock engine: pthread robust mutexes
2024-08-26 05:30:47 thunder lock: disabled (you can enable it with --thunder-lock)
2024-08-26 05:30:47 uwsgi socket 0 bound to UNIX address /var/sockets/api.sumnrise.com/socket fd 3
2024-08-26 05:30:47 Python version: 3.9.5 (default, May 27 2021, 19:45:35)  [GCC 9.3.0]
2024-08-26 05:30:47 *** Python threads support is disabled. You can enable it with --enable-threads ***
2024-08-26 05:30:47 Python main interpreter initialized at 0x574ef1b95cf0
2024-08-26 05:30:47 your server socket listen backlog is limited to 100 connections
2024-08-26 05:30:47 your mercy for graceful operations on workers is 60 seconds
2024-08-26 05:30:47 setting request body buffering size to 65536 bytes
2024-08-26 05:30:47 mapped 668512 bytes (652 KB) for 3 cores
2024-08-26 05:30:47 *** Operational MODE: preforking ***
2024-08-26 05:30:47 initialized 70 metrics
2024-08-26 05:30:47 WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x574ef1b95cf0 pid: 1 (default app)
2024-08-26 05:30:47 *** uWSGI is running in multiple interpreter mode ***
2024-08-26 05:30:47 gracefully (RE)spawned uWSGI master process (pid: 1)
2024-08-26 05:30:47 spawned uWSGI worker 1 (pid: 5, cores: 1)
2024-08-26 05:30:47 spawned uWSGI worker 2 (pid: 6, cores: 1)
2024-08-26 05:30:47 spawned uWSGI worker 3 (pid: 7, cores: 1)
2024-08-26 05:30:47 metrics collector thread started
2024-08-26 05:30:47 spawned 2 offload threads for uWSGI worker 2
2024-08-26 05:30:47 spawned 2 offload threads for uWSGI worker 1
2024-08-26 05:30:47 spawned 2 offload threads for uWSGI worker 3

[formatted by admin]

What kind of error exactly, @extractorai?