Пытаюсь по статье https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04 настроить uwsgi на ubuntu 16.04.
такой конфиг
[uwsgi]
base = /home/user/sm
uid = www-data
gid = www-data
chdir = %(base)
virtualenv = %(base)/env
module = sm.wsgi:application
master = true
processes = 2
socket = /home/user/sm/site.sock
chmod-socket = 666
vacuum = true
а выходит ошибка
# uwsgi --emperor /etc/uwsgi/apps-available/
*** Starting uWSGI 2.0.12-debian (64bit) on [Sat Jul 9 12:31:24 2016] ***
compiled with version: 5.3.1 20160412 on 13 April 2016 08:36:06
os: Linux-4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016
nodename: VM-3954-14847-01
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /root
detected binary path: /usr/bin/uwsgi-core
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 1778
your memory page size is 4096 bytes
detected max file descriptor number: 1024
*** starting uWSGI Emperor ***
*** has_emperor mode detected (fd: 6) ***
[uWSGI] getting INI configuration from sm.ini
*** Starting uWSGI 2.0.12-debian (64bit) on [Sat Jul 9 12:31:24 2016] ***
compiled with version: 5.3.1 20160412 on 13 April 2016 08:36:06
os: Linux-4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016
nodename: VM-3954-14847-01
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /etc/uwsgi/apps-available
detected binary path: /usr/bin/uwsgi-core
setgid() to 33
setuid() to 33
chdir() to /home/user/sm
your processes number limit is 1778
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(): Permission denied [core/socket.c line 230]
Sat Jul 9 12:31:24 2016 - [emperor] curse the uwsgi instance sm.ini (pid: 2647)
Sat Jul 9 12:31:27 2016 - [emperor] removed uwsgi instance sm.ini
я же даже не понимаю таки, про что тут Permission denied. Подскажите пожалуйста.