-2
votes
0answers
25 views

Why won't uwsgi see my new static files? [on hold]

I uploaded a new CSS file with the same name, and a new image with the same name as before, but no matter what I try, it won't serve the new files. I've tried everything. I've tried touching the .ini ...
0
votes
0answers
16 views

500 internal server error on certain page after a few hours [migrated]

I am getting a 500 Internal Server Error on a certain page of my site after a few hours of being up. I restart uWSGI instance with uwsgi --ini /home/metheuser/webapps/ers_portal/ers_portal_uwsgi.ini ...
1
vote
1answer
53 views

uWSGI and Python on Arch Linux, encoding failure

I am running an Arch Linux box and have setup a Python 3.4 virtualenv. I have a uwsgi vassal being run by the emperor, which specifies the following ini: (some snipped for brevity) [uwsgi] ...
0
votes
0answers
73 views

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

AWS + Nginx + Uwsgi + couple flask applications. Can't separate static files

I'm trying to build 1 aws-testserver for all of my Flask-applications. Nginx conf: server { listen 80; server_name localhost; location /app1/ { uwsgi_pass unix:/tmp/app1.sock; ...
0
votes
0answers
65 views

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 ...
1
vote
1answer
144 views

Getting pypy to run in uwsgi?

I'm trying to setup uwsgi to use pypy following what is posted here, using the build PyPy support as a plugin method. http://uwsgi-docs.readthedocs.org/en/latest/PyPy.html I have seemed to manage to ...
0
votes
2answers
101 views

uWSGI and python virtual env

I'm trying to use uWSGI with a virtual env in order to use the Trac bug tracker on it. I've installed system-wide uwsgi via pip. Next, I've installed trac in a virtualenv $ virtualenv venv $ . ...
2
votes
0answers
107 views

Supervisor cannot correctly stop uwsgi

Supervisor can start uwsgi but after stopping uwsgi, when i try to start it again I get this error: 2014-03-16 08:38:34,249 DEBG 'app' stderr output: ...
0
votes
1answer
118 views

Using uwsgi and gunicorn at the same time or fully switch to gunicorn?

We are running our python app behind nginx. First we used uWSGI, because it is fast, reliable and easy to deploy. Next, as the number of simultaneous clients (using server-sent events/eventstream) ...
0
votes
0answers
75 views

Uwsgi configuration - No module called site

I am trying to get uwsgi working in combination with nginx for a flask application. This is UWSGI ini file: [uwsgi] socket = 127.0.0.1:8001 processes = 4 module = run:manager virtualenv = ...
0
votes
2answers
57 views

Setting UWSGI to run a module in a venv

I am having a hard time trying to run a module from UWSGI. This is part of my deployment code: # ENVIRONMENT /usr/bin/pip install virtualenv mkdir -p /srv/www/test /usr/local/bin/virtualenv ...
0
votes
1answer
476 views

uWSGI permissions issue

I'm trying to set up a chef recipe that will get my site running and everything seems to be working fine except for uWSGI which is giving me the following error: *** has_emperor mode detected (fd: 6) ...
0
votes
1answer
261 views

nginx + uwsgi - what is serving static files?

I am using nginx as a proxy to a couple of flask apps, with uwsgi as the middleware. Here's my nginx config for a test app. server { listen 80; server_name test.myapp.com ...
3
votes
1answer
254 views

Serving django with nginx and uWSGI

