U
U
uturet2017-05-27 00:23:43
Django
uturet, 2017-05-27 00:23:43

Why doesn't uwsgi start with the python3 virtual environment from django.ini?

project description

djpy3 - это джанго проект
djenv - это виртуальное окружение от python3

When I write in the console:
uwsgi --http :80 --chdir /var/www/django/djpy3 --module djpy3.wsgi --virtualenv /var/www/django/djenv

everything starts. But as soon as I enter the same information in django.ini (it is /etc/uwsgi/apps-enabled/) ,
django.ini
[uwsgi]                                                                                             
plugin=python                                                                                       
chdir=/var/www/django/djpy3                                                                       
virtualenv=/var/www/django/djenv                                                                     
module=djpy3.wsgi                                                                      
master=True                                                                                         
vacuum=True                                                                                         
socket=127.0.0.1:9000                                                                               
py-autoreload=5

uwgi throws an error:
copy-paste console

Job for uwsgi.service failed. See 'systemctl status uwsgi.service' and 'journalctl -xn' for details
.
[email protected]:/etc/uwsgi/apps-enabled# systemctl status uwsgi.service
● uwsgi.service - LSB: Start/stop uWSGI server instance(s)
Loaded: loaded (/etc/init.d/uwsgi)
Active: failed (Result: exit-code) since Fri 2017-05-26 16:49:56 EDT; 15s ago
Process: 11064 ExecStop=/etc/init.d/uwsgi stop (code=exited, status=0/SUCCESS)
Process: 11295 ExecStart=/etc/init.d/uwsgi start (code=exited, status=1/FAILURE)
May 26 16:49:56 vagtorg uwsgi[11295]: Starting app server(s): uwsgi -> ! failed!
May 26 16:49:56 vagtorg systemd[1]: uwsgi.service: control process exited, code=exited status=1
May 26 16:49:56 vagtorg systemd[1]: Failed to start LSB: Start/stop uWSGI server instance(s).
May 26 16:49:56 vagtorg systemd[1]: Unit uwsgi.service entered failed state.

But if you run a virtual environment from python2, then everything works.
OS - debian-8.0-x86_64-minimal
uwsgi was pre-installed but then updated via pip3 and before and after didn't work
Thanks in advance for solving this problem

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question