Hi guys,

I’v got this error for days and tried so many times but couldn’t fix it. I’ll 
be very appreciative if anyone can give me any clue, thanks!

The error message is:

2015/10/07 14:30:01 [crit] 19638#0: *13 connect() to 
unix:///tmp/daimaduan-preview.sock failed (2: No such file or directory) while 
connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", 
upstream: "uwsgi://unix:///tmp/daimaduan-preview.sock:", host: “127.0.0.1”
/etc/uwsgi.d/daimaduan.ini:

[uwsgi]
plugin = python
chdir = /var/www/daimaduan/preview/current
master = true
; threads = 20
; processes = 4
socket = /tmp/daimaduan-preview.sock
; harakiri = 20
; limit-as = 128
; max-requests = 5000
chmod-socket = 666
; uid = vagrant
; gid = vagrant
logto = /var/log/daimaduan/preview/uwsgi.log
virtualenv = /var/www/daimaduan/preview/venv
; wsgi-file = /var/www/daimaduan/preview/current/deploy.wsgi
module = deploy
vacuum = true
/etc/nginx/conf.d/daimaduan.conf:

server {
    listen 80;
    access_log /var/log/daimaduan/preview/access.log;
    error_log /var/log/daimaduan/preview/error.log;
    root /var/www/daimaduan/preview/current;

    location / {
        root /var/www/daimaduan/preview/current;
        uwsgi_pass unix:///tmp/daimaduan-preview.sock;
        include uwsgi_params;
    }
}
I am pretty sure /tmp/daimaduan-preview.sock exists, and I don’t know why it 
gave me that error. Also, is uwsgi://unix:///tmp/daimaduan-preview.sock a 
correct URI?

—
David
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to