python - uWSGI [+ nginx] file descriptor error (no such file or directory) -
i'm trying configure uwsgi django project. unfortunately when run uwsgi executable fails weird error:
$ bin/uwsgi -s sock/uwsgi.sock --chdir testit --vacuum \ --env django_settings_module=testit.testit.settings --wsgi-file testit/wsgi.py --master *** starting uwsgi 1.2.3 (32bit) on [mon jun 4 17:14:52 2012] *** compiled version: 4.7.0 20120414 (prerelease) on 04 june 2012 16:20:49 detected number of cpu cores: 2 current working directory: /home/miki/sites/testit detected binary path: /home/miki/sites/testit/bin/uwsgi memory page size 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes bind(): no such file or directory [socket.c line 107] i haven't foggiest idea of do... tried ulimit , didn't work.
it seems chdir command executed before else, can't find files if use relative paths. try using full path in arguments:
bin/uwsgi -s $pwd/sock/uwsgi.sock --chdir testit --vacuum \ --env django_settings_module=testit.testit.settings \ --wsgi-file $pwd/testit/wsgi.py --master
Comments
Post a Comment