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

uWSGI doesn't execute chdir

Title. When I run uwsgi as uwsgi *** or /usr/local/bin/uwsgi *** it works perfectly, but when I run it as /usr/bin/uwsgi *** (as it being runned as service) it doesn't execute chdir directive of .ini file what results in impossibility to load the…
bakatrouble
  • 155
  • 1
  • 6
0
votes
1 answer

Nginx : How to server error_pages (404, etc) using uwsgi url?

I know it's possible to server static files using error_page in NGinx, but I was wondering if it was possible to server an url from my local (socketed) Flask app that is served through UWsgi. Here's the NGinx configuration : server { listen …
Cyril N.
  • 624
  • 1
  • 10
  • 36
0
votes
1 answer

Troubleshooting Curl Timeouts

I run a SaaS monitoring service. Our standard integration example is to make a curl request to a special URL we provide. We have an intermittent issue where a user is hitting a 10 second curl timeout (-m 10 param). However, I can see in my server…
Encoderer
  • 267
  • 1
  • 2
  • 11
0
votes
1 answer

Upstart script doesn't work on boot - only manually

I followed this tutorial on setting up Flask with nginx + uwsgi. I created an upstart script at /etc/init/flask-uwsgi.conf: start on [2345] stop on [06] pre-start script mkdir -p /var/run/flask-uwsgi chown www-data:www-data…
okoboko
  • 101
  • 1
0
votes
1 answer

uWSGI: chdir(): No such file or directory

I'm configuring uWSGI and with this im.ini configuration file: [uwsgi] uid = www-data gid = www-data plugins = python chdir = '/var/www/im/' module = texst master = true processes = 5 I'm getting chdir(): No such file or directory in UWSGI error…
Gabriel
  • 436
  • 2
  • 7
  • 19
0
votes
1 answer

502 bad gateway nginx. uwsgi, flask

Ok so I developed a web app in python and it worked with the internal server: if __name__ == '__main__': app.app.run(debug = True) with no issue at all. I am now trying to start up a nginx server with uwsgi running on arch linux, here are the…
Never Nor
  • 101
  • 1
  • 4
0
votes
1 answer

Django mail reports blocked by Gmail

I configured my Django 1.6 framework to send error reports to a Gmail account so I can check them. Before this worked well, though I had to define filters to catch the sender mail addresses I configured for those e-mail reports to be marked as "Not…
SebasSBM
  • 143
  • 1
  • 10
0
votes
1 answer

apache2 mod_proxy_uwsgi internal server error

I have run uwsgi service. uwsgi run on localhost:3031 and works ok (tested via http). # apache2 -v Server version: Apache/2.2.22 (Debian) # uwsgi --version 2.0.9 I have a mod_proxy_uwsgi, compiled with apxs2 from…
LennyLip
  • 121
  • 5
0
votes
0 answers

uWSGI suddenly won't start again after server crash on Debian

After my server crashed i am unable to start uWSGI again, and keep getting following errors on unlink() and bind(). I start my service as root, so it makes it even more strange. Sun Nov 16 15:25:24 2014 - *** Starting uWSGI 1.2.3-debian (64bit) on…
JavaCake
  • 111
  • 3
  • 11
0
votes
1 answer

How to run WSGI-file with Nginx

I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file. Now, i have a wsgi-file, but how can i execute this with Nginx? Which commands in the Nginx- configuration…
user228548
0
votes
0 answers

uWSGI appears to be losing requests

I'm seeing the following in the uWSGI logs, specifically ...The work of process 43017 is done. Seeya!: [pid: 43017|app: 0|req: 103/114] 207.140.171.16 () {50 vars in 847 bytes} [Fri Oct 17 12:59:49 2014] POST /v1/us/notification => generated 320…
Nalum
  • 259
  • 1
  • 3
  • 13
0
votes
1 answer

Nginx/uWSGI Flask app suddenly return 401

I'm kind of new to deploying uSWGI python apps behind nginx as a reverse proxy, but so far I have had no trouble at all. I have a small linode where I deploy all my python webapps simultaneously. As of yesterday I had two of them running on ports…
0
votes
1 answer

How do I properly chroot Nginx and uwsgi?

I have a pretty good idea of how to do this, I just wanted to make sure I wasn't going to be seriously screwing stuff up before I deployed it. I have a web application which uses uwsgi and nginx, and I wanted to chroot the app to a specific…
0
votes
1 answer

Nginx no longer servers uwsgi application behind HAProxy - Looks for static file instead

We implemented our web application using web2py. It consists of several modules offering a REST API at various resources (e.g. /dids, /replicas, ...). The API is used by clients implementing requests.py. My problem is that our web app works fine if…
Ralph
  • 33
  • 5
0
votes
1 answer

How to serve static files for multiple Django projects via nginx to same domain

I am trying to setup my nginx conf so that I can serve the relevant files for my multiple Django projects. Ultimately I want each app to be available at www.example.com/app1, www.example.com/app2 etc. They all serve static files from a…
fanatix
  • 3
  • 2