Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [uwsgi]

Questions regarding uWSGI which is a full stack for building hosting services

0
votes
1answer
36 views

uWSGI and NGINX 502: upstream prematurely closed connection

I have a Kubernetes cluster which is running Django application within docker container served by uWSGI. The ingress controller is ingress-nginx (this one: https://github.com/kubernetes/ingress-nginx)....
0
votes
0answers
9 views

Django nginx+uwsgi *1 connect() to unix:/run/uwsgi/firstsitecd.sock failed (111: Connection refused) while connecting to upstream [duplicate]

I'm trying to deploy a Django application on Ubuntu 16.4. I referred a document to deploy my application and here this is the URL which I have followed server-django-nginx-with-uwsgi. Everything went ...
0
votes
0answers
89 views

Connection refused by Unix socket file

Having some trouble linking up Django + uWSGI + NGINX If I run the Django development server, the page works perfectly. If I run with: uwsgi --http 0.0.0.0:8134 --wsgi-file /test/test_project/wsgi....
0
votes
0answers
12 views

uWSGI with fastrouter and subscription. Processes limited?

I have a Load-balancer (LB) server using uWSGI that redirects traffic to sub-servers (workers). These workers are powerful and I can easily run 16 uWSGI processes (using the parameter --process 16), ...
0
votes
0answers
14 views

uWSGI fastrouter/subscription, Nginx and public facing servers

I'm having some security issues regarding my uWSGI configuration. Here's the current issue: I have a front server, called api.domain.tld, that have NGinx installed with proxy_pass that points to the ...
0
votes
0answers
123 views

Restart Django/uWSGI vassal in uWSGI emperor mode

I am running a django site using uWSGI in emperor mode. I have found that while touching the uwsgi.ini file for a specific application does indeed cause the emperor process to reload that vassal (...
0
votes
0answers
61 views

Python & Django: supervisor numprocs vs uwsgi --processes

What is the difference in specifying numprocs in superivsor config and passing --processes option in uwsgi config? I'm using a m4.xlarge instance which has 4 CPU and 8Gig RAM. Not sure about the ...
1
vote
0answers
84 views

How to fix mysql has gone away, high writeiops, switch to postgres?

We have a Django site (Django 1.4) running under NGINX and uwsgi. The site uses MYSQL 5.6.39 which runs on a separate AWS RDS instance. It runs fine for about a week but then suddenly we get the ...
0
votes
0answers
74 views

Deploying Django with Puppet and Nginx

I'm trying to deploy a django application with puppet and nginx, but I'm having trouble figuring out how to configure nginx to serve static files while Gunicorn is running. Current I have nginx::...
0
votes
0answers
60 views

UWSGI: Mount several instances of django app with different databases

I have a django app and want to mount several instances (each with its own database) in uwsgi, something like uwsgi: mount: /first=first.wsgi mount: /second=second.wsgi and first.wsgi ...
0
votes
0answers
142 views

aws cloned ec2 only show nginx default page why?

I have a running instances which shows the site properly on aws. what's included to run the site are django, nginx, uwsgi with elastic ip I have created an image of the instances. Launch the ...
0
votes
0answers
202 views

Docker with nginx and Python CGI through uWSGI

I have set up a Docker container with nginx and uWSGI. Below is my /etc/uwsgi/apps-enabled/cgi.ini file: [uwsgi] plugins = cgi socket = 127.0.0.1:9000 cgi = /cgi-bin cgi-allowed-ext = .py And below ...
2
votes
1answer
248 views

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 ...
0
votes
0answers
870 views

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 ...
0
votes
0answers
72 views

General approach to serve through uwsgi

This is not a precise question because it involves several things that I am not familiar with, but I can not find how to do this : I have a django website, and want to serve it on apache without ...
0
votes
0answers
32 views

uwsgi errno 24 too many open files on CentOS / nginx [duplicate]

I have a python bottle app being served by nginx and uwsgi. After running for a very few hours, I start getting a 500 error from the web app, and in /var/log/messages I see: uwsgi: OSError: [Errno ...
0
votes
0answers
79 views

Emperor needs manual restart, after system restart, to allow vassals to interact with mongodb

I have an arch linux system controlled by systemd with a mongodb, an emperor with vassals running varuous python flask apps, and nginx. When I restart the system the web pages all come up, any field ...
2
votes
1answer
395 views

Plain uWSGI error: uwsgi_response_write_body_do() TIMEOUT

This looks like a well-known issue with Nginx+uWSGI timeouts, but my setup is different and I couldn't find information about it. I run a Flask app on uWSGI, on http protocol (not sockets). When I ...
-1
votes
1answer
121 views

How to permanently have /xxx sub domain

I have several applications running on the same cluster and want to set up a subdomain for each application. To give you a brief description of current set up, I have a Django app, Jira, and Gitlab ...
0
votes
0answers
130 views

How to serve via uWSGI from Tomcat

I have a simple python function that I need to run as a web service from a tomcat server. This is the setup I got as an external requirement from my client and I cannot change it. I've managed to make ...
0
votes
0answers
24 views

Linux file opened as directory

I have a Django application run under uwsgi. The application, among other things, copies a file from /tmp to another internal directory. The internal directory permissions are as follows: drwxrwxr-...
0
votes
0answers
72 views

Upstart script: Job failed to start

I am trying to run apache superset inside a vagrant virtual box ubuntu environment with uwsgi and nginx. The issue I have is that my upstart script won't start (start: Job failed to start)? ...
1
vote
0answers
515 views

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 [...
0
votes
1answer
396 views

Nginx/uwsgi request buffer or queue

Our web servers run a Python app behind nginx + uwsgi. Sometimes we have short spikes (2-5x avg no requests) for a second resulting in some requests getting a 502 if there are no workers available to ...
0
votes
0answers
90 views

uwsgi graphite module not loaded

I've installed uwsgi 2.0.15 and graphite, but somewhy uwsgi don't recognize graphite_web.wsgi as a module and don't load it. *** Operational MODE: preforking *** *** no app loaded. GAME OVER *** ...
1
vote
1answer
161 views

NGINX ignoring upstream in server block

This is how my /etc/nginx/nginx.conf file looks like (as per nginx -T): # configuration file /etc/nginx/nginx.conf: # For more information on configuration, see: # * Official English Documentation: ...
0
votes
1answer
302 views

systemctl start works, but systemctl enable fails with realpath() error

I'm trying to set up a simple uwsgi service named project on Vagrant, Ubuntu 16.04. It should start a simple Flask app that Nginx can talk to. I can get the service to work when running systemctl ...
1
vote
0answers
628 views

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: ...
0
votes
0answers
42 views

How to choose between uwsgi_pass and try_file by user agent and location?

How can I configure nginx to use uwsgi_pass when bot like GoogleBot is requesting and path has file extension not present given range or try_file otherwise?
0
votes
2answers
314 views

godaddy dns + aliyun host - django app, uwsgi, nginx - shows “502 Bad Gateway”

I have domain mydomain.me in godaddy i set it to point to my ip in aliyun ecs In my diango settings i have : ALLOWED_HOSTS = [".mydomain.me","x.x.x.x"] in /etc/nginx/sites-avaiable/Django i ...
0
votes
0answers
62 views

server “listen”: nginx and uwsgi

I am having some difficulty with wrapping nginx and uwsgi around a Flask application on CentOS 7. The current error message when I run $ sudo nginx nginx: [emerg] "listen" directive is not allowed ...
2
votes
1answer
261 views

How logrotate behave when there is * and there is one explicit filename in log rotation in one path?

The question is little bit long! Let me explain with the example below. I have a log-rotation configuration file in /etc/logrotate.d/ which is used for uwsgi: "/var/log/uwsgi/*.log" "/var/log/uwsgi/...
1
vote
0answers
123 views

How can you configure nginx to prevent it blocking on a slow uwsgi backend service?

Lets say I have a simple nginx config that talks to a uwsgi backend: server { listen 9900 default_server; listen [::]:9900 default_server; location / { include ...
1
vote
1answer
122 views

Different size of HTTP responsens with Nginx cache for UWSGI

I need to configure cache for python(django) app on nginx. Everything works fine but from time to time I get blank page from cache. I dont see any errors in nginx and uwsgi logs. In normal situation i ...
1
vote
0answers
476 views

ngnix socket file not found in /tmp and /var/tmp/uwsgi?

On centos 7 with nginx 1.10.2 and uwsgi 2.0.14 When I configure uwsgi to open a socket in /var/tmp/uwsgi or in /tmp, I go a message from nginx saying it cannot find the socket file : 2017/06/07 16:...
0
votes
2answers
677 views

uwsgi error - connect() to unix:/home/user/www/www.sock failed

I am confused. Where I make mistake? Project files location: /home/username/www /etc/uwsgi/sites/mysite.com [uwsgi] project = www base = /home/username uid = www-data gid = www-data chdir = %(...
1
vote
0answers
1k views

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

uwsgi dying when nginx runs under different user

I'm using Django with nginx/uWSGI. I have to serve files off a mount that a particular service account, mybic, has read access to, so I've had to change the nginx user from: user nginx; to user ...
0
votes
0answers
183 views

Google Compute Engine Redirecting on its own

I have a new instance on Google Compute Engine. It's a standard install using the provided Ubuntu 16.04 image. Nothing fancy, just an nginx + uwsgi install I have used elsewhere. For some reason, the ...
4
votes
1answer
2k views

uWSGI won't start with systemd under Ubuntu 16.04

I'm in the process of doing a somewhat painful migration of our staging and production servers from Ubuntu 12.04 to 16.04. I'm testing the migration on staging and it is mostly working, except for ...
0
votes
1answer
273 views

How can I configure nginx with multiple uwsgi vassals (with websockets) in emperor mode?

I'm having issues running 2 vassals in emperor mode (for a main app + websocket) behind an nginx server. Everything seems to be running well, but all the websocket requests return error 502 bad ...
0
votes
2answers
795 views

Using IP Address In Nginx server_name I Django

I'm using django, uwsgi and nginx. I have tried nginx and django documentation for serving static files. My conf file is: http { upstream django { server 127.0.0.1:8000; } server { listen ...
0
votes
1answer
400 views

Basic NGINX, uWSGI configuration running locally only delivers 404

My Flask app runs through uWSGI, and I am using a TCP socket to talk to NGINX. The configuration is very basic: application.conf server { listen 80 default_server; location / { ...
1
vote
1answer
174 views

Compress traffic between uwsgi-nginx and nginx load balancer

I have 7 nginx webservers running a python app and serving it to nginx via uwsgi and a socket file, infront of these 7 webservers there is an nginx load balancer, the trafic that gets out of the load ...
1
vote
1answer
160 views

python uwsgi not loading changes

i am using uwsgi to serve python application. app was using a particular vrsion of falcon python now i upgraded the package by removing it and reinstalling it. but the change is not reflected by the ...
0
votes
0answers
1k views

Apache2 mod_wsgi Error Timeout when reading response headers from daemon process

I have to work with the web service that has created with using uwsgi django .Apache2 works as a web server.When the web service got request most of time get the response.But if the service does not ...
3
votes
2answers
460 views

Nginx uWSGI responses truncated

I tried to write a web service as a joke today at http://dont-tread-on-memes.controversial.io. It's a flask app that serves fairly large images. The Flask app works well on its own, as does an ...
1
vote
0answers
39 views

Which is Best way to serve multiple wsgi apps using apache2 with different python versions?

Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to ...
0
votes
1answer
134 views

Apache , uwsgi , django lookup time

I have my setup hosted in AWS EC2, on am ubuntu machine, running a django server with uwsgi and apache. I've been trying to figure out for a while why the dev env VS local env have such different ...
1
vote
1answer
518 views

Setting up Django + nginx + uwsgi + supervisord: Difference between sockets in /run vs /tmp

I'm trying to set up 2 Django web apps on the same machine using uWSGI emperor and nginx and have supervisord manage the starting and restarting of the emperor process. I have finally after a lot of ...