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

Questions tagged [uwsgi]

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

-1
votes
1answer
17 views

What does uwsgi_socket_keepalive affect when using the uwsgi protocol?

I was looking at some options to optimize for nginx with a uwsgi upstream and noticed that at the end of the entry for keepalive the docs say: SCGI and uwsgi protocols do not have a notion of ...
0
votes
0answers
16 views

Nginx uWSGI and Django giving Bad Gateway

I have a front and back end to my app which is configured to use two IPs on the same machine. The back end proxys non /static requests to uwsgi. I can access uwsgi directly on the port it uses but I ...
0
votes
0answers
18 views

How to stop uwsgi logging worker activity

My uwsgi logs get completely filled by useless logging information about the uwsgi workers and I am trying to find a way to stop my disks filling will this data. And more importantly, these obscure ...
0
votes
1answer
37 views

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

Page not found when running nginx with wsgi

I wanted to run a flask application using nginx. I have gone through this tutorial and up to the point when I start service using wsgi from command line everything works fine (which means I can access ...
0
votes
0answers
28 views

Serving a php script through nginx that is already serving uwsgi python/flask

Here is my case: I am running a Flask application using the following setup: Ubuntu 16 Nginx uwsgi serving venv Everything works fine. However now I got a php component that I need to run that ...
0
votes
0answers
10 views

How to run user installed app with uwsgi

How to run an app installed with pip install --user ? suppose I install this package as the Unix user py_user : pip install --user pkg and that I can import the app as following : from pkg.ws ...
1
vote
1answer
165 views

uwsgi with flask and python3 conda environment is loading python2 instead

I'm trying to run a python3 flask web application with uwsgi. If I run /usr/bin/uwsgi --ini /var/www/QCQuan/uwsgi_config.ini --logto /tmp/log then uwsgi fails and the log file shows: Python version: ...
1
vote
2answers
1k 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
449 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
20 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
35 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 ...
2
votes
0answers
334 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
127 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 ...
2
votes
0answers
130 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
117 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
91 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
195 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
240 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
397 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 ...
1
vote
1answer
1k 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
126 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
138 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
119 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
611 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
153 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
219 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 ...
1
vote
0answers
799 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
559 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
113 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
198 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
410 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
1answer
935 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
2answers
415 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
85 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
339 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
168 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
201 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
556 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
1k 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
305 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
198 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 ...
5
votes
1answer
3k 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
353 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
1k 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
566 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
219 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
202 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 ...