I followed this post to serve my django project. The project runs well with manage.py runserver and I want to set it up for production. Here are my setting files: nginx.conf: upstream django { ...
1
vote
1answer
384 views

Django doesn't find CSS files for admin pages using uWSGI

Even if I followed the official instructions, when I start a Django test site using uWSGI, CSS files for the admin interface are not loaded. If I open the URL of a CSS file, for example ...
1
vote
0answers
187 views

Ubuntu Locales Incorrect for Python Application

I have a NGINX -> UWSGI -> Django(python) stack installed on an Ubuntu AMI on Amazon EC2. I've run into a problem when accessing a file with unicode characters in the name. The exact output from the ...
0
votes
0answers
345 views

uwsgi Import Error: No module named 'encodings'

I'm trying to setup flask with uwsgi. This is my directory structure: /srv/http/www/myapp | +-- env -> virtualenv | +-- mpd -> the project directory | +-- main.py -> main application ...
1
vote
0answers
118 views

How to tell uWSGI to prefer processes to threads for load balancing

I've installed Nginx + uWSGI + Django on a VDS with 3 CPU cores. uWSGI is configured for 6 processes and 5 threads per process. Now I want to tell uWSGI to use processes for load balancing until all ...
1
vote
1answer
376 views

Bottle.py app can't be found by nginx+uwsgi

I have a Python 3 bottle.py app that I install into a virtual environment (letting pip automatically fetch dependencies). I'm trying to get it to run under nginx and uwsgi on my raspberry pi. When I ...
1
vote
2answers
76 views

Serving files from GIT with uWSGI

Good morning everyone! On my daily job, we are using NGINX+uWSGI+MongoDB as Python Application container. For versionning and collaborative developpement we are using GIT install on each developer ...
1
vote
1answer
654 views

Unable to load configuration from uwsgi

Since yesterday I have been wrestling with this problem: unable to load configuration from uwsgi When I google it, nothing comes up. I am trying to run UWSGI under nginx with a very simple uwsgi.ini ...
0
votes
1answer
171 views

Can't deploy uWSGI Python Script: Mount Point = 0

When I run my application I get the following error: *** Operational MODE: single process *** unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in ...
0
votes
1answer
230 views

How do I make html files accessible from OpenShift server running python?

I have an OpenShift DIY app running Python. However, I cannot reach static files like html. (or run php) If I try accessing: mydomain.rhcloud.com/hello.html, I get: uWSGI Error Python application not ...
0
votes
1answer
256 views

Microcaching with nginx & uwsgi [closed]

i am running my personal website written with python on nginx with uwsgi. Since the site is very static i want to improve the performace by adding microcaching. Both nginx and also uwsgi do offer ...
1
vote
1answer
150 views

UWSGI can't import module 'mysite' with nginx and flask

I'm new to using uwsgi and nginx and I haven't been able to figure out why I am getting this error from uwsgi: ImportError: No module named mysite unable to load app 0 (mountpoint='my_ipaddr|') ...
1
vote
1answer
754 views

How do I debug this Nginx to uWSGI timeout?

I'm running a database-backed web site that receives very little traffic. However, once or twice day, a request will timeout and I'll see this (or a similar) error in Nginx's error.log: 2013/06/13 ...
1
vote
1answer
408 views

nginx and uwsgi; different ports

I have Nginx and two python virtual environments with uwsgi. These environments are for dev and production. What I want is to run production on :80 and dev on :6544 ports Here's the config I have ...
3
votes
1answer
194 views

Use uWSGI as a proxy server

Question: Is there a way to use uWSGI as a proxy server? More about the system: 6 load-balanced nginix/uWSGI servers Python Requirements: Set up a few proxy servers that can: Accept requests ...
0
votes
1answer
348 views

OpenStack over NGINX+uWSGI

Following this not so popular question: OpenStack & NGINX+uWSGI I've start to build my dashboard node using well... NGINX and uWSGI of course, but I'm now facing a path problem. Indeed, uWSGI is ...
0
votes
1answer
676 views

gunicorn working vs uwsgi timeout

I've setup my Python / Django app on a vmware machine with CentOS, uwsgi and gunicorn along with all my apps dependencies. After running my app with gunicorn with the following command: gunicorn ...
1
vote
1answer
283 views

nginx uwsgi flask rewrite directory as base directory within app

So I have a flask application running using uWSGI on Nginx. Nginx is set to call my app at the location /app. So in my flask application I have to take into account the /app part when I map the url to ...
0
votes
1answer
940 views

uwsgi nginx web.py interal server error: application not found

Within my nginx sites-available/default this is the relevant portion for my app: location /app/ { include uwsgi_params; uwsgi_pass unix:///tmp/uwsgi.socket; } ...
3
votes
0answers
231 views

ImportError: No module named flask - uwsgi and buildout

uWSGI config: <uwsgi> <module>app_wsgi:app</module> <pythonpath>./src</pythonpath> <socket>/tmp/uwsgi.sock</socket> ...
1
vote
1answer
369 views

How can I pass environment variables to a WSGI script, using uWSGI?

I've added the following line to /etc/environment: FOO_DEPLOYMENT_ENV="vbox" Upon logging in via SSH, I can echo $FOO_DEPLOYMENT_ENV and, of course, see vbox output to the shell. If I open a Python ...
2
votes
1answer
188 views

What's the difference between WSGI <app> and <module>?

I followed these instructions to serve Python (Web2Py) via uWSGI. However, the web server returned an error: uWSGI Error Python application not found until I modified the config.xml config ...
-1
votes
1answer
418 views

Why are my uWSGI processes dying immediately?

I'm using Supervisor and the uWSGI Emperor mode. When I set limit-as to 512 (MB), workers die instantly (respawn, die, respawn, die, every 3/4 of a second or so): [uwsgi] workers = 4 threads = 40 ...
-1
votes
1answer
363 views

How can I use the uWSGI Emperor to limit resources to a given amount for all apps (instead of per each)

I have a Django application for which I want to limit the resources used by uWSGI to 12288MB and processes (workers) to 6. With 3 separate apps, I can limit each to 2 workers, and each worker to ...
0
votes
2answers
393 views

uWSGI error: my master disconnected: i will kill myself. How it happened

error message: uWSGI worker 5 screams: UAAAAAAH my master disconnected: i will kill myself !!! I use uWSGI as server to hold my pyramid app on Ubuntu 12.04
1
vote
1answer
144 views

uWSGI and Nginx python file handling

I've been trying to figure out how to propertly utilize uWSGI with Nginx and have hit a bit of a design roadblock. I'm trying to figure out how my python files should be accessed via uWSGI. I've been ...
1
vote
0answers
169 views

Bottle.py application times out on mod_wsgi and uwsgi but works in dev mode

I have a bottle.py application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out ...
2
votes
1answer
284 views

IPC overhead in a (nginx -> uwsgi -> wsgi application) architecture?

Recently I'm setting up some Python website and it seems the architecture nginx -> uwsgi -> wsgi application is an obvious choice in Python world these days. (Actually I'm migrating a MoinMoin ...
0
votes
1answer
3k views

uWSGI cannot find “application” using Flask and Virtualenv

Using uWSGI to serve a simple wsgi app, (a simple "Hello, World") my configuration works, but when I try to run a Flask app, I get this in uWSGI's error logs: current working directory: ...
3
votes
2answers
2k views

Error 2006: MySQL server has gone away

I'm running a Python Pyramid app on a CentOS server using uWSGI and nginx. I'm using SQLAlchemy as an ORM, MySQLdb as the API, and MySQL as a database. The site hasn't gone live yet, so the only ...
1
vote
1answer
516 views

Nginx,Uwsgi and Django App Not Found

I have configured Nginx with uWSGI and Django on CentOS. Django Directory(contains all my django app): /home Django Project Directory: /home/hdblog /home/hdapp.py contains below: import os, sys ...
0
votes
1answer
201 views

“User 'wsgi' not found” when starting uWSGI

I'm currently trying to set up a server on Amazon EC2 (Ubuntu 11.10) using web.py, nginx and uWSGI as shown here: http://blog.nobien.net/2011/08/14/nginx-uwsgi-and-web-py-and-my-new-job/ I've ...
6
votes
4answers
5k views

Ubuntu 11.10 with Nginx and uWSGI

I'm trying to get a LNP [Linux Nginx Python] stack (is that even a thing? heh) going, but I'm having some difficulties. A lot of blog posts and documentation on doing this seems to revolve around ...
4
votes
1answer
2k views

UWSGI and NGINX for Python Apps on Ubuntu 11.10

I am trying to find an optimal way to set up my server to use NGINX and UWSGI to serve python applications. The following has worked so far: Initial setup: sudo apt-get install nginx uwsgi ...
2
votes
1answer
3k views

Nginx + uWSGI + Django performance stuck on 100rq/s

I have configured Nginx with uWSGI and Django on CentOS 6 x64 (3.06GHz i3 540, 4GB), which should easily handle 2500 rq/s but when I run ab test ( ab -n 1000 -c 100 ) performance stops at 92 - 100 ...
1
vote
1answer
601 views

Is there a way to force pid in upstart script

I am running a uwsgi-python server under ubuntu 10.04. I use upstart to start/stop a uwsgi daemon(daemonize option is set for uwsgi). Start and stop commands work fine, but when i try to reload my ...