The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
76 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
100 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
39 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 ...
0
votes
1answer
85 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
9 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
76 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
92 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 ...
0
votes
0answers
190 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
82 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
38 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 ...
0
votes
0answers
21 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
58 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 ...
0
votes
0answers
65 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 ...
0
votes
1answer
60 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
112 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
121 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
43 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
121 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
1answer
542 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
105 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 ...
0
votes
0answers
103 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
95 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
142 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
100 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 ...
1
vote
1answer
85 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
50 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
121 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 ...
0
votes
0answers
117 views

CentOS + uwsgi + virtualenv no python application found

I have installed Python 2.7 on CentOS and created a virtualenv for my project using: $ virtualenv -p /usr/local/bin/python2.7 venv I have installed uwsgi and uwsgi-plugin-python with virtualenv ...
0
votes
0answers
153 views

uwsgi_proto_uwsgi_parser(): Resource temporarily unavailable

I'm running uwsgi this way : sudo uwsgi - - socket /run/uwsgi/app/myapp/socket.http --wsgi-file /usr/share/nginx/myapp/wsgi_websocket .py - - chmod-socket=666 - - buffer-size=32768 I'm getting ...
0
votes
0answers
40 views

How can multiple users share their (uwsgi) sockets with nginx, but not with each other?

On a shared domain, currently, each linux user sets up his website through his www-data-writable directory + uwsgi socket - one nginx instance serves them all. However, I do not like the idea of one ...
2
votes
0answers
769 views

uwsgi and “No module named django.core.wsgi”

On a fairly vanilla FreeBSD system without virtualenv, I'm having trouble getting uwsgi to work with Django. Attempting to run generates this error: Traceback (most recent call last): File ...
1
vote
1answer
165 views

nginx - serve only with backend or 404, no static files in root

I am trying to serve all requests with the backend (uwsgi for flask in this case) and if the backend has no such path, nginx should return 404. Somehow I only can get the backend to take over when I ...
1
vote
0answers
74 views

uwsgi native https support?

I want to run my uwsgi server with https. Yes, I know it is a wrong thing to do in production. The docs clearly say: configure your keys and use --https option: ...
0
votes
0answers
23 views

Uwsgi Fallback Strategies

I'm giving some thought to application redundancy, and I was wondering what the best-practices are for improved reliability using uwsgi fallback features. Specifically, I had two thoughts: 1) We ...
0
votes
1answer
23 views

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

Uwsgi “Permission denied” after “Gracefully killing worker”

I run python environment with uwsgi on old centos 6.6 (it necessary for customer). But often i get error 502. log of uwsgi with error: 1) Request to /show/12763 took 0.474370002747 seconds Request ...
1
vote
1answer
299 views

uwsgi queue of socket message flood?

I found my website unresponsive and I see a ton of *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! (101/100) *** *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! ...
0
votes
1answer
69 views

Is it possible to get uwsgi to restart on 500 errors

I occasionally have issues where a db will restart or something similar. In these cases I need to go in and manually restart uwsgi. Is it possible to setup uwsgi to restart on 500 errors? Ideally I ...
-1
votes
1answer
354 views

Error: “invalid number of arguments in ”uwsgi_param“ directive” on nginx restart

CentOS 6.6, nginx 1.0.15. I'm trying to configure nginx <-> uwsgi <-> Django stack, using this tutorial. The nginx conf file is: upstream django { server 127.0.0.1:8001; } server { ...
0
votes
0answers
618 views

Internal Server Error with Nginx and uWSGI

I'm trying to host an app using Nginx on Linode.com but I'm stuck early on uWSGI config. I've used "Getting Started" guide and "WSGI using uWSGI and nginx on Ubuntu 12.04 (Precise Pangolin)" guide ...
0
votes
1answer
395 views

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

Nginx - How to authorize access to repositories using python script

I have set up a local Git server using Nginx ( in Ubuntu ) ,Now I want to authorize users using external python script , which should authorize them against predefined database . AFAIK, I have to ...
0
votes
1answer
141 views

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

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

UWSGI Bad Gateway - Connection refused while connecting to upstream

Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am ...
0
votes
0answers
215 views

Mapping uWSGI processes to specific cpu cores

I have 2 sites on my server (debian) with 4 cpu cores. For both of them I use workers=2 and cpu-affinity=1 so workers are mapped to cpu 0 and 1 for both sites like that: spawned uWSGI master process ...
1
vote
0answers
104 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
1
vote
1answer
362 views

NGINX + uWSGI + Flask. Some requests very slow

We're running a fairly large Flask application and finding that at random times we'll end up with a very slow request (sometimes a minute or more) I presume the issue is related to lazy-loading ...
1
vote
0answers
350 views

Django / uWSGI - Nginx giving 502 status code: error.log says “Permission Denied”

I'm trying to setup my Django app to use uWSGI and Nginx. I'm following this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html I'm on the "Using Unix sockets ...
0
votes
1answer
112 views

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 ...