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

learn more… | top users | synonyms

-1
votes
0answers
26 views

How to resolve “unavailable modifier requested” from uWSGI log?

I believe this is occuring because of incorrect python interpretter for uWSGI. How can this be corrected? I have installed uwsgi-python-plugin and enabled it with plugin=python in my config file for ...
1
vote
0answers
24 views

Serve Flask applications like PHP scripts

On most webserver configurations, .php files are automatically processed when a user accesses a php file, using php-fpm. I'd like to do a similar thing for Flask apps on my nginx server, so that when ...
0
votes
0answers
39 views

Docker how to Django + uwsgi/gunicorn + nginx?

I can't get my head around on what's the "correct" way to deploy a Django project that uses uwsgi/gunicorn (I haven't decide yet what to use, probably uwsgi since it has better performances, ...
0
votes
1answer
28 views

nginx connect to socket failed no file or directory with django and uwsgi

I am trying to deploy a django web app using nginx and uwsgi using this tutorial : Digital Ocean. I followed the tutorial step by step and these are my configuration files: /etc/uwsgi/sites/picknbox....
0
votes
0answers
26 views

uwsgi does not create PID file

I have the following ini file under /etc/uwsgi/apps-enabled/ cat /etc/uwsgi/apps-enabled/live.ini [uwsgi] uid = www-data gid = www-data socket = /opt/sockets/live.sock master = true processes = 4 ...
0
votes
1answer
23 views

Would I need uWSGI for a application or Nginix will suffice?

According to official uWSGI docs : A web server faces the outside world. It can serve files (HTML, images, CSS, etc) directly from the file system. However, it can’t talk directly to Django ...
0
votes
1answer
14 views

Django uwsgi deploy. Unable to find 'application'

Has a problem when starting uwsgi: unable to find "application" callable in file dashboard/wsgi.py unable to load app 0 (mountpoint='') (callable not found or import error) uwsgi.ini: [uwsgi] ...
0
votes
1answer
70 views

Running a python script on Nginx

This question might sound a bit odd to the people hanging out here, but i am just trying to start learning server side programming Is it possible to run a python script directly in a Nginx server ...
0
votes
0answers
24 views

Side effects of setting max-requests on uwsgi config

In order to try and reduce memory usage on our web server, I've had to set the max-requests property on my uwsgi config to 50. What are the down sides of this? We've got 10 workers on the site and ...
0
votes
1answer
103 views

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

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04

I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04. It all works fine up until the very last step (oh the irony...) where I try to execute this command: sudo ...
0
votes
0answers
41 views

NGINX proxy keeps losing connection to uWSGI backend

I've got a Docker NGINX host serving static web pages, and proxying to a Docker uWSGI backend. After a couple errors, I start getting 500s from the website. Looking at the NGINX logs, I see: nwm-...
1
vote
1answer
63 views

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 ...
1
vote
0answers
41 views

start: Job failed to start UWSGI,

Trying to configure ubuntu+nginx+uwsgi+django upstart script /etc/init/uwsgi.conf description "uWSGI application server in Emperor mode" start on runlevel [2345] stop on runlevel [!2345] setuid ...
0
votes
1answer
30 views

How do I configure a whitelist of SSL/TLS protocols in uWSGI?

I can specify a list of ciphers using https = =0,x.crt,x.key,<ciphers>. Documentation for that is here: http://uwsgi-docs.readthedocs.org/en/latest/HTTPS.html#setting-ssl-tls-ciphers But is ...
2
votes
3answers
94 views

Nginx: 502 Bad Gateway error with (111: Connection refused) to uWSGI socket while running django

I am building an app using an Nginx, uWSGI, Django and Postgresql stack. The app uses a Unix socket between Nginx and uWSGI. The file permissions on the socket is 775. But I still get this permission ...
0
votes
0answers
18 views

uWSGI process switching to root user after starting?

I got a vanilla flask/uwsgi/nginx setup on ubuntu 14.04, with the wsgi app started with an Upstart script with uid:guid set to www-data, and no virtual env The uwsgi init file: [uwsgi] base = /home/...
0
votes
0answers
55 views

Cant cache REST api by nginx

I use django through uwsgi for my API. I try this config upstream django_dev { ...
0
votes
0answers
13 views

Script to run uwsgi on startup

I have this script i made: start.sh: #!/bin/bash dir=${PWD##*/} source /var/www/KRAKEN/public/$dir/bin/activate uwsgi --ini uwsgi.ini --mount /$dir=app.py -w app --manage-script-name site.service: ...
1
vote
0answers
13 views

Is there a way to “unset” options in uWSGI config files?

Let's say my config (uwsgi.ini) looks like: # can run just by uwsgi uwsgi.ini [uwsgi] # put all common elements here (can be over-ridden) http = :8090 wsgi-file = ./test.py master = 1 processes = 4 ...
1
vote
0answers
37 views

Meaning of each field in uWSGI stats

As the official doc says, uWSGI allows us to get statistic data by JSON format, such as the following: { "version":"2.0.12", "listen_queue":0, "listen_queue_errors":0, "signal_queue":0, "...
0
votes
0answers
12 views

how to get detailed error information from uwsgi

I have uwsgi running under nginx and interacting with RabbitMQ, MySQL and Redis and running lua code to that interacts with these services. in my uwsgi configuration I do log the following: log-...
0
votes
0answers
29 views

application's stdout to NginX's error_log - same as mod_wsgi

I have Django project served via Apache (mod_wsgi) - recently switched to NginX + uWSGI. Currently I have it served via both at different ports to benchmark the overall performance gain. One issue I ...
0
votes
0answers
94 views

Setting up a sub-domain to point to a flask application on same digital ocean droplet (with uwsgi and nginx on Ubuntu 15.10)

I have a domain called abc.com which points to a static html page, in /var/www/abc.com/public_html. I want to host a Flask application on same droplet (different port maybe?), which is accessible ...
0
votes
1answer
383 views

Configure basic python 3.5, flask, uwsgi, nginx app

Not sure where I am going wrong here, all I get is a 502 bad gateway. (server ip is 104.197.13.112) The code for all the configuration files and basic app are in a github repo. github repo nginx ...
2
votes
0answers
76 views

How to config nginx and uwsgi to cache a url any way?

Update2: add uwsgi_ignore_headers Cache-Control Set-Cookie X-Accel-Expires Expires Vary; and problem solved. Thanks everyone. Update: I tried uwsgi_ignore_headers Cache-Control Set-Cookie X-Accel-...
0
votes
1answer
554 views

Postgresql Error: could not receive data from client: Connection reset by peer

I try this stack: nginx + uwsgi + django + postgresql, the request can reach to views of django, client show 500 server internal fault, I check postgres log, found the error could not receive data ...
0
votes
0answers
12 views

ubuntu upstart script fails to load job

When I run: sudo start homepage homepage.conf looks like: description "uWSGI server instance configured to serve homepage" start on runlevel [2345] stop on runlevel [!2345] setuid user setgid ...
1
vote
0answers
264 views

uWSGI TCP/IP host:port vs Unix socket

We are running a Python WSGI server (uWSGI) and changed to socket file instead of a tcp/ip localhost:port connection. Now our uwsgi logs are full of errors like IOError: write error SIGPIPE: writing ...
0
votes
1answer
406 views

502 Bad gateway - nginx, uwsgi+django in seperate docker containers

Im having a little difficulty determining why nginx and uwsgi arent working to serve my django app. Here is the problem from the nginx log. nginx-01: 2015/12/06 07:47:50 [error] 10#0: *1 connect()...
0
votes
0answers
435 views

nginx - open() failed (2: No such file or directory)

Our ubuntu server running nginx and uwsgi is causing lot's of open() failed (2: No such file or directory) errors by ngnix. Some web pages loading slowely or do not load completely. It seems to ...
3
votes
1answer
115 views

Using uWSGI's built-in load balancer vs nginx

I have a python app that is exposed through wsgi and was going to deploy it to the world. There are no static assets that are served from it. The app will be deployed to a single machine. I am ...
1
vote
0answers
78 views

uWSGI won't start via Upstart, but starts ok from the console

I'm trying to make uWSGI run on boot using Upstart on a Vagrant box. So I've created /etc/init/uwsgi.conf with the following contents: # simple uWSGI script description "uwsgi tiny instance" start ...
1
vote
0answers
38 views

Show config of running UWSGI instance

I have an instance of UWSGI that is getting it's config from an INI file. Everything seems fine, except it does not seem to be accepting the buffer-size config option properly. I have it set to ...
0
votes
0answers
181 views

Nginx / Uwsgi cache configuration

I have the following Nginx cache site.conf file: uwsgi_cache_path /home/ubuntu/cache levels=1:2 keys_zone=one:10m; server { listen 80; server_name genelizleyici.com; location /api/...
0
votes
0answers
106 views

nginx won't connect to my socket due to insufficient permissions

I have the following setup for nginx and uwsgi to serve a cgit instance. # cat /etc/uwsgi.d/cgit.ini [uwsgi] plugins = cgi uid = nginx gid = nginx socket = /srv/http/cgit/cgit.sock procname-...
0
votes
1answer
125 views

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, ...
0
votes
2answers
210 views

Switch between proxy_pass and uwsgi_pass based on cookie?

My nginx server is currently setup to serve all requests via uwsgi_pass: location / { uwsgi_pass unix:///tmp/uwsgi-zerocater.sock; include uwsgi_params; uwsgi_read_timeout 7200; ...
0
votes
0answers
215 views

pip uninstall dosn't remove uwsgi binary, is it normal?

I use uwsgi from ubuntu package. I accidentally installed it via pip with: sudo pip install uwsgi which has created excutable binary inside /usr/local/bin/ Now I wanted to remove and sudo pip ...
1
vote
0answers
51 views

can't start systemd in debian wheezy

I am using Debian Wheezy 7.8, and I want to start uwsgi as a service. I installed systemd (apt-get install systemd) and I edited grub (vim /etc/default/grub) and updated this line: ...
0
votes
1answer
174 views

Setup nginx + uwsgi on a server with existing apache

I have an existing server running a domain using apache. (php) Now we have another domain we're trying to run on that same server that we want to run using nginx and uwsgi (python). Also should I run ...
1
vote
2answers
2k views

504 Gateway Time-out uwsgi + nginx django application

I'm trying to run my Django application using Nginx + uwsgi, but I receive 504 Gateway Time-out after one minute of loading. My app takes time to do what needed as it searches for specific things on ...
1
vote
0answers
560 views

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 ...
1
vote
0answers
172 views

UWSGI SIGINT/SIGQUIT received

I'm trying to use nginx with uwsi. I wrote uwsgi ini file and test it with uwsgi --ini site.ini Everything works fine. But when I try to run the site I got the following error (from log file): *** ...
0
votes
0answers
140 views

Apache logs spammed with SSL23_GET_CLIENT_HELLO error

I run a Django 1.8 website on Ubuntu 14.04, with Apache 2.4.7, libapache2-mod-proxy-uwsgi and uwsgi 2.0.11.1. I recently noticed that though the website perfectly works, Apache logs are spammed with ...
4
votes
0answers
234 views

How do I get an aggregate of all the stats from all uWSGI vassals using uwsgitop?

TL;DR Can anyone tell me how I may get uwsgitop to monitor all of my vassals in my emperor-vassal setup in one shot? I have an emperor-vassal setup for my uWSGI server, and I need to monitor all ...
1
vote
0answers
157 views

Nginx can't speak with uwsgi (prematurely closed connection)

What I'm missing in my nginx/uwsgi/php-embed configuration? rpm -qa|grep php php-cli-5.4.16-36.el7_1.x86_64 php-xml-5.4.16-36.el7_1.x86_64 php-devel-5.4.16-36.el7_1.x86_64 php-common-5.4.16-36.el7_1....
1
vote
1answer
136 views

Piwik + uWSGI setup

I have a problem setting up uWSGI+piwik using nginx. My configuration follows this blog entry. My uwsgi ini file looks like this [uwsgi] plugins = php chown-socket = www-data:www-data uid = piwik gid ...
3
votes
1answer
95 views

What's the difference between running Python web applications in normal way and running them under wsgi?

I know that in order to run a Python web application(an application developed with frameworks such as Flask & Django) on the server, you need to deploy it using things such as uwsgi, wsgi.. ...
0
votes
1answer
189 views

root location of Flask app returns 403 on nginx server

I've seen other posts say that either file permissions or the lack of an index directive are the cause. However, my Flask application does not have an index file at all, and most of the site works ...