Problem with uwsgi

22 views
Skip to first unread message

Andreas Kuhne

unread,
Feb 3, 2015, 11:48:23 AM2/3/15
to django...@googlegroups.com
Hi all,

We are running our website with nginx and uwsgi at the moment. It is a django 1.7.4 application and it has been running perfectly for a couple of months. Now however we are getting some errors that I can't really explain.

The errors always appear after uwsgi has done a respawn of a process. Then we can get 4-5 errors with very strange behavior. Things like "dict has no method 'startswith'". They aren't errors in the code because the code will run perfectly before and after these errors. We also used to get these when we deployed a new version of the website and then restarted uwsgi (by sending a kill signal to the main process). 

Has anyone had the same problems and if so, does anyone know how to remedy it? We are getting a lot of false error mails and it's starting to get annoying. Also I don't know how our customers are affected when this happens, but it's probably not good.

Regards,

Andréas

Roberto De Ioris

unread,
Feb 3, 2015, 11:54:35 AM2/3/15
to django...@googlegroups.com
Hi, ensure you are running a stable uWSGI version 1.4.x or 2.x, older
versions have serious bugs. Eventually paste your uWSGI configuration


--
Roberto De Ioris
http://unbit.com

Andreas Kuhne

unread,
Feb 3, 2015, 12:48:00 PM2/3/15
to django...@googlegroups.com
Thanks Roberto, 

We are running uwsgi version 2.0.7 so I hope that's ok?

Our config is as follows:

[uwsgi]
logger=syslog:suitopia
chdir=/var/canvas/site/src
home=/home/ubuntu/.virtualenvs/canvas
module=suitopia.wsgi:application
master=True
pidfile=/tmp/canvas.pid
vacuum=True
max-requests=5000
daemonize=/var/canvas/site/logs/uwsgi/uwsgi.log
env DJANGO_SETTINGS_MODEL=suitopia.settings
processes=5
uid = ubuntu
gid = ubuntu
ini = /home/ubuntu/.aws.ini
ini = :aws_credentials

The aws.ini file only contains our aws credentials.

Regards,

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/acdaac41963c810109952aaf8e18e3c3.squirrel%40manage.unbit.it.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages