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

346 questions
1
vote
3 answers

How do I add a URL prefix (/wiki) to MoinMoin running on uWSGI and nginx?

I just set up uWSGI and nginx (with the uWSGI module) and would like to get MoinMoin set up. I'm running uWSGI with MoinMoin with the command below: /usr/bin/uwsgi -s moin.sock --wsgi-file wiki/server/moin.wsgi -M -p 4 In nginx, I have it set up…
Corey Farwell
  • 135
  • 1
  • 9
1
vote
1 answer

Nginx + uWSGI on localhost *always* gives 502 Bad Gateway. Any ideas how to solve this?

After a long time on shared hosting, I'm moving my stuff to a VPS and it has become necessary to learn about Nginx + uWSGI to deploy my apps (python). After spending a couple of weeks learning the basics, I'm in the process of setting up my local…
vjk2005
  • 175
  • 1
  • 2
  • 8
1
vote
4 answers

Nginx + uWSGI on a fresh Ubuntu install - bind error port 80

I know this is a common problem usually having to do with apache or another service already running on port 80 and I have done a lot of searching and running netstat and still have not figured out why I am getting this error. I rebuilt my slice,…
knuckfubuck
  • 113
  • 1
  • 6
1
vote
1 answer

any tutorial to set up nginx+ uwsgi to serve pylons apps?

Currently I am using nginx to reverse proxy paster, to server Mediacore (a Pylons app). However, this configuration fails when I try to submit a video. I particualrly try to avoid fat appache, which is the official Mediacore recommendation. In a…
alfish
  • 3,127
  • 15
  • 47
  • 71
1
vote
1 answer

uwsgi: strange error message: unknown config directive: inifile

I have a uwsgi.ini file. It works perfectly, but if I add strict=true it fails with the message [strict-mode] unknown config directive: inifile however the word inifile doesn't even exist in my inifile. In order to reproduce the error I went so…
gelonida
  • 259
  • 3
  • 16
1
vote
0 answers

Handling a deployment in prod with in memory data with uwsgi & kubernetes

I'm in a bit of a bind here and I'm looking for pointers as to how to best manage my situation: So, I have a Flask app with uwsgi and I'm deploying this to Kubernetes with 2 pods. UWSGI configuration is 1 process and 4 threads are we're really…
Saturnian
  • 111
  • 1
1
vote
0 answers

NGINX (111: Connection refused) error while connecting to upstream

I am setting up a configuration for NGINX but I am constantly getting the following error: 8#8: *698 connect() failed (111: Connection refused) while connecting to upstream, client: , server: , request: "GET…
1
vote
0 answers

What's the advantage of uwsgi protocol over http for Apache proxying?

I've just set up a couple of WSGI apps behind an Apache server proxying to uwsgi using UNIX sockets on the same host. The generally advertised method to do that seems to be like this: Apache config: ProxyPass /…
musbur
  • 193
  • 12
1
vote
1 answer

uWSGI aborts responses, loses connection to nginx

I'm running a small web application written in Python, running in uWSGI and served through nginx. There's a component that generates ZIP files for downloading, which occasionally can be quite large (several GB). It often happens that the connection…
Felix
  • 46
  • 10
1
vote
1 answer

How to tell nginx to honor backend's cache? uWSGI

There's a similar question but solution there doesn't work for me. We have nginx and uWSGI ad backend. We need nginx to cache the backend response according to what is in the response header. For example, I run curl -I…
Putnik
  • 2,217
  • 4
  • 27
  • 43
1
vote
1 answer

UWSGI block incoming connections when all threads are busy

I have a simple UWSGI app put behind a LB with the following .ini config [uwsgi] socket=0.0.0.0:5071 chdir = src/ wsgi-file = uwsgi.py processes=2 threads=1 protocol=http plugins=python exit-on-reload=false master=true # Cleanup of temp files vacuum…
Constantin
  • 131
  • 2
1
vote
1 answer

uWSGI on ubuntu 18 suddenly fails when --never-swap specified

I use uWSGI on ubuntu 18 (18.04.5 LTS). Very recently this stopped working - I'd get this error on startup: Fatal Python error: Cannot recover from MemoryErrors while normalizing exceptions. Nothing had changed my side but the server was set to…
Rich B
  • 11
  • 1
1
vote
1 answer

HAProxy + uwsgi all connection "Connection reset by peer"

I've a problem with UWSGI + HAProxy. for all the connections that get closed, i see this log in uwsgi file [uwsgi-http key: client_addr: 192.168.173.250 client_port: 57002] hr_read(): Connection reset by peer [plugins/http/http.c line 917] i can…
EsseTi
  • 255
  • 3
  • 13
1
vote
0 answers

Multiple "Location" sections with different handlers aren't combined anymore in apache2 after upgrade

I have a website with the following configuration: ServerName example.it SetHandler uwsgi-handler uWSGISocket /var/sitedir/moin.sock SetHandler…
1
vote
0 answers

uWSGI in emperor mode Nginx can't access socket

But when I do it in single mode then it runs just fine. emperor.ini uid = www-data gid = www-data #exec-asap = mkdir -p /var/run/uwsgi #exec-asap = chown -R www-data:www-data /var/run/uwsgi emperor = /srv/*/uwsgi.ini vassals-include =…
133794m3r
  • 155
  • 1
  • 8