> Hi list, > > There is a socket connection refused problem in nginx(uwsgi?) that I have > no idea how to fix it. > I am not even sure if I am on the right track as I am following the > instructions here <http://liangsun.org/posts/pyramid-nginx-uwsgi-mysql/> > I hope someone can shed some light on it. > Here are the related files > > nginx: > > website.conf > *server {* > * listen 80;* > * access_log off;* > * error_log /var/log/nginx/http.error.log;* > > * charset utf-8;* > * server_name example.local;* > * location / {* > * uwsgi_pass unix:///tmp/uwsgi.sock;* > * include uwsgi_params;* > * }* > *}* > > > development.ini > > *[uwsgi]* > *socket = /tmp/uwsgi.sock* > *chmod-socket = 777* > *chown-socket = www-data* > *gid = www-data* > *uid = www-data* > *master = true* > *processes = 4* > *harakiri = 60* > *harakiri-verbose = true* > *limit-post = 65536* > *post-buffering = 8192* > *daemonize = ./uwsgi.log* > *pidfile = ./pid_5000.pid* > *listen = 256 * > *max-requests = 1000* > *reload-on-as = 128 * > *reload-on-rss = 96* > *no-orphans = true* > *log-slow = true* > *virtualenv = /home/chung/opt/Python-2.7.5/bin/env* > > uwsgi.log > > **** Starting uWSGI 2.0.1 (64bit) on [Wed Feb 26 21:26:42 2014] **** > *compiled with version: 4.8.2 on 24 February 2014 20:28:34* > *os: Linux-3.12-1-amd64 #1 SMP Debian 3.12.9-1 (2014-02-01)* > *nodename: debian* > *machine: x86_64* > *clock source: unix* > *pcre jit disabled* > *detected number of CPU cores: 4* > *current working directory: /home/chung/opt/Python-2.7.5/bin/env/example* > *writing pidfile to ./pid_5000.pid* > *detected binary path: /home/chung/opt/Python-2.7.5/bin/env/bin/uwsgi* > *your processes number limit is 63212* > *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)* > *Listen queue size is greater than the system max net.core.somaxconn > (128).*
Here your uWSGI process died, so it is normal nginx cannot connect to it -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.
