Questions tagged [uwsgi]

Questions regarding uWSGI which is a full stack for building hosting services

The uWSGI project

The uWSGI project aims at developing a full stack for building hosting services.

Application servers (for various programming languages and protocols), proxies, process managers and monitors are all implemented using a common api and a common configuration style.

Thanks to its pluggable architecture it can be extended to support more platforms and languages.

Currently, you can write plugins in C, C++ and Objective-C.

The “WSGI” part in the name is a tribute to the namesake Python standard, as it has been the first developed plugin for the project.

Versatility, performance, low-resource usage and reliability are the strengths of the project (and the only rules followed).

Github Docs

343 questions
86
votes
2 answers

Why do I need nginx when I have uWSGI

There are many tutorials on how to configure nginx to cooperate with uWGSI when I want to deploy Django application. But why do I need nginx in this kit? uWSGI itself can serve WSGI Python applications, it can serve static files, it can also do…
user983447
  • 1,107
  • 1
  • 10
  • 10
45
votes
5 answers

How do I make uWSGI restart when a Python script is modified?

Can't remember where, but I read uWSGI can reload itself like Django development server when a project script is modified. I can't find that in the docs, nor in the internets. How can I do this? I use Ubuntu 12.04 on my working machines and Debian…
culebrón
  • 565
  • 1
  • 4
  • 7
16
votes
2 answers

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04

I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04. It all works fine up until the very last step (oh the irony...) where I try to execute this command: sudo service uwsgi start If fails with the following…
Vlad Schnakovszki
  • 563
  • 1
  • 4
  • 12
14
votes
3 answers

How to stop uwsgi when no pidfile in config?

I've just installed uwsgi by pip install uwsgi in a virtual env. In "ini" file I used: socket = 127.0.0.1:3000 # no pidfile option And run uwsgi --ini config.ini But how to stop this instance of uwsgi? uwsgi --stop ... wants a pid file. I can't use…
Sergey
  • 714
  • 2
  • 6
  • 21
13
votes
2 answers

how to do a graceful uwsgi reload via bash script?

I have a django application which is executing a bash script. I require the nginx server to restart so I run /etc/init.d/nginx reload which works great. I have been using restart uwsgi for uwsgi but I need to do a graceful reload instead of a hard…
darren
  • 233
  • 1
  • 2
  • 7
11
votes
1 answer

What does the --master option ACTUALLY do in uwsgi?

While the uwsgi documentation is perhaps fine for someone already familiar with server administration, it is definitely not so helpful for someone trying to learn it. I hope someone can help out with the questions below. I read, that it can…
Mads Skjern
  • 263
  • 3
  • 8
10
votes
3 answers

Different Python versions under the same uwsgi Emperor?

I'm running an uwsgi Emperor with various Vassals that each serve a specific Python app from a different virtualenv. Since uwsgi was compiled with it's own Python 2.7 interpreter, trying to use a virtualenv with Python 3 in it produces the following…
Jaap Joris Vens
  • 561
  • 2
  • 7
  • 18
9
votes
2 answers

uwsgi queue of socket message flood?

I found my website unresponsive and I see a ton of *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! (101/100) *** *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! (101/100) *** *** uWSGI listen queue of socket…
user299709
  • 211
  • 2
  • 5
9
votes
1 answer

uWSGI Returning Empty Response

I have a Django site which I am trying to server via uWSGI. I have started the server like so: uwsgi --emperor . Ctrl+Z bg 1 (There are two .ini files which point to the test version and production version of the site, serving on 9001 and 9002…
d4nt
  • 265
  • 3
  • 9
8
votes
1 answer

How do I get an aggregate of all the stats from all uWSGI vassals using uwsgitop?

TL;DR Can anyone tell me how I may get uwsgitop to monitor all of my vassals in my emperor-vassal setup in one shot? I have an emperor-vassal setup for my uWSGI server, and I need to monitor all my vassals. I could always check my application logs…
8
votes
1 answer

Error 2006: MySQL server has gone away

I'm running a Python Pyramid app on a CentOS server using uWSGI and nginx. I'm using SQLAlchemy as an ORM, MySQLdb as the API, and MySQL as a database. The site hasn't gone live yet, so the only traffic is me and some other employees of the…
Theron Luhn
  • 325
  • 2
  • 3
  • 11
7
votes
1 answer

uWSGI won't start with systemd under Ubuntu 16.04

I'm in the process of doing a somewhat painful migration of our staging and production servers from Ubuntu 12.04 to 16.04. I'm testing the migration on staging and it is mostly working, except for getting uWSGI to start under systemd (it previously…
mathew
  • 213
  • 2
  • 7
7
votes
0 answers

UWSGI SIGINT/SIGQUIT received

I'm trying to use nginx with uwsi. I wrote uwsgi ini file and test it with uwsgi --ini site.ini Everything works fine. But when I try to run the site I got the following error (from log file): *** Python threads support is disabled. You can enable…
Paul R
  • 171
  • 6
7
votes
3 answers

uWSGI and python virtual env

I'm trying to use uWSGI with a virtual env in order to use the Trac bug tracker on it. I've installed system-wide uwsgi via pip. Next, I've installed trac in a virtualenv $ virtualenv venv $ . venv/bin/activate $ pip install trac I've then written…
Nicolas Appriou
  • 173
  • 1
  • 1
  • 6
7
votes
1 answer

Unable to load configuration from uwsgi

Since yesterday I have been wrestling with this problem: unable to load configuration from uwsgi When I google it, nothing comes up. I am trying to run UWSGI under nginx with a very simple uwsgi.ini file. The file is being pointed to correctly. Can…
J.Zil
  • 1,103
  • 3
  • 20
  • 29
1
2 3
22 23