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
0
votes
1 answer

Django hosting on linux - what's the most memory-efficient technique?

I've got a VPS (Ubuntu 10.04, 512MB) on which I host 10-15 django sites, most of which have intermittent traffic. I'm wondering what the best hosting technique is in this situation, where the processes are mostly sitting idle. Currently, I've got…
Greg
  • 239
  • 1
  • 12
0
votes
2 answers

Extra 301 redirect with nginx and uwsgi

I've the following nginx conf: server { server_name tawp.in; location / { rewrite ^/r/([^/]*)$ /s/ta/$1; rewrite ^/e/(.*)$ /en/ta/$1; uwsgi_pass unix:/tmp/uwsgi.sock; uwsgi_param UWSGI_CHDIR…
Yuvi
  • 101
  • 3
0
votes
2 answers

User has problem with loading speed of website

We are using nginx as reverse proxy. There are 4 servers (1x nginx, 2x uWSGI, 1x DB + Memcached). One user told me some time ago, that he has for 3 months problems with loading speed of website. Every request takes 5-10 secs, when for me it takes…
ThomK
  • 45
  • 1
  • 1
  • 5
0
votes
2 answers

uWSGI Virtualhost mode with touch-reload

So far I have been experimenting with uWSGI to replace a lot of kludgy server code that builds and does setup for Python wsgi applications under supervise. I am running dozens of these small projects (Django, Flask, other) at once. Currently I am…
Xealot
  • 103
  • 4
0
votes
1 answer

uWSGI touch-reload feature not working with 100% CPU

On my development box, I have configured uWSGI to reload every time a file gets touched (using the --touch-reload command line argument). When I specify a non-existent file, I get a warning in the uWSGI logs. If I specify an existing file (say,…
Romain
  • 115
  • 1
  • 6
0
votes
3 answers

Script (bash) to automatically start/restart nginx (if it fails)

Can someone help me to setup nginx on my box? I have compiled it (i'm using it to run Django app using uwsgi_rs). Its running OK but i have to start it manually. How can i setup it to autorun? And start it again (automatically) if it ware killed?…
NilColor
  • 103
  • 1
  • 3
0
votes
1 answer

django/uwsgi/nginx invalid HTTP protocol

Any idea why this error happen when accessing nginx? uwsgi is running with the command: /usr/sbin/uwsgi --socket /home/user/run/project.sock --chmod-socket --pidfile /home/user/project/uwsgi.pid --module project.wsgi_app --pythonpath /home/user/ -p…
user66208
  • 1
  • 1
0
votes
1 answer

Cant start uwsgi in ubuntu 10.10

When I run "/etc/init.d/uwsgi start" nothing happens, the terminal just gives me a new line and no output. There is no sign of uswsgi in ps aux as well and /var/log/uwsgi.log is empty I'm folowing this…
Victor
  • 11
  • 1
  • 3
0
votes
2 answers

Configure uWSGI (+cherokee) to run as a specified user?

I have a cherokee serving django app using uWSGI. I want the uwsgi process user and group to be specified by me - how do I do this? (now uwsgi runs as 'www-data' user)
grucha
  • 1,093
  • 1
  • 9
  • 9
0
votes
0 answers

Issues with cgi-bin scripts using uWSGI and nginx

I am trying to get cgi-bin scripts running on an nginx system using uWSGI and I am having issues with this, and with debugging this to figure out what is going wrong. The system is a Raspberry Pi running Rasbian bookworm, and I have added an nginx…
John Tate
  • 179
  • 4
  • 19
0
votes
0 answers

Segementation fault uwsgi

Not sure if it's a repetition question I'm able to run http but when using https I'm getting the errors. this is the config I'm using shared-socket = :443 protocol = https https = =0,cert.crt,cert.key master = true processes = 4 threads =…
0
votes
1 answer

can nginx block incoming headers as reverse proxy / uwsgi client

I am using nginx and would like to block certain incoming headers, such, that uwsgi never receives these headers a server / service that I proxy to will not receive them How can I achieve this
gelonida
  • 259
  • 3
  • 16
0
votes
0 answers

Searxng nginx installation fails

Hi I'm trying to install searxng in my nginx server using the installation script (https://docs.searxng.org/admin/installation-nginx.html). It complains that it can't find the searx module INFO: uWSGI socket is located at:…
22EF
  • 1
0
votes
0 answers

uWSGI application behind traefik

My current setup looks like: request -> traefik (for https) -> NGINX -> uWSGI where uWSGI is started with the following opts: UWSGI_OPTS="--socket /tmp/uwsgi.sock \ --http 0.0.0.0:5000 \ ... The docs say If your…
toni
  • 139
  • 6
0
votes
0 answers

Why does uwsgi listen queue fill up when I increase the replicas to 2?

So, I have a very basic Python Flask app with uWSGI where upon application load, a background job reads data into memory and requests just serve this data (no updates). This data is probably ...1200kB in total When I deploy this to our shared…
Saturnian
  • 111
  • 1