Permalink
Browse files

works around a bug in gunicorn where os.execlp is given manage.py and…

… blows up.

i am seeing:

    Traceback (most recent call last):
      File "/home/brian/virtualenvs/oebfare.com/src/gunicorn/gunicorn/arbiter.py", line 146, in run
        handler()
      File "/home/brian/virtualenvs/oebfare.com/src/gunicorn/gunicorn/arbiter.py", line 178, in handle_hup
        self.reexec()
      File "/home/brian/virtualenvs/oebfare.com/src/gunicorn/gunicorn/arbiter.py", line 301, in reexec
        os.execlp(self.START_CTX[0], *self.START_CTX['argv'])
      File "/home/brian/virtualenvs/oebfare.com/lib/python2.6/os.py", line 327, in execlp
        execvp(file, args)
      File "/home/brian/virtualenvs/oebfare.com/lib/python2.6/os.py", line 344, in execvp
        _execvpe(file, args)
      File "/home/brian/virtualenvs/oebfare.com/lib/python2.6/os.py", line 380, in _execvpe
        func(fullname, *argrest)
    OSError: [Errno 2] No such file or directory
  • Loading branch information...
1 parent df5b32d commit f92fcc00a50ce2f84a1bfa84da1c5d555b649429 @brosner committed May 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/start-app
View
2 bin/start-app
@@ -4,4 +4,4 @@ BIN_DIR=`dirname $(readlink -f $0)`
. $BIN_DIR/env
GUNICORN_OPTS="--daemon --name=${DOMAIN} --config=${SERVER_ROOT}/conf/gunicorn.conf.py --pid=${SERVER_ROOT}/run/gunicorn.pid unix:${SERVER_ROOT}/run/gunicorn.sock"
-(cd $PROJECT_ROOT && $VENV_ROOT/bin/python manage.py run_gunicorn $GUNICORN_OPTS)
+(cd $PROJECT_ROOT && $VENV_ROOT/bin/python ./manage.py run_gunicorn $GUNICORN_OPTS)

0 comments on commit f92fcc0

Please sign in to comment.