Hello! I am trying to use uwsgi's touch-chain-reload. The reload works. However, it doesn't pick up the new code for some reason. Here are the requested information regarding my uwsgi setup:
OS: ------------------------------- Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty CPU: ------------------------------- x86_64 Webserver: ------------------------------- nginx version: nginx/1.4.4 built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4) TLS SNI support enabled configure arguments: --prefix=/opt/nginx --user=www-data --group=www-data --with-http_gzip_static_module --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module uWSGI version: -------------------------------- 2.0.17 uWSGI command line or config files: ------------------------------------ [uwsgi] chdir = /opt/app/releases/current/project/ home = /opt/app/runenv wsgi-file = /opt/app/releases/current/project/proj/wsgi.py master = true lazy-apps = true touch-chain-reload = /opt/uwsgi/reloadFile processes = 8 harakiri = 120 enable-threads = true socket = :9003 socket-timeout = 30 stats = /tmp/stats.socket listen = 100 single-interpreter = true buffer-size = 32768 Output of --showconfig: ------------------------------------- ;uWSGI instance configuration [uwsgi] show-config = true ;end of configuration *** Starting uWSGI 2.0.17 (64bit) on [Fri Feb 22 01:24:28 2019] *** compiled with version: 4.8.4 on 21 May 2018 08:47:02 os: Linux-3.13.0-143-generic #192-Ubuntu SMP Tue Feb 27 10:45:36 UTC 2018 nodename: sandbox machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 2 current working directory: /opt/app/releases/20190222111507/project detected binary path: /usr/local/bin/uwsgi *** WARNING: you are running uWSGI without its master process manager *** your processes number limit is 31533 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) The -s/--socket option is missing and stdin is not a socket. Log output: ------------------------- Thu Feb 21 23:18:03 2019 - chain next victim is worker 1 Gracefully killing worker 1 (pid: 30479)... worker 1 killed successfully (pid: 30479) Respawned uWSGI worker 1 (new pid: 19445) Thu Feb 21 23:18:04 2019 - chain is still waiting for worker 1... Thu Feb 21 23:18:05 2019 - chain is still waiting for worker 1... Thu Feb 21 23:18:08 2019 - chain next victim is worker 2 Gracefully killing worker 2 (pid: 30480)... [22/Feb/2019 04:18:09] WARNING [django.request:182] Not Found: /favicon.ico worker 2 killed successfully (pid: 30480) Respawned uWSGI worker 2 (new pid: 20865) Thu Feb 21 23:18:09 2019 - chain is still waiting for worker 2... ..... The output when I run touch the reloadFile is also show above. But whatever code changes I make, doesn't get picked up. If I do a normal "reload" or "restart", then it gets picked up. But yeah, that downtime is what I am trying to fix. :) Any help / pointers? Thanks in advance! _______________________________________________ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi