I
I
Ilya2014-07-07 18:09:38
Django
Ilya, 2014-07-07 18:09:38

nginx+uwsgi bundle: how to grant socket permissions in Ubuntu 14.04?

Installed nginx+uwsgi+django according to this manual habrahabr.ru/post/226419 .
In nginx logs

connect() to unix:///path/to/your/mysite/mysite.sock failed (13: Permission denied)
, and with
uwsgi --socket mysite.sock --wsgi-file test.py --chmod-socket=666
everything works great. I would be glad not just to go to Google, but at least with an example of a search query.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2014-07-07
@FireGM

@FireGM there is a uwsgi config in the article. Uncomment
Double check all socket paths as they can be read by the nginx user and the user under which uwsgi is running.
To avoid questions - read what a bitmask of rights is
. It is better to install uwsgi globally in the "tyrant" mode

A
Alexander, 2014-07-07
@syschel

There was a similar "problem", the jamb was hiding in a different place. Namely, in the janga itself, she asked for an uninstalled, but imported module. I noticed only when I tried to run syncdb from the django environment from the console. And there was an import error. No errors popped up on runserver, there was silence in the logs, and the server gave 50x.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question