# Pastebin KukjhJ2r strace -e 'trace=!all' -f ~/Downloads/consul-template -config consul-template-uwsgi.conf -log-level debug strace: Process 62409 attached strace: Process 62410 attached strace: Process 62411 attached strace: Process 62412 attached 2023-11-23T00:44:45.089+0530 [INFO] consul-template v0.35.0 (2d2654f) 2023-11-23T00:44:45.089+0530 [INFO] (runner) creating new runner (dry: false, once: false) 2023-11-23T00:44:45.089+0530 [DEBUG] (runner) final config: {"Consul":{"Address":"","Namespace":"","Auth":{"Enabled":false,"Username":""},"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true},"SSL":{"CaCert":"","CaCertBytes":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"Token":"","TokenFile":"","Transport":{"CustomDialer":null,"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":5000000000,"MaxIdleConns":0,"MaxIdleConnsPerHost":100,"TLSHandshakeTimeout":10000000000}},"Dedup":{"Enabled":false,"MaxStale":2000000000,"Prefix":"consul-template/dedup/","TTL":15000000000,"BlockQueryWaitTime":60000000000},"DefaultDelims":{"Left":null,"Right":null},"Exec":{"Command":["uwsgi /home/lucifer/PycharmProjects/uwsgi-test/uwsgi.ini"],"Enabled":true,"Env":{"Denylist":[],"Custom":[],"Pristine":false,"Allowlist":[]},"KillSignal":15,"KillTimeout":10000000000,"ReloadSignal":1,"Splay":5000000000,"Timeout":0},"KillSignal":2,"LogLevel":"debug","FileLog":{"LogFilePath":"","LogRotateBytes":0,"LogRotateDuration":86400000000000,"LogRotateMaxFiles":0},"MaxStale":2000000000,"PidFile":"","ReloadSignal":1,"Syslog":{"Enabled":false,"Facility":"LOCAL0","Name":"consul-template"},"Templates":[{"Backup":false,"Command":[],"CommandTimeout":30000000000,"Contents":"","CreateDestDirs":true,"Destination":"/home/lucifer/PycharmProjects/uwsgi-test/out.txt","ErrMissingKey":false,"ErrFatal":true,"Exec":{"Command":[],"Enabled":false,"Env":{"Denylist":[],"Custom":[],"Pristine":false,"Allowlist":[]},"KillSignal":2,"KillTimeout":30000000000,"ReloadSignal":null,"Splay":0,"Timeout":30000000000},"Perms":0,"User":null,"Uid":null,"Group":null,"Gid":null,"Source":"/home/lucifer/PycharmProjects/uwsgi-test/in.tpl","Wait":{"Enabled":false,"Min":0,"Max":0},"LeftDelim":"","RightDelim":"","FunctionDenylist":[],"SandboxPath":"","MapToEnvironmentVariable":""}],"TemplateErrFatal":null,"Vault":{"Address":"","Enabled":false,"Namespace":"","RenewToken":false,"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true},"SSL":{"CaCert":"","CaCertBytes":"","CaPath":"","Cert":"","Enabled":true,"Key":"","ServerName":"","Verify":true},"Transport":{"CustomDialer":null,"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":5000000000,"MaxIdleConns":0,"MaxIdleConnsPerHost":100,"TLSHandshakeTimeout":10000000000},"UnwrapToken":false,"ClientUserAgent":null,"DefaultLeaseDuration":300000000000,"LeaseRenewalThreshold":0.9,"K8SAuthRoleName":"","K8SServiceAccountTokenPath":"/run/secrets/kubernetes.io/serviceaccount/token","K8SServiceAccountToken":"","K8SServiceMountPath":"kubernetes"},"Nomad":{"Address":"","Enabled":false,"Namespace":"","SSL":{"CaCert":"","CaCertBytes":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"AuthUsername":"","AuthPassword":"","Transport":{"CustomDialer":null,"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":5000000000,"MaxIdleConns":0,"MaxIdleConnsPerHost":100,"TLSHandshakeTimeout":10000000000},"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true}},"Wait":{"Enabled":false,"Min":0,"Max":0},"Once":false,"ParseOnly":false,"BlockQueryWaitTime":60000000000,"ErrOnFailedLookup":false} 2023-11-23T00:44:45.090+0530 [INFO] (runner) creating watcher strace: Process 62413 attached 2023-11-23T00:44:45.091+0530 [INFO] (runner) starting strace: Process 62414 attached 2023-11-23T00:44:45.091+0530 [DEBUG] (runner) running initial templates strace: Process 62415 attached 2023-11-23T00:44:45.091+0530 [DEBUG] (runner) initiating run 2023-11-23T00:44:45.091+0530 [DEBUG] (runner) checking template 3c8b73adec72c450da6e2311b3d555d7 strace: Process 62416 attached 2023-11-23T00:44:45.092+0530 [DEBUG] (runner) missing data for 1 dependencies 2023-11-23T00:44:45.092+0530 [DEBUG] (runner) missing dependency: kv.block(name) 2023-11-23T00:44:45.093+0530 [DEBUG] (runner) add used dependency kv.block(name) to missing since isLeader but do not have a watcher 2023-11-23T00:44:45.093+0530 [DEBUG] (runner) was not watching 1 dependencies 2023-11-23T00:44:45.093+0530 [DEBUG] (watcher) adding kv.block(name) 2023-11-23T00:44:45.094+0530 [DEBUG] (runner) diffing and updating dependencies 2023-11-23T00:44:45.094+0530 [DEBUG] (runner) watching 1 dependencies 2023-11-23T00:44:45.098+0530 [DEBUG] (runner) receiving dependency kv.block(name) 2023-11-23T00:44:45.099+0530 [DEBUG] (runner) initiating run 2023-11-23T00:44:45.099+0530 [DEBUG] (runner) checking template 3c8b73adec72c450da6e2311b3d555d7 2023-11-23T00:44:45.100+0530 [DEBUG] (runner) rendering "/home/lucifer/PycharmProjects/uwsgi-test/in.tpl" => "/home/lucifer/PycharmProjects/uwsgi-test/out.txt" 2023-11-23T00:44:45.101+0530 [DEBUG] (runner) diffing and updating dependencies 2023-11-23T00:44:45.101+0530 [DEBUG] (runner) kv.block(name) is still needed 2023-11-23T00:44:45.101+0530 [DEBUG] (runner) watching 1 dependencies 2023-11-23T00:44:45.101+0530 [DEBUG] (runner) all templates rendered 2023-11-23T00:44:45.102+0530 [INFO] (child) spawning: sh -c uwsgi /home/lucifer/PycharmProjects/uwsgi-test/uwsgi.ini strace: Process 62417 attached strace: Process 62418 attached [uWSGI] getting INI configuration from /home/lucifer/PycharmProjects/uwsgi-test/uwsgi.ini *** Starting uWSGI 2.0.23 (64bit) on [Thu Nov 23 00:44:45 2023] *** compiled with version: 13.2.0 on 22 November 2023 11:59:34 os: Linux-6.5.0-10-generic #10-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 13 13:49:38 UTC 2023 nodename: avengers machine: x86_64 clock source: unix detected number of CPU cores: 16 current working directory: /home/lucifer/PycharmProjects/uwsgi-test detected binary path: /home/lucifer/PycharmProjects/uwsgi-test/venv/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! your processes number limit is 61332 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) uWSGI http bound on 0.0.0.0:4000 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:37897 (port auto-assigned) fd 3 Python version: 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0] Python main interpreter initialized at 0x7f138c363958 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 145840 bytes (142 KB) for 1 cores *** Operational MODE: single process *** WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7f138c363958 pid: 62418 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 62418) strace: Process 62419 attached spawned uWSGI worker 1 (pid: 62419, cores: 1) strace: Process 62420 attached spawned uWSGI http 1 (pid: 62420) 2023-11-23T00:44:49.483+0530 [DEBUG] (runner) receiving dependency kv.block(name) 2023-11-23T00:44:49.484+0530 [DEBUG] (runner) initiating run 2023-11-23T00:44:49.484+0530 [DEBUG] (runner) checking template 3c8b73adec72c450da6e2311b3d555d7 2023-11-23T00:44:49.485+0530 [DEBUG] (runner) rendering "/home/lucifer/PycharmProjects/uwsgi-test/in.tpl" => "/home/lucifer/PycharmProjects/uwsgi-test/out.txt" 2023-11-23T00:44:49.487+0530 [INFO] (runner) rendered "/home/lucifer/PycharmProjects/uwsgi-test/in.tpl" => "/home/lucifer/PycharmProjects/uwsgi-test/out.txt" 2023-11-23T00:44:49.487+0530 [DEBUG] (runner) diffing and updating dependencies 2023-11-23T00:44:49.488+0530 [DEBUG] (runner) kv.block(name) is still needed 2023-11-23T00:44:49.488+0530 [INFO] (child) reloading process 2023-11-23T00:44:49.488+0530 [DEBUG] (child) waiting 3.16s for random splay [pid 62420] --- SIGHUP {si_signo=SIGHUP, si_code=SI_USER, si_pid=62408, si_uid=1000} --- [pid 62419] --- SIGHUP {si_signo=SIGHUP, si_code=SI_USER, si_pid=62408, si_uid=1000} --- [pid 62418] --- SIGHUP {si_signo=SIGHUP, si_code=SI_USER, si_pid=62408, si_uid=1000} --- [pid 62417] --- SIGHUP {si_signo=SIGHUP, si_code=SI_USER, si_pid=62408, si_uid=1000} --- [pid 62414] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=62408, si_uid=1000} --- Gracefully killing worker 1 (pid: 62419)... 2023-11-23T00:44:52.652+0530 [DEBUG] (runner) watching 1 dependencies [pid 62417] +++ killed by SIGHUP +++ [pid 62414] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=62417, si_uid=1000, si_status=SIGHUP, si_utime=0, si_stime=0} --- 2023-11-23T00:44:52.653+0530 [DEBUG] (runner) all templates rendered 2023-11-23T00:44:52.653+0530 [DEBUG] (runner) receiving dependency kv.block(name) [pid 62420] +++ killed by SIGKILL +++ 2023-11-23T00:44:52.653+0530 [DEBUG] (runner) initiating run [pid 62418] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=62420, si_uid=1000, si_status=SIGKILL, si_utime=0, si_stime=0} --- gateway "uWSGI http 1" has been buried (pid: 62420) ...gracefully killing workers... 2023-11-23T00:44:52.654+0530 [DEBUG] (runner) checking template 3c8b73adec72c450da6e2311b3d555d7 2023-11-23T00:44:52.654+0530 [DEBUG] (runner) rendering "/home/lucifer/PycharmProjects/uwsgi-test/in.tpl" => "/home/lucifer/PycharmProjects/uwsgi-test/out.txt" 2023-11-23T00:44:52.657+0530 [INFO] (runner) rendered "/home/lucifer/PycharmProjects/uwsgi-test/in.tpl" => "/home/lucifer/PycharmProjects/uwsgi-test/out.txt" 2023-11-23T00:44:52.658+0530 [DEBUG] (runner) diffing and updating dependencies 2023-11-23T00:44:52.658+0530 [DEBUG] (runner) kv.block(name) is still needed 2023-11-23T00:44:52.658+0530 [INFO] (child) reloading process 2023-11-23T00:44:52.658+0530 [DEBUG] (child) waiting 0.77s for random splay [pid 62419] +++ exited with 17 +++ [pid 62418] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=62419, si_uid=1000, si_status=17, si_utime=3 /* 0.03 s */, si_stime=1 /* 0.01 s */} --- worker 1 buried after 0 seconds binary reloading uWSGI...