Thanks Pratik, I am a little confused. I opened the supervisord.conf file and following the instructions in the link, I wanted to place the stderr_logfile variable inside it. But I guess I need to specify a program with which this log will be invoked. Any pointers there would be very much appreciated.
I found a couple of error log files that are gunicorn related, in the /var/log/supervisor directory and here are what they say:
gunicorn-stdout---supervisor-TBBZmP.log
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/erpnext/erpnext/lib/wnf.py: ENOTDIR
--------
gunicorn-stderr---supervisor-vQN1ZW.log is empty
-----------
supervisord.log:
2014-04-28 19:19:15,013 CRIT Supervisor running as root (no user in config file)
2014-04-28 19:19:15,041 INFO RPC interface 'supervisor' initialized
2014-04-28 19:19:15,041 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2014-04-28 19:19:15,043 INFO daemonizing the supervisord process
2014-04-28 19:19:15,044 INFO supervisord started with pid 12114
2014-04-28 19:20:35,803 CRIT Supervisor running as root (no user in config file)
2014-04-28 19:20:35,803 WARN Included extra file "/etc/supervisor/conf.d/gunicorn.conf" during parsing
2014-04-28 19:20:35,803 INFO RPC interface 'supervisor' initialized
2014-04-28 19:20:35,804 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2014-04-28 19:20:35,804 INFO supervisord started with pid 12114
2014-04-28 19:20:36,807 INFO spawned: 'gunicorn' with pid 12134
2014-04-28 19:20:36,817 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:20:37,820 INFO spawned: 'gunicorn' with pid 12135
2014-04-28 19:20:37,829 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:20:39,833 INFO spawned: 'gunicorn' with pid 12136
2014-04-28 19:20:39,839 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:20:42,845 INFO spawned: 'gunicorn' with pid 12137
2014-04-28 19:20:42,851 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:20:43,852 INFO gave up: gunicorn entered FATAL state, too many start retries too quickly
2014-04-28 19:28:46,762 INFO spawned: 'gunicorn' with pid 12937
2014-04-28 19:28:46,767 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:28:47,770 INFO spawned: 'gunicorn' with pid 12938
2014-04-28 19:28:47,786 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:28:49,791 INFO spawned: 'gunicorn' with pid 12939
2014-04-28 19:28:49,801 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:28:52,808 INFO spawned: 'gunicorn' with pid 12940
2014-04-28 19:28:52,816 INFO exited: gunicorn (exit status 127; not expected)
2014-04-28 19:28:53,818 INFO gave up: gunicorn entered FATAL state, too many start retries too quickly
--------------
I hope you can help me by getting an idea from the logs. I see the errors but your opinion is highly appreciated.