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

django uwsgi and nginx = 400 bad request

I moved my Django website and pip3 install Django. I use the same uswgi wrapper than on the install of server #1 and it works. On server #2, I get a 400 Bad request. If I stop the uwsgi server, I get a 502 bad gateway from NGINX and when UWSGI is…
thms0
  • 71
  • 9
2
votes
1 answer

installing local readthedocs with uwsgi

I'm trying to setup a local instance of readthedocs for managing project documentation. I believe I've got everything installed properly with readthedocs and it's dependencies in its own virtualenv, following:…
monkut
  • 255
  • 3
  • 13
2
votes
0 answers

Didn't receive any response from local server in the machine

So I've server linux using NGIX with docker and many Applications django with UWSGI. So I need to create a job to execute inside a container of docker. This jobs will do a request to a some url of application django. However when I tried to make the…
2
votes
1 answer

uWSGI is ignoring uid, gid and chown-socket

I'm trying to use uWSGI with nginx. The root problem I am having is that I'm getting "No such file or directory" from nginx trying to connect to the uWSGI socket file. When I use the following settings, I am expecting the socket file's…
101010
  • 355
  • 7
  • 19
2
votes
1 answer

why django project failed deploying? - django + nginx + uwsgi

I am trying to deploy a Django project through Nginx and uWSGI. If I run the project manually running python manage.py runserver :8000 it works fine, so the project itself is not the problem I guess. I installed Django and dependencies inside a…
SebasSBM
  • 143
  • 1
  • 10
2
votes
0 answers

Weird 502 responses of AWS ELB

My website suddenly failed to work this afternoon, responding every request with 502. I've set up 3 backend instances behind ELB, each with Nginx installed. At first, I suspected there's something wrong with the backend instances. But according to…
Satoru.Logic
  • 129
  • 1
  • 6
2
votes
2 answers

uwsgi starts and works from console but doesn't want to with config file

I've got an issue with uwsgi. When I start uwsgi from conole: uwsgi --socket 127.0.0.1:5555 --chdir /var/www/proj/smth/ --wsgi-file /var/www/.../rest_api/wsgi.py & it shows web pages and everithing looks fine. But when I use uwsgi config file…
Tomas Morgan
  • 111
  • 1
  • 4
  • 12
2
votes
1 answer

uWSGI backtrace: semgentation fault errors

I'm getting the following backtrace in my uWSGI logs, I don't know where to begin looking to figure this out: DAMN ! worker 5 (pid: 29056) died :( trying respawn ... Respawned uWSGI worker 5 (new pid: 29088) DAMN ! worker 6 (pid: 29080) died :(…
Barmi
  • 439
  • 1
  • 6
  • 15
2
votes
0 answers

uwsgi + nginx + flask: upstream prematurely closed after file is downloaded

I created an endpoint on my flask which generates a spreadsheet from a database query (remote db) and then sends it as a download in the browser. Flask doesn't throw any errors. Uwsgi doesn't complain. But when I check nginx's error.log I see a lot…
user299709
  • 211
  • 2
  • 5
2
votes
1 answer

Running uWSGI with supervisor in a docker container is giving permission denied

I have Django app that I want to run with UWSGI in a Docker container using Supervisor. I am using OSX so to successfully mount my OSX filesystem inside my boot2docker VM (so I can mount volumes with docker run -v /source/:/destination) I've had to…
Chris McKinnel
  • 131
  • 1
  • 7
2
votes
0 answers

How to deploy django with uWsgi and nginx on CentOS

My version of Django is 1.6.3 I downloaded uwsgi-2.0.4. Someone says installing uwsgi with command make while someone use python setup.py build. What exactly is the difference? I saw a tutorial that says create a python file named django_wsgi.py,…
Crayon
  • 21
  • 2
2
votes
0 answers

uwsgi complains about python application not found

looks like quite common with uWSGI application, but still can't find any valuable solution. I ma working on ubuntu 12.04 with uwsgi 1.0.3 and python2.7 Here is my config.ini file: [uwsgi] uid = www-data gid = www-data pythonpath =…
philippe
  • 2,303
  • 4
  • 32
  • 53
2
votes
0 answers

AssertionError when using uwsgi with pypy with the sample test app

I'm trying to get the sample pypy test hello world application to run using uwsgi with pypy. I've attempted to build uwsgi with the pypy plugin (using python uwsgiconfig.py --plugin plugins/pypy) and pypy in my home…
monkut
  • 255
  • 3
  • 13
2
votes
0 answers

upstream timed out (110: Connection timed out) while reading response header from upstream

For some reason, I am getting this error whenever I am running a query on my server. On my local setup, this query takes around 7-8 seconds to return, but it keeps timing out on my actual server. Errors: 2014/03/26 13:40:13 [error] 11084#0: *22…
abisson
  • 121
  • 1
  • 3
2
votes
1 answer

Uwsgi - Socket file or URL

I was installing UWSGI and it looks like for the socket I can specify either a URL and port or instead I can specify a socket location file. I was wondering if anyone can tell me what the difference is between these two, and if one is preferable to…
J.Zil
  • 1,123
  • 3
  • 21
  • 29