M
M
MaxEpt2015-09-07 15:52:21
Django
MaxEpt, 2015-09-07 15:52:21

Installing uwsgi globally, why doesn't it see python?

Good afternoon!
python, django, python pip uwsgi installed in virtualenv.
I deactivate virtual env, do sudo apt-get install uwsgi - to install it globally. I go to the site - 502 error. And if you run from under the virtual environment, then everything is ok.
How right?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
IvanOne, 2015-09-09
@IvanOne

I think you need to attach the uwsgi config here + error log

M
MaxEpt, 2015-09-12
@MaxEpt

I'll try to describe it differently.
I'm running uwsgi globally,
Here's what's in the console:
*** Operational MODE: preforking ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
!!!!!!!!!!!!!! WARNING!!!!!!!!!!!!!!!
no request plugin is loaded, you will not be able to manage requests.
you may need to install the package for your language of choice, or simply load it with --plugin.
!!!!!!!!!!! END OF WARNING!!!!!!!!!!
And nginx gives 502 error.
I run uwsgi from virtualenv everything is ok.
The goal is to run it globally like here - uwsgi-docs.readthedocs.org/en/latest/tutorials/Dja...that is, that the project is constantly available to users.

D
DennyD314, 2017-03-20
@DennyD314

Most likely because you didn't install uwsgi-python-plugin and added plugin=python to uwsgi.ini

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question