Bind (): no such file or directory [core / socket.c line 230]

I am trying to create a unix socket application to run on uWSGI ... but does not allow creating a socket, check the following settings.

[uwsgi] chdir = /home/deploy/webapps/domain/virtualenv/app module = app.wsgi home = /home/deploy/webapps/domain/virtualenv master = true processes = 10 uwsgi-socket = /var/run/uwsgi/app/%n/socket # if i'm tried /tmp/name.socket if work! vacuum = true # Error codes: The -s/--socket option is missing and stdin is not a socket. bind(): No such file or directory [core/socket.c line 230] 

I gave permissions for this directory and created, but it does not work.

 mkdir -p /var/run/uwsgi/app sudo chown -R deploy:root /var/run/uwsgi/app sudo chmod 777 /var/run/uwsgi/app 

which would be the same solution for this. thanks.

+6
source share
1 answer

You need to do two things:

 /var/run/app-uwsgi 

and

 sudo chown -R www-data:www-data /var/run/app-uwsgi 

After a reboot, it is immediately lost and needs to be recreated in Ubuntu.

+1
source

Source: https://habr.com/ru/post/980558/


All Articles