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
3
votes
0 answers

Nginx, uWSGI, Python, users, groups and permissions. Questions about security

Ok, yesterday I finally get nginx and uWSGI servers running on my PC. Nginx and uWSGI configuration files, new users, groups and their privileges, and chrootdir for SSH I configured based on knowledge available on web. Unfortunately, I do not trust…
Galmi
  • 121
  • 1
  • 7
3
votes
1 answer

Moin, uWSGI & nginx - setting up at /wiki

I am trying to set up a MoinMoin Wiki install on our nginx/uWSGI server using a sub-directory. We already have a Django app running on :80. Initially I setup the Moin app with it's own server block running on :8000. This worked perfectly, however,…
n0wl
  • 31
  • 1
  • 2
3
votes
2 answers

Nginx / uWsgi / Django site can handle more traffic with rewrite URL

I'm running a Django app, using uWsgi behind Nginx. I've been doing some performance tuning and load testing using ApacheBench and have discovered something unexpected which I wonder if someone could explain for me. In my Nginx config I have a…
Ludo
  • 1,099
  • 3
  • 10
  • 11
3
votes
1 answer

Nginx and uwsgi timeouts

I have nginx serving a django app powered by uwsgi. Occasionally I am getting 504's and want to increase the timeout. When using the nginx uwsgi module, do I need to use a special param to account for possible timeouts, or can I use a standard one?
kkubasik
  • 209
  • 3
  • 5
3
votes
0 answers

Nginx converts POST Request to GET request while proxy_pass

I am having 3 Server: A, B, C. Details are: Server A: NGINX Server, URL: https://test1.example.com Server B: NGINX Server hosting NodeJS Web Application, URL: http://test2.example.com Server C: Apache2 Server hosting Django Web Application, URL:…
2
votes
0 answers

Nginx - UWSGI 504 gateway timeout

I saw lots of topics of nginx 504 error , but non if them solved this. Im using nginx , uwsgi on 1 machine to run Django application . i tried to add these config line at the end of /etc/nginx/nginx.conf : uwsgi_read_timeout…
2
votes
1 answer

Flask to uwsgi threading get stuck

im Using Python 3.7.3, uwsgi 2.0.18, (docker container image python:3-stretch) We have development environment where we are running our code on flask and we change it to uwsgi when we test it on production. Im running a py script which get…
Batchen Regev
  • 131
  • 1
  • 7
2
votes
1 answer

Nginx fails to start after boot, but works fine with a manual command

I've recently got an Ubuntu 18 server and I'm a little confused to say the least. First: If I run sudo service nginx start or sudo systemctl start nginx, everything appears to work. My site is loading, and both sudo service nginx status and sudo…
2
votes
1 answer

uwsgi won't start on Ubuntu Ubuntu 18.04.1 LTS

I am following this Askbot installation tutorial, and it goes well till the very end, when I can't start uWsgi with: sudo systemctl restart uwsgi Errors which I get are: sudo systemctl restart uwsgi Job for uwsgi.service failed because the control…
2
votes
1 answer

Nginx connection refused error 111, bad gateway

This is my working directory: /var/www/flaskapp myproject.ini myproject.py myproject.sock pycache venv wsgi.py myproject.py from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "

Hello…

John
  • 123
  • 7
2
votes
4 answers

nginx (13: Permission denied) on socket

I'm trying to set up a Django app using uwsgi and nginx, but I keep butting my head against a very irritating problem. I've used the uwsgi docs as a reference guide. When serving the app through uwsgi (uwsgi --http :8000 --module myproject.wsgi)…
DoTheGenes
  • 21
  • 1
  • 1
  • 6
2
votes
0 answers

What to set uwsgi uid and gid to?

I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs: 2017/12/12 11:34:04 [crit] 1051#100213: *5 connect() to…
ruipacheco
  • 133
  • 1
  • 8
2
votes
1 answer

uwsgi permission denied on chdir that does have permissions for that uid

I am using uWSGI (behind nginx) without Emperor, run as a systemd service. uwsgi.service: [Service] ExecStart=/usr/local/bin/uwsgi --ini /var/www/CONSTANd++/uwsgi_config.ini (...) uwsgi_config.ini: (...) gid = www-data uid = www-data chdir =…
PDiracDelta
  • 181
  • 3
  • 8
2
votes
0 answers

Systemd Unit file for uWSGI Failure

Using Flask, NGINX, and uWSGI I have setup successfully setup an app that I send and receive text messages through Twilio. Everything is working perfect, except that it is running under my personal user account (named trinitrogen). I'd like to move…
Trinitrogen
  • 21
  • 1
  • 2
2
votes
1 answer

Nginx rewrite certain port to subpath (nginx + uwsgi + django)

My goal is to rewrite everything under http://localhost:8000 to http://localhost/foo I followed every step mentioned in this link, but still couldn't get it work. Here's my settings: urls.py (Django) urlpatterns = [ url(r'^$', 'home.view'), …
amigcamel
  • 121
  • 1
  • 6