ZhangHuangbin wrote:Is uwsgi service running? iRedAdmin is a Python program running with uwsgi.
i think i found the error :-
2015/04/23 17:10:21 [crit] 25997#0: *1118 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:10:33 [crit] 25997#0: *1118 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:10:35 [crit] 25997#0: *1118 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:10:44 [crit] 25997#0: *1125 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:11:05 [crit] 25997#0: *1125 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:11:15 [crit] 25997#0: *1118 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin/dashboar$
2015/04/23 17:11:17 [crit] 25997#0: *1118 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin/dashboar$
2015/04/23 17:11:23 [crit] 25997#0: *1118 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:11:28 [crit] 25997#0: *1118 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:19:26 [emerg] 30696#0: invalid host in upstream "/var/run/uwsgi_iredadmin.socket" in /etc/nginx/conf.d/default.conf:104
2015/04/23 17:22:17 [crit] 25997#0: *1151 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 17:22:18 [crit] 25997#0: *1151 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 101.108.24.245, server: _, request: "GET /iredadmin HTTP/1.1$
2015/04/23 18:34:59 [crit] 30859#0: *76 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 171.98.205.179, server: _, request: "GET /iredadmin/dashboard $
2015/04/23 18:35:46 [crit] 30859#0: *76 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 171.98.205.179, server: _, request: "GET /iredadmin/dashboard $
2015/04/23 18:42:01 [crit] 30859#0: *79 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 171.98.205.179, server: _, request: "GET /iredadmin HTTP/1.1",$
2015/04/23 18:48:47 [crit] 30859#0: *82 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 171.98.205.179, server: _, request: "GET /iredadmin HTTP/1.1",$
i think emergency says it:-
2015/04/23 17:19:26 [emerg] 30696#0: invalid host in upstream "/var/run/uwsgi_iredadmin.socket" in /etc/nginx
**EDIT: No. Its the critical error, the emergency was my attempt to fix which made it worse. There is a socket problem.
Any idea why?
***Edit: Could someone see the config below and advise if its correct:-
# iRedAdmin: Python scripts
location ~ ^/iredadmin(.*) {
rewrite ^/iredadmin(/.*)$ $1 break;
include uwsgi_params;
uwsgi_pass unix:/var/run/uwsgi_iredadmin.socket;
uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
uwsgi_param SCRIPT_NAME /iredadmin;
}
# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /iredadmin {
rewrite ^ /iredadmin/;
}