View Single Post
Old 10th December 2010, 15:03
Drex56 Drex56 is offline
Junior Member
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
Question The Perfect SpamSnake - Ubuntu Jeos 10.04 - Nginx, uWSGI & Baruwa

Hi All,

wondering if any of you can give me a hand as im slowly frying my brain with this. My problem is as follows, I have setup MailScanner no problems, works fine, its just the Nginx, uWsgi and baruwa combination that are giving me headaches. I know im not using the prescribed 10.10 but it wasn't an option and I quite like LTS. Basically I have setup as per the how-to (associated conf and ini files below) and all I get at the moment is:

uWSGI Error
wsgi application not found


socket = /var/run/uwsgi/uwsgi-python2.6/baruwa/socket
master = true
processes = 2
env = DJANGO_SETTINGS_MODULE=baruwa.settings
module = django.core.handlers.wsgi:WSGIHandler()


server {
listen 80;
root /usr/share/pyshared/baruwa;
#main access log
access_log /var/log/nginx/access.log;
#main error log
error_log /var/log/nginx/error.log;
location /static {
root /usr/share/pyshared/baruwa/static/;
# static resources
location ~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar |bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp| rtf|js)$
expires 30d;
location / {
uwsgi_pass unix:///var/run/uwsgi/uwsgi-python2.6/baruwa/socket;
include uwsgi_params;

One thing that is obvious is the socket, before everyone shouts at once a
"ls /var/run/uwsgi/uwsgi-python2.6/baruwa" returns:

pid socket

Hence the change from 'baruwa.sock' to 'socket'.

Please let me know if there is anymore information you need or if you would like me to test anything.

Thanks Muchly,


Last edited by Drex56; 13th December 2010 at 12:56.
Reply With Quote
Sponsored Links