A
A
Artem2015-12-16 15:43:19
Django
Artem, 2015-12-16 15:43:19

Django + uWSGI + nginx, 502, what to do?

It does not work with this bundle, it gives 502.
uWSGI:


*** Starting uWSGI 2.0.11.2 (32bit) on [Wed Dec 16 07:40:35 2015] ***
compiled with version: 4.8.4 on 16 December 2015 06:19:02
os: Linux-2.6.32- 042stab111.11 #1 SMP Tue Sep 1 18:19:12 MSK 2015
nodename: vps6406
machine: i686
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /wdata/proj
detected binary path: /usr /local/bin/uwsgi
setgid() to 33
setuid() to 33
chdir() to /wdata/proj
your processes number limit is 29855
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)
bind(): No such file or directory [core/socket.c line 230]

nginx:

2015/12/16 07:36:51 [crit] 29407#0: *10 connect() to unix:///wdata/proj/proj.sock failed (13: Permission denied) while connecting to upstream, client: ip , server: 38.185.197.223, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///wdata/proj/proj.sock:", host: "ip"


[uwsgi]
chdir = /wdata/proj
module = proj.wsgi:application
home = /wdata/proj/venv
master = True
processes = 4
socket = /wdata/proj/proj.sock
vacuum = True
uid = www-data
gid = www-data
daemonize=/wdata/proj/log.ini

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2015-12-16
@ulkoart

(13: Permission denied)
give permission to create a sock file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question