0
私は監視プログラムを使用して、gunicornサーバーを監視して実行したいと考えています。Supervisord、Gunicorn(終了ステータス127;予期しない)
私が実行します。
/usr/bin/gunicorn app.wsgi:application -c config.conf
それが動作します。
しかし、スーパーバイザconfファイルと全く同じコマンドが機能しません。どんな説明?
supervisor.conf
[supervisord]
[group:app]
programs=gunicorn_app
[program:gunicorn_app]
environment=PYTHONPATH=usr/bin
command=/usr/bin/gunicorn app.wsgi:application -c gunicorn.conf.py
directory=~/path/to/app
autostart=true
autorestart=true
environment=LANG="en_US.UTF-8",LC_ALL="en_US.UTF-8",LC_LANG="en_US.UTF-8"
私はこのようなエラーを受けています:
2016-05-31 22:53:34,786 INFO spawned: 'gunicorn_app' with pid 18763
2016-05-31 22:53:34,789 INFO exited: gunicorn_app (exit status 127; not expected)
2016-05-31 22:53:35,791 INFO spawned: 'gunicorn_app' with pid 18764
2016-05-31 22:53:35,795 INFO exited: gunicorn_app (exit status 127; not expected)
2016-05-31 22:53:37,798 INFO spawned: 'gunicorn_app' with pid 18765
2016-05-31 22:53:37,802 INFO exited: gunicorn_app (exit status 127; not expected)
2016-05-31 22:53:40,807 INFO spawned: 'gunicorn_app' with pid 18766
2016-05-31 22:53:40,810 INFO exited: gunicorn_app (exit status 127; not expected)
私はその終了コード127の手段「コマンドが見つかりません」を理解しますが、私は正確に同じコマンドを実行することができますコマンドラインで
あなたのコマンドに--debugを追加して、その出力も追加できます。 